pnp / custom-learning-office-365

Microsoft Learning Pathways end user learning solution for Microsoft 365 customers.
MIT License
246 stars 218 forks source link

Invalid SharePoint App package: Error: File contains corrupted data. #856

Closed droogsdontrun closed 3 weeks ago

droogsdontrun commented 3 weeks ago

PROVISIONING NOTE: If you are having issues with the SharePoint look book while trying to provision M365 learning pathways please do not post that issue to this repo as we cannot help you here. Please post all questions and issues for the SharePoint look book to SharePoint/sp-provisioning-service GitHub Issues List.

WEB PART NOT LOADING: If you are getting the error: "Microsoft 365 learning pathways has a configuration issue. Ask your administrator for assistance". Please review the Diagnosing Pre-Check guidance before submitting your bug.

Describe the bug

This error message pops up no matter how many times I re-download the package file and attempt another upload: Invalid SharePoint App package: Error: File contains corrupted data.

To Reproduce

Download the customlearning.sppkg, upload it to the sites/appcatalog/_layouts/15/tenantAppCatalog.aspx/manageApps section of the site, the Apps for SharePoint. This is an upgrade from 4 to 5 of the app. Error will show up after a successful upload.

Expected behavior

This should update the site to 5.0

Screenshots

image

Learning Pathways version number

This is an upgrade from 4.3.0.0 to 5.0

Additional context

dcashpeterson commented 3 weeks ago

@droogsdontrun I was unable to replicate this issue but my suggestion would be to download the package again from the repository, delete the package from the app catalog, and add it again. This should resolve the issue.

droogsdontrun commented 3 weeks ago

Deleted the existing file and re-uploaded it, same result.

image

droogsdontrun commented 3 weeks ago

Turns out it needs to be upgraded as a global admin, not just a sharepoint admin.

dcashpeterson commented 3 weeks ago

@droogsdontrun glad it's working.