Uploading the app into SharePoint ...

%3CLINGO-SUB%20id%3D%22lingo-sub-2180630%22%20slang%3D%22en-US%22%3EUploading%20the%20app%20into%20SharePoint%20...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2180630%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20trying%20to%20deploy%20the%20app%20in%20the%20SharePoint%20%2C%20but%20while%20we%20upload%20file%20in%20the%20app%20catalog%20it%20result%20in%20the%20error(Invalid%20SharePoint%20App%20package.%20Error%3A%20Part%20URI%20is%20not%20valid%20per%20rules%20defined%20in%20the%20Open%20Packaging%20Conventions%20specification.)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ecan%20u%20help%20us%20in%20resolving%20the%20error...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22keertana10_1-1614743151039.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F260388i1D94955B06A7F239%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22keertana10_1-1614743151039.png%22%20alt%3D%22keertana10_1-1614743151039.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New 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...

 

keertana10_1-1614743151039.png

 

 

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.