I suspect the SSO gets in the way. Could you try configuring a separate user role (with module roles if required)? Then create an Account with that role and generate a document using that account rather than the actual SSO user. Be sure to exclude the role from SSO handling. Even if this is not a viable production solution, at least you know the SSO gets in the way.
Note that this special role needs access to generate documents on behalf of the actual SSO user. Please set a strong password.
Docs: https://docs.mendix.com/appstore/modules/document-generation/#system-task
In my opinion, double check the security setting of this entity specifically and make sure the role performing the download action has access to this entity
most times thats the issue for time outs.
If not, then while debugging where exactly is the flow breaking and giving an error? on the pdf generate activity?
I also suspect a security issue. Do you have proper access rights set on your DOC_ExampleDocument_Print microflow? The one with the show page action?
The steps from Calantha Coulton helped me to solve the problem. problem was in step2, I assigned only Admin, noth both… now it works local and I will test accp
More details here
This is the file entity used for the PDF generation
Administrator system role has roles DocGen user and admin
Properties for page to be turned into PDF. The contents of this page is just plain text for testing purposes
i have the same issue but do not use SSO: