-
Notifications
You must be signed in to change notification settings - Fork 78
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
Unable to Deploy CRM Analytics Dashboard - Invalid JSON Format #2803
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Thanks for providing the zip, that's super helpful. I was able to create a new org, and run |
hey @hmandsager can I ask how you created the |
I copy and pasted the JSON from an Analytics Studio dashboard. I tried:
I've attached the JSON from analytics studio |
I'm wondering if one of those incremental additions has transformed it. From the CLI's perspective, everything is getting built and deployed to the server correctly. Is there any way to create these dashboards in the org and then |
Even just copying and pasting the the json in its entirety causes the error...incremental was to just try and drill down to which part seemed to be the issue. Using |
the file's suffix plays an important role, even if it's a json structure keeping the same suffix will be required when retrieving/deploying |
I was able to create a template from an app and run |
sounds like you've solved the issue then? I'll close this issue, but if you're still seeing errors, we can reopen :) |
Summary
I created an analytics template in VSCode and successfully deployed to a scratch org. I then created a sample dashboard within Analytics Studio, copied the JSON file from Analytics studio, created a new file in the and pointed
template-info.json
to this new dashboard. Attempting to push using either the CLI or VSCode failed with the same error.I believe it has something to do with the
steps
object inside of thestate
object ofmainDashboard.json
. Specifically, if I go through thedatasets
object and removelabel
the error changes to point towardsurl
as an unrecognized field. Going through the documentation it appears that Analytics Studio produced a file wheredatasets
is a AssetReferenceRepresentation while the CLI seems to think it should be of type AssetReferenceInputRepresentationSteps To Reproduce
Here is a .zip of the example repo: analytics-test.zip
sf project deploy start
orSFDX: Push Source to Default Org
through VSCodetestDashboard
successfully deploys by updatingtemplate-info.json
to below:Expected result
Successfully deploys template to the scratch org
Actual result
System Information
Additional information
The text was updated successfully, but these errors were encountered: