I am trying to create an analysis usign the CLI API… I created the json file using:
aws quicksight describe-analysis-definition
then i tried to do
aws quicksight create analysis using the json file (after removing the resources status, Stauts and requested ID.
If I try to load it to the same account it says that the analysis already exist, so I tried to delete that and to lunch the command…no error but I do not see the analysis. this is the output
Hi @remba87 - Can you please run the list_analyses to see whether the analysis is shown or not. I believe you have to give the permission to see the analysis in the UI. Please see the update analysis permission api details to set the permission. The document link is:
Hi @remba87 - Possibly this is the status of the 2nd run when you try to run it again. Can you please give the permission and see whether the analysis is visible to you or not. Or create an analysis with different name and see the status ( via list analysis) and give the permission.
I changed the name of the analysis and also the AnalysisId in the json file
then I launched the command and I have the status creatin in progrewss
then I see the list and the status for that ID is “Status”: “CREATION_FAILED”, but I did not get any errors…and I think this is why I do not see the analysis in my page
Hi @remba87 - Can you try update analysis by the below code. You need to change the details as per your account id, region, user details and analysis id.
Hi @remba87 - If your JSONs are good, analysis should be created perfectly. Although I never tried CLI approach of creating analysis, but it should work. Can you take a very simple analysis and see whether you are facing some issues in analysis in terms of presentation ( like junk characters in analysis).
and then I am encountering other problems…
I am uploading an analysis made up of many sheets and datasets.
Is it possible that in the json file I find old filters/visuals of old version of the analysis? because I found filters where the dataset is noe even present anymore in my account…
Hi @remba87 - This symptom may happened due to different reasons. I will suggest to build a simple analysis to ensure your create API analysis worked fine from back end and you are able to see neat and clean report from UI side. Once the POC done, you can start customize and add features with create API.
Thank you @remba87 . Glad the issue is resolved. Can you please mark the require suggestion as solution so that it can help wider QuickSight community.