2072769 - Error SQL331 "Query is too complex and has exhausted the name space for Ordering IDs, please breakup query into simpler components." | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2072769 - Error SQL331 "Query is too complex and has exhausted the name space for Ordering IDs, please breakup query into simpler components."

Symptom

When running a Data Manager package to clear data in BPC NW 10, the job fails and the following ASE error is generated in SM21 log:

[ASE Error SQL331][SAP][ASE ODBC Driver][Adaptive Server Enterprise] Query is too complex and has exhausted the name space for Ordering IDs, please breakup query into simpler components
Database error 331

In the work process developper trace file we can see this kind of message:

C ERROR: -1 in function StartSelect (execute) [line 22270]
C (331) [ZZZZZ] [SAP][ASE ODBC Driver][Adaptive Server Enterprise]Query is too complex and has e
C xhausted the name space for Ordering IDs, please breakup query into simpler comp
C onents.
C
C sql statement is ==> select .......... <complete statement here>
C ..................................................
C dbdssyb: DBSL99 SQL331
C [ASE Error SQL331][SAP][ASE ODBC Driver][Adaptive Server Enterprise]Query is too complex and has exhausted the name space for Ord


Read more...

Environment

SAP Adaptiver Server Enterprise (ASE) 15.7 SP122 for Business Suite and previous versions.

Product

SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0 ; SAP NetWeaver Business Warehouse 7.2

Keywords

ASE, BW, BCP, Data Manager, 331, SQL331, complex query, CR 757301 , KBA , BW-SYS-DB-SYB , BW on Sybase ASE Database Platform , Bug Filed

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.