Reputation: 101
When I try to explore my data source fetched by a custom connector, I encounter a System error: 593d1fe0.
The number of columns received in the data returned from the community connector does not match the number of columns requested by Data Studio
But When I'm debugging my getData function, the result contains the same columns and same number of columns.
What can cause this kind of troubles ? some screenshots of the debug view:
Is my output structure correct ? is there something to consider regarding column names ?
Upvotes: 6
Views: 2865
Reputation: 3168
Data Studio does not request all the possible fields from getData
function. Most of the times, Data Studio will request a small subset from available fields. The list of required fields will be passed in the request
object when the getData
call is made.
See getData reference doc to understand the structure of request
and fields
.
Your getData
response should not return all available fields. Rather, the response should return only the requested fields. See example code showing how you can filter the fields.
For additional help, you can try the official codelab - Step 10 is relevant to your question. You can also view more examples at the official Data Studio Open Source repo.
Upvotes: 6