
Power Apps CLI fails when downloading a website with the following error "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: 7ee816bd-0b55-4150-86c6-f8e9298cf03a, Exception Type: System.FormatException" . Looking at the logs it seems to be occurring here .
2023-03-31 11:46:46.0282|INFO|bolt.module.paportal.cds.CdsClientPool|1| TryGetNextAvailableClient| Wrapper Id: 6 QueueCount:6 LastFailure:False
2023-03-31 11:46:46.0282|INFO|bolt.module.paportal.cds.CdsClientPool|1| GetNextAvailableClient| Got disposable client
2023-03-31 11:46:46.0282|INFO|bolt.module.cds.client.primitives.ClientPrimitives|GetEntityDataByFetchSearch(): Starting
2023-03-31 11:46:46.0282|INFO|bolt.module.cds.client.primitives.ClientPrimitives|fetchXml: <fetch mapping="logical">
<entity name="adx_portallanguage">
<attribute name="adx_languagecode" />
<attribute name="adx_systemlanguage" />
<attribute name="adx_description" />
<attribute name="adx_displayname" />
<attribute name="adx_lcid" />
<attribute name="adx_name" />
<attribute name="adx_portallanguageid" />
<filter type="and">
<condition attribute="adx_portallanguageid" operator="eq" value="{12c0eb43-40d1-ec11-a7b5-6045bd00258d}" />
</filter>
</entity>
</fetch>
2023-03-31 11:46:46.0282|INFO|bolt.module.cds.client.primitives.ClientPrimitives|fields:
2023-03-31 11:46:46.0282|INFO|bolt.module.cds.client.primitives.ClientPrimitives|top: 1
2023-03-31 11:46:46.0282|INFO|bolt.module.cds.client.primitives.ClientPrimitives|batchId: 00000000-0000-0000-0000-000000000000
2023-03-31 11:46:46.0282|INFO|bolt.module.cds.client.CdsClient|[CSC] Microsoft.PowerPlatform.Dataverse.Client.ServiceClient Verbose: 16 :
2023-03-31 11:46:46.0282|INFO|bolt.module.cds.client.CdsClient|[CSC] Execute Command - RetrieveMultiple : GetEntityDataByFetchSearch - Direct : RequestID=073d9e11-d1c0-406f-9481-5c8eb05aa995
2023-03-31 11:46:46.1068|INFO|bolt.module.cds.client.CdsClient|[CSC] Microsoft.PowerPlatform.Dataverse.Client.ServiceClient Verbose: 16 :
2023-03-31 11:46:46.1068|INFO|bolt.module.cds.client.CdsClient|[CSC] Executed Command - RetrieveMultiple : GetEntityDataByFetchSearch - Direct : RequestID=073d9e11-d1c0-406f-9481-5c8eb05aa995 : duration=00:00:00.0790200
2023-03-31 11:46:46.1068|INFO|bolt.module.paportal.cds.CdsClientPool|1| AddBackToQueue| Queue Count 6 Before
2023-03-31 11:46:46.1224|ERROR|bolt.module.paportal.PortalDataExporter|ExportDataForAllEntities failed due to :One or more errors.
Any suggestions ?
Hi @jothivels
Can you check if you are connected to any VPN / different network while downloading the portal using CLI?
The second step is to make sure you use the proper website id and download it to the relevant path.
Example below
"pac paportal download --path "C:\portals" --webSiteId f88b70cc-580b-4f1a-87c3-41debefeb902"
If the above two solutions don't work, please raise a support ticket with the helpdesk
Hope it helps.
------------
If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.