Deployment failed error in app catalog when using webApiPermissionRequests in package-solution.json file
Category
- [ ] Question
- [ ] Typo
- [X] Bug
- [ ] Additional article idea
Expected or Desired Behavior
For the package to deploy to the app catalog without error.
Observed Behavior
If I build my package (just the default SPFX Web Part with very little changes) and deploy it to the SharePoint app catalog it will deploy ok. The issue comes if I add a "webApiPermissionRequests" section to my package-solution file I get the error in the app catalog: Deployment failed. Correlation ID: 71dec89e-102f-0000-9151-f0729a9f0b6b If I remove this node it deploys without issue. The app catalog shows "Valid App Package: Yes".
My package-solution.json:
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
"solution": {
"name": "demo-client-side-solution",
"id": "09781193-a491-44b4-88fb-04bbcfa71eb7",
"version": "1.0.0.4",
"includeClientSideAssets": true,
"skipFeatureDeployment": true,
"isDomainIsolated": true,
"webApiPermissionRequests": [
{
"resource": "1049ad91-dec9-4934-822b-d1720ed616c8",
"scope": "user_impersonation"
}
]
},
"paths": {
"zippedPackage": "solution/demo.sppkg"
}
}
Steps to Reproduce
Add a webApiPermissionRequests node to the package-solution.json file and deploy it to SharePoint.
Thanks for your contribution! Sharing is caring.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Turns out this was being caused by the preview property: "isDomainIsolated": true,
I removed this from the package-solution.json file and it deployed successfully.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues