Hey team! We noticed an issue with PDF exports whe...
# gooddata-cloud
e
Hey team! We noticed an issue with PDF exports when using the API: the section descriptions are not being populated, even though the export completes successfully. However, when exporting through the UI, the section descriptions appear correctly. Could you please investigate why the API export behaves differently?
k
New message text here
e
Attaching the relevant files.
m
Hello Evangelos, thank you for the files. I have tested the export via the API here https://www.gooddata.com/docs/cloud/api-and-sdk/api/api_reference_all/#operation/createPdfExport, and the description is still present in the generated snapshot PDF (see attaachement). I am also attaching the payload I used.
Could you please compare my payload with yours? If there are no apparent differences, could you provide more details as to how exactly you're performing the export, e.g., API endpoint, SDK, etc.? Also, are you using any special characters in the rich text, or have any dashboard plugins active?
e
Hi @Moises Morales, thanks for the fast response and the tests you performed. The payload looks somewhat similar so I wouldn't say that this is the problem. The rich text contains Swedish characters (
å, ä, ö
) - not sure if these are considered "special". The way that the pipeline runs is by sending batches (of size 10) of export requests to the endpoint and then we export them using the export endpoint (again in batches of 10). We do this to respect the limitation of maximum 10 exports at the time. If I would guess, I would say that this might have caused the issue. Note: What do you mean by dashboard plugins? CC: @Philip Asp
f
Hi Evangelos, we’ve been investigating this issue a bit further and have found what’s causing it. It turns out that it relates to a known bug where the richText sections on dashboards take a lot longer to render than the rest. It looks like this delay occasionally causes our visual exporter to take a snapshot of the dashboard before the descriptions are fully rendered. In fact, on the example you sent us, the missing descriptions are replaced by dots - which are actually a snapshot of our loading icon. You can actually see that live by accessing any dashboard with richText and refreshing the page - note the loading icon and how the descriptions take a little while to render. We already have a case with our engineers to fix this issue with the richText rendering - and once that’s fixed, the PDF exports should display them correctly. I’ll let you know once we have a fix or an update!
e
Hi @Francisco Antunes, thanks for the detailed explanation of the situation! I'll wait for your updates😊
f
Hey @Evangelos Malandrakis, thanks for hanging in there while we worked on this. I’ve just confirmed with our engineers that the bug with the Rich Text rendering has been fixed! I tested it myself, and it loads much faster - so the issue with the missing descriptions on Export should be resolved now! 🙂
🙌 1
e
Thanks for the update @Francisco Antunes! We'll test it on our side and we'll let you know if we face any problems 😊 Thanks for the update
1