Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 2.0.69 causes pac paportal upload failure #885

Closed
mphhohku opened this issue May 16, 2024 · 4 comments
Closed

version 2.0.69 causes pac paportal upload failure #885

mphhohku opened this issue May 16, 2024 · 4 comments
Assignees
Labels
paportal Pertains to Power Pages

Comments

@mphhohku
Copy link

'Sorry, the app encountered a non recoverable error and will need to terminate. The exception details have been captured and will be forwarded to the development team, if telemetry has been enabled. Exception Id: , Exception Type: System.InvalidCastException'

I was using 2.0.63 a while ago, but when using 2.0.69 starting today because I am using Azure DevOps pipelines, this would cause the above error.

@tehcrashxor tehcrashxor added the paportal Pertains to Power Pages label May 16, 2024
@MrRishabhJain
Copy link

Hey @mphhohku, can you please share your logs or confirm that your log file is having the below exception?

2024-05-16 11:20:31.9163 | ERR | bolt.module.paportal.PortalDataImporter :: PAPortalUploadAction(): Failed
2024-05-16 11:20:31.9450 | ERR | bolt.module.paportal.PortalDataImporter :: System.InvalidCastException: Unable to cast object of type 'Microsoft.Xrm.Sdk.Messages.DeleteRequest' to type 'Microsoft.Xrm.Sdk.Messages.UpsertRequest'.
   at bolt.module.paportal.PortalDataImporter.<>c__DisplayClass31_0.<ExecuteRequestsAndHandleResponse>b__0(OrganizationRequestCollection requests)

@majakubowski
Copy link

I found the same issue - log attached to the comment.
We are using model V1 for Power Pages. Build Tools with version 2.0.63 works correctly. The issue occurs also in Power Apps CLI versions: 1.32.5, 1.32.6. pac version 1.31.6 works correctly.

pac-log.txt

This was referenced May 16, 2024
@MrRishabhJain
Copy link

PAC v1.32.7 published with the fix. @mphhohku / @majakubowski, can you please update to this version and try again?

@MrRishabhJain MrRishabhJain self-assigned this May 17, 2024
@majakubowski
Copy link

@MrRishabhJain both pac 1.32.7 and ADO Build Tools 2.0.70 works fine :) Thank you for really quick bugfix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
paportal Pertains to Power Pages
Projects
None yet
Development

No branches or pull requests

5 participants