Morning everyone, Could anyone check this trace I...
# gooddata-cloud
i
Morning everyone, Could anyone check this trace ID and provide some more info from it?
95d29f56b457a9bc
---- This was the TraceID from a failed scheduled export. Thanks!
Also, if the insight/visualization has no data to display or export - would I receive an empty file or nothing at all?
m
Hi Bryan, thanks for raising this. From our side, I can see the scheduled export is failing with the following error:
Copy code
INVALID_ARGUMENT: One of result_id, visualization_id, or dashboard_content is required.
It looks indeed that your dashboard is empty or your visualization is not returning any data. I would like to understand better how the error is manifesting on your end for any improvements. Could you DM me the dashboard in question?
i
That's correct, the visualization has no data for now since no data meets its conditions/filters. If an insight is empty, does it still attempt to send the scheduled export and if it does - what is received by the user?
In the scheduled export email to the user, they see that error. Looking at the insight, there is no data to display since no data satisfies the conditions and filters. When attempting to manually export from the insight, the following is shown on both the CSV and XLSX format options: ----- My guess here is that since there is no data, the expected behavior is to disallow/disable these formats temporarily until there is data to display. Then by extension, if a user has a scheduled export configured for the insight and it fires off - since the formats are not enabled - they receive that error statement.
@Moises Morales could I submit a feature request given this^^? Specifically, a request to change/update the wording of the email delivered to the recipient of a Scheduled Export. I'd like to ask that the wording be updated to reflect there was no data gathered for the export and so no data file is provided. I think that might help clarify for the end-user there was no error in the configuration or dashboard, but instead that there simply was no data to provide to them.
m
Thanks for the additional details @Ian Bryan. I have marked this as product feedback so the option to export an empty insight is not shown in the first place just like it works with regular exports for dashboards.
p
🎉 New note created.
j
Hi. I'm using scheduled exports through webhooks and I'm also interested in being able to differentiate if the export was empty or if it was some configuration error. @Moises Morales is there any update on whether this is something that is going to be fixed/changed?
m
Hi Jonas, could you share the error details? If the export is empty, you would get a file with empty content.
j
Sure, I get this:
Copy code
"errorMessage": "INVALID_ARGUMENT: One of result_id, visualization_id, or dashboard_content is required. None provided.\nresult_id=\nvisualization_id=choiceDashboard-ac42-99f7a5633d5f\ndashboard_content=invalid\n",
        "traceId": "1d2bde3bfc522eb1"
m
I see, it's the same error reported by Ian. We currently have a feature request to avoid letting the user schedule an export or selecting the export option for an insight with empty content. In the meantime, I would recommend making sure the insight renders some data first before triggering the schedule.
j
In my case, preventing the export from being scheduled doesn't really solve the problem. Schedules could be set up before there is any data in an insight. Is there a feature request for the export to work as you initially described - sending a file with no content?