Hi team, is there any documentation I can use to t...
# gooddata-cloud
a
Hi team, is there any documentation I can use to troubleshoot the
for_visualization()
method in the python SDK? https://www.gooddata.com/docs/python-sdk/latest/workspace-content/workspace-content/for_visualization/ I would like to get a tabular result set for a specific visualization, and I'm using the function exactly as described in the documentation. I'm getting an error that just says
'properties'
. Any advice / alternative approaches appreciated - thanks!
m
Hi Anant, this error usually indicates that the SDK is trying to access a
properties
attribute on something that doesn’t have it. Can you please make sure that Make sure you’re passing the correct visualization ID which exists in your workspace? Or refers to a type that isn’t supported (e.g., non-insight object)? You can export it to confirm the ID and structure. If the above doesn’t help, please try updating the SDK to the latest version. Lastly, if non of the above helps, please provide us with the relates TraceID fro your Dev tools and we will check our logs for you to see if we can find more details there.
a
Hi @Michael Ullock, I can confirm that I'm passing a valid visualization of type
<class 'gooddata_sdk.visualization.Visualization'>
I'm using the latest version of the SDK (1.39). Is there an API endpoint I can use directly to perform the equivalent operation?
Update: got it working! I think the issue is I was calling this method for a visualization of type "local:table." Is there a different function I can use to check if a table visualization is returning valid data?
m
Hi Anant, I am glad to hear that you were able to get the tabular result. Regarding your follow up question, if you want to check whether a table visualization is returning valid data, you can use the
gooddata_sdk.GoodDataSdk
library and run a direct query against the visualization or its underlying dataset. I am afraid the validation per se, is not part of the SDK, but I hope this helps!