Uploading the app into SharePoint ...

Copper Contributor

We are trying to deploy the app in the SharePoint , but while we upload file in the app catalog it result in the error(Invalid SharePoint App package. Error: Part URI is not valid per rules defined in the Open Packaging Conventions specification.)


can u help us in resolving the error...





3 Replies
Can you give more details as to how the app package was built? Is this an SPFx solution, using the "gulp package-solution --ship" command? Are the assets included in the package or hosted somewhere else?

Yes, it is a SPFx solution we are trying to host it in our environment and gulp package-solution --ship command is used@Don Kirkham 

For SharePoint Online:
The default settings in SPFx is to host the web part assets in SharePoint Online. This link details how to ensure your environment is set up for hosting: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/hosting-webpart-from-offi...
If you want to host the web part somewhere else, the following link describes how to set up an Azure CDN solution. The section that shows how to configure the web part to use this destination is here: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/deploy-web-part-to-cdn#co...
You should be able to change those settings for your hosting environment.

If your solution is for SP2016+, you can search in those same areas of docs.microsoft.com for solutions.

I hope this helps.