Hello everyone!
I'm having some issues with uploading a single-page application to Power Pages, and wonder if there's anyone who's got the same problem, and has found a better solution.
I've successfully managed to upload the site several times, but once in a while I get this error when trying to use the
pac pages upload-code-site command:
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. Session Id: [ID], Exception Type: System.AggregateException
2026-03-19 14:35:21.7516 | ERR | bolt.module.paportal.PortalDataImporter :: System.AggregateException: One or more errors occurred. (The given key 'adx_serverlogicid' was not present in the dictionary.)
The first time was March 19, and it also happened today, 21 April. I've successfully managed to both download the site settings and upload the app with changes several times during this period, and haven't done anything differently that I'm aware of.
Both of the times, this was the only thing that worked for me:
1. Delete all server logics in the Power Pages studio (Set up > Server logic)
3. Build the app locally
5. Recreate the server logic in Power Pages studio
6. For new changes, upload the app directly without downloading site settings first - now it's working!
This seems like a bug to me, since it's working again after deleting the server logic before the first upload. Anyone found a better solution?