Skip to content

A Report Rule expression referencing report-XML-path placeholders, like `[@REPORT_NAME/PATH/TO/FIELD]`, to select a logical printer based on report data fails with 'ORA-31011: ERROR Evaluating Expression,' even though the underlying SQL has been tested and works fine on its own.

Answer

Check whether the target report's own Report Definition has its 'Create XML' checkbox enabled — the Report Rule mechanism relies on the report actually generating a structured XML representation of its own data in order to resolve those bracketed path references, and if 'Create XML' isn't checked, resolving any [@REPORT_NAME/...]-style placeholder fails with exactly this expression-evaluation error. Enabling 'Create XML' in the report's own Report Definition resolves it, even when the referenced SQL and path syntax are otherwise correct.

← Browse Reporting and analytics questions