IBM Support

Report with Union query fails: CLI0125E Function sequence error. SQLSTATE=HY010

Troubleshooting


Problem

When running a report containing a UNION on DB2, an error message occurs.

Symptom

Original Error: RQP-DEF-0177 An error occurred while performing operation 'sqlOpenResult' status='-28'. UDA-SQL-0114 The cursor supplied to the operation 'APICursor::OpenResult' is inactive. UDA-SQL-0107 A general exception has occurred during the operation 'fetch' [IBM][CLI Driver] CLI0125E Function sequence error. SQLSTATE=HY010 UDA-CUR-0000 Unable to fetch the row.

Environment

Windows Server 2003 DB2 Connect v8.1.9.917 fixpack 9

Resolving The Problem

Set the 'use WITH clause when generating SQL' governor for the model in Framework Manager

[{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Framework Manager","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF033","label":"Windows"}],"Version":"10.2.2;10.2.1;10.2","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg21365844