We have created a report extension for the standard Purchase Order report (Report 405).
The extension and layout are working perfectly in our Development environment. However, after deploying the same extension to SIT/UAT, we started receiving the following error while running the report:
Rendering output for the report failed and the following error occurred:
The Group expression for the grouping ‘Group2’ refers to the field ‘No_PurchHeader’. Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope. Letters in the names of fields must use the correct case.
From the error message, it seems that the grouping expression in Group2 is referencing the field No_PurchHeader, but the system is not recognizing it within the dataset scope in SIT/UAT.
What is confusing is that:
The same extension works correctly in DEV.
If we manually upload/add the layout in SIT/UAT, the report runs without any issue.
We would appreciate guidance on:
Why this dataset scope error is occurring only after deployment.
Whether this could be related to dataset synchronization, layout binding, or environment differences.
Any recommended steps to properly deploy report extensions to avoid this issue.
Thank you in advance for your support