powerplatform-vscode icon indicating copy to clipboard operation
powerplatform-vscode copied to clipboard

pac paportal download | Adxstudio.Xrm is not valid to download

Open chris-nguyen-MSFT opened this issue 2 years ago • 7 comments

Issue

When using pac CLI to download a website, the following error happens when downloading a given record; this error also happens with the Power Platform toolset for Azure Devops.

Error

Microsoft PowerPlatform CLI Version: 1.21.8+ga93a2c3

Error: Processing field adx_settings in table adx_entitylist with record id:f8e162f8-213a-ed11-9daf-001dd8023633 FAILED due to Type:Adxstudio.Xrm.Web.UI.CrmEntityListView.GridMetadata DetailsFormModal, Adxstudio.Xrm is not valid to download

Other tools are able to download the file successfully:

  • XRMToolbox Portal Records mover
  • pac tool cmt (Configuration Migration Tool)

Impact

This is customer facing work using Azure Pipelines and the Power Platform toolset; the process errors out during regular portal metadata deployments/ALM.

Content of adx_settings

adx_settings.txt

chris-nguyen-MSFT avatar Mar 31 '23 22:03 chris-nguyen-MSFT

@chris-nguyen-MSFT can you please try out the latest version of the PAC CLI ?

kkanakas avatar Apr 06 '23 20:04 kkanakas

@chris-nguyen-MSFT can you please try out the latest version of the PAC CLI ?

Same error - have moved thread internally.

PS C:\Users\nguyenchris> pac paportal download --path $folder -id $websiteId -o true

Microsoft PowerPlatform CLI

Version: 1.21.13+g348c5e9

Error: Processing field adx_settings in table adx_entitylist with record id:f8e162f8-213a-ed11-9daf-001dd8023633 FAILED due to Type:Adxstudio.Xrm.Web.UI.CrmEntityListView.GridMetadata DetailsFormModal, Adxstudio.Xrm is not valid to download

chris-nguyen-MSFT avatar Apr 10 '23 14:04 chris-nguyen-MSFT

Hey @chris-nguyen-MSFT, thanks for reaching out, we are looking into the issue. As the 'adx_settings' field holds configurations for the list component, seems like something might have been set incorrectly/differently that PAC download is not able to parse. Can you please share the WebAPI response for the record having the issue, need to check the response we get for the 'adx_settings' field in the given scenario.

API - [Your Organization Uri]/api/data/v9.0/adx_entitylists(f8e162f8-213a-ed11-9daf-001dd8023633)

Example API - https://org7e035972.crm10.dynamics.com/api/data/v9.0/adx_entitylists(3755fdd2-0e84-44ef-b823-00ee8d58644a)

For more details you can refer - https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query-data-web-api

Note: If the response contains some sensitive information, I'd request you to work with the Support team and create a support incident to discuss further on this.

MrRishabhJain avatar Apr 13 '23 06:04 MrRishabhJain

Hi @MrRishabhJain , the adx_settings is attached to the original issue; it's been added here for easy access (it was formatted in VS for readability)

Funny enough after inspecting the record, I see there are a few tab escape characters (\t) in the adx_settings column; I have no idea how they were introduced though.

adx_settings.txt

chris-nguyen-MSFT avatar Apr 13 '23 13:04 chris-nguyen-MSFT

Hi @chris-nguyen-MSFT, can you please share how you were able to obtain the contents of the "site_settings" field as this seems to be generated by PAC while being downloaded, but the issue is with PAC download itself.

If this was obtained by a previous PAC download, this may contain some stale value, hence recommended method would be to use the Web API as described in my previous comment.

MrRishabhJain avatar Apr 18 '23 10:04 MrRishabhJain

I exported the records via excel using advanced find.

I'll extract using the webapi and send in a follow-up e-mail.


From: Rishabh Jain @.> Sent: Tuesday, April 18, 2023 6:36 AM To: microsoft/powerplatform-vscode @.> Cc: Chris Nguyen @.>; Mention @.> Subject: Re: [microsoft/powerplatform-vscode] pac paportal download | Adxstudio.Xrm is not valid to download (Issue #493)

Hi @chris-nguyen-MSFThttps://github.com/chris-nguyen-MSFT, can you please share how you were able to obtain the contents of the "site_settings" field as this seems to be generated by PAC while being downloaded, but the issue is with PAC download itself.

If this was obtained by a previous PAC download, this may contain some stale value, hence recommended method would be to use the Web API as described in my previous comment.

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/powerplatform-vscode/issues/493#issuecomment-1512846140, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWKHOIUPVAYJKTOW3DJBY7LXBZVDFANCNFSM6AAAAAAWPGJN6E. You are receiving this because you were mentioned.Message ID: @.***>

chris-nguyen-MSFT avatar Apr 18 '23 15:04 chris-nguyen-MSFT

hi @MrRishabhJain , the webapi extract is below attached to this comment

adx_entitylists(f8e162f8-213a-ed11-9daf-001dd8023633).json.txt

chris-nguyen-MSFT avatar Apr 18 '23 15:04 chris-nguyen-MSFT