Hi, is there any explanation for this kind of viz ...
# gooddata-cloud
d
Hi, is there any explanation for this kind of viz switcher behavior?
m
Hi Daniel, I’m happy to help with this issue. First, I need some more information and context. - Are you using the GoodData Cloud platform or an embedded environment? - In case of a embedded environment, how are you embedding the dashboard (please, if is SDK, include versions)? - Is this related to a single visualisation on a dashboard, or is it an entire dashboard? - If it’s a single visualisation, does the issue occur only with that one? - Are multiple users experiencing this issue? If so, could you specify their roles and permissions? - Have you tried accessing it in a different browser? - Could you please provide a TraceID from the developer console? - Did you make recently some significant changes in the workspace/domain? and are you able to see the same data you have in the visualisation in another visualisation, for example table? - Lastly, could you share a direct link to the visualisation or dashboard? Feel free to use direct messaging. Any information you can provide will be important for understand the root of the issue. Thank you!
d
• this is on the cloud platform ◦ (not embedded) • multiple viz switchers are having issues, sometimes like this • i'm the only person who'd see it • browser change hasn't helped • yes, I'm editting this via declarative YAMLs and the python SDK. i can push an update and get one behavior, refresh the browser and get another behavior, refresh again and get another behavior, so on and on. Just affecting these switchers. • I'll send direct links vai dm
m
Last question, did you try to edit and send the configuration of the visualisation manually or directly in the GD Cloud UI, without the YAML file and Python SDK? I am assuming in that case will work as expected.
d
i have not had this issue happen when making visualizations/dbs one by one in the gui
1
m
I have impersonate the testing organisation using our Admin user, and I can see correctly the dashboard without any issue. I would like to ask for autorization if I can impersonate your user, as you answered that only you have the issue.
d
yes, go ahead. let me know what you need from me
m
Hello Daniel, trying to open the insight "Encs_by_encs_sentiment_Appliances" will result in a message in Analytical Designer stating that "The visualization with this URL does not exist." However, checking for the visualization definition via its corresponding endpoint does prove otherwise: /api/v1/entities/workspaces/Your_Workspace_ID/visualizationObjects/Encs_by_encs_sentiment_Appliances The reason for this is that you have the following ID defined for the ranking filter in it:
Copy code
"rankingFilter": {
              "measure": {
                "localIdentifier": "bf9274a3f9cf49dd8c961783c7af2530g"
              },
              "operator": "TOP",
              "value": 15
            }
          }
But I am afraid that these ID's don't end with an alpha character. I was able to replicate the same issue in my workspace and have thus determined that you will need to recheck this definition. I understand that you are working with the Python SDK, and it was most likely introduced by it, since adding a ranking filter via the UI will assign the ID in the correct format.
I would recommend either removing the filter or fix the ID
Regarding the rest of failing Viz's, I see they are timing out with the following error:
Copy code
{
  "title": "Bad Request",
  "status": 400,
  "detail": "An error has occurred while calculating the result",
  "resultId": "13765bf241934c77ebf223b7e6bb9f2bd71833aa",
  "reason": "Query timeout occurred",
  "traceId": "5ae6c88c78bab8a7732dbde2900889a8"
}
For example: Encs_by_encs_sentiment_Clothing and Footwear
I am afraid that this is a client exception. Could you try generating the explain AFM zip by changing "/edit" for "/debug" in the insight URL and check your datasource logs with the SQL query details?
d
Thanks Moises, this should be enough for me to work with; I'll return if I have more I can't resolve
where is the necessary format of the localindentifier value listed?
I have several cases in my YAMLs where localidentifier values generated through the UI end with a letter
I venture a guess that the problem is with the length: can you confirm that identifiers must be 32 characters long? In the example your showed, an additional character was added by me at the end just to differentiate local IDs
Finally: I see that the ranking filter's measure field is designed to reference the localIdentifier of a corresponding measure. the reason that removing the extra 'g' worked in the above example is that the remaining 32 characters were a proper match for the corresponding measure's local identifier. The query time-outs in the other visualizations were related to the ranking filters not working right, and thus causing a data overflow
1
in a viz switcher with a dozen or more visualizations all suffering the same weirdness, i got that bizarre stack of visualizations-not-found
m
Hi Daniel, thank you for the update. I would like to clarify, there is no restriction about the length of the string
localdentifier
. The value is used to cross-reference model elements that are part of an execution. The constraint is that the local identifiers of all measures and attributes in an execution definition MUST be unique. And as you wrote, after removing the 'g' works because then the localIdentifier is the proper match. Please let us to know if you need more assistance.