Hello,
Thank you for sharing the details of your scenario.
The issue where a report fails with the message:
"Sorry, we just updated this page. Reopen it, and try again."
when triggered via an API session using an Entra Application User (AAD Application), but works correctly when executed manually by a user, may be related to how session context, permissions, or UI rendering is handled in background tasks initiated through the Task Scheduler.
Session Context Limitations API sessions initiated by application users often lack the full interactive session context required for certain UI-bound operations, such as report rendering. If the report relies on session-specific data (e.g., user settings, personalization, or temporary tables), it may fail when executed in a non-interactive context.
Missing Permissions or Role Assignments Ensure that the Entra Application User has all necessary permissions and role assignments to execute the report and access the required data. This includes:
Report Rendering Constraints Some reports are designed to be rendered only in interactive sessions (e.g., with a UI client). If the report includes UI elements or logic that depends on a client session, it may not function correctly when triggered via background API calls.
Use of Task Scheduler If the report is being executed via the Task Scheduler, verify that the task is configured to run in a context that supports report rendering. Consider testing the report execution using a background session initiated by a standard user to compare behavior.
Alternative Execution Strategy If the report must be executed programmatically, consider:
Logging and Diagnostics Enable detailed logging or use the Event Viewer and AL debugger to capture any exceptions or missing context during the report execution.
If this guidance helps resolve the issue, please consider marking the response as accepted so it may assist others encountering similar challenges.
Best regards.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Rishabh Kanaskar 4,202
Nimsara Jayathilaka. 3,248
Sumit Singh 2,893