Hi. We have been testing the scheduled export feat...
# gooddata-cloud
a
Hi. We have been testing the scheduled export feature of a dashboard as a pdf and keep getting the error shown in the attached screenshot. How do you suggest we debug this to figure out why it's happening?
m
Hi Adam, I would recommend checking if there is any insight in the object that is too big or if it contains too many of them. From our logs, I can see it is timing out when creating the export, but at this time it does not seem to be caused by any incidents in our platform. Are you getting the same error if you try to export the dashboard directly? Are you able to receive any other dashboards as a scheduled export? Could you also try exporting the insight manually to rule out any issues with them?
a
@Moises Morales I'm not getting the same error when trying to export directly/manually. See attached screen recording. It does take a little time to export so maybe your scheduled job has a timeout setting that is more aggressive than the one that does it directly?
b
hi @Adam Steele I checked Loki based on your traceId
3c50feb6d2b9b356
and see that error log
Copy code
{
  "ts": "2024-12-11 23:00:19.148",
  "level": "ERROR",
  "thread": "OkHttp <http://localhost:9222/>...",
  "logger": "com.gooddata.exporters.visual.session.TabSession",
  "message": "event=logEntryAdded level=error text=Failed to load resource: the server responded with a status of 404 (Not Found) url=<https://outfieldapp.cloud.gooddata.com/api/v1/entities/workspaces/52c8666e8c76482880cfbe8d34890fef/analyticalDashboards/57536563-3f9e-47f5-ae80-bd127bf6ba46?include=filterContexts%2CvisualizationObjects%2CdashboardPlugins&metaInclude=accessInfo>",
  "project": "57536563-3f9e-47f5-ae80-bd127bf6ba46",
  "traceId": "3c50feb6d2b9b356:taEm3LuKdPniTLud",
  "x-gdc-user-id": "michael.perlberg.41815c8c-a0aa-4b7c-94a3-7c56979cb69b",
  "x-gdc-user-name": "",
  "x-tiger-organization-id": "jwzoczj7ti"
}
Seems that recipient
michael.perlberg.41815c8c-a0aa-4b7c-94a3-7c56979cb69b
didn't have permission to see or export this dashboard. Could you please recheck this user's workspace and dashboard permission?
a
@Bich Nguyen he does have permission as far as I can tell...see screen recording. Let me know if I missing something.
I think I might know. Since I had to make that user just to be able to send it to a different email, I didn’t think to add our standard user data filter to that user, so it’s probably trying to produce the dashboard from the entire dataset and timing out rather than from the proper subset of data. I’ll try it tomorrow since the idea popped into my head just before bed local time.
b
@Adam Steele could you please check dashboard permission? At least, user
michael.perlberg.41815c8c-a0aa-4b7c-94a3-7c56979cb69b
should has View permission on this dashboard?
a
Ahh. Good catch. I think that is also the issue. I ran out of time today to get to this but will verify I can get it working next week. Thanks for the assist
We got this working. Thanks