My Oracle Support Banner

ORA-01795: maximum number of expressions in a list is 1000 Error When Associating more than 1000 Inventory Groups to an Entity (Doc ID 2228062.1)

Last updated on DECEMBER 01, 2023

Applies to:

Oracle Communications Unified Inventory Management - Version 7.2.4 and later
Information in this document applies to any platform.

Symptoms

If one tries to associate more than 1000 Inventory Groups to Custom Object, following error is observed in UIM:
The error pops up from UIM UI:

interface oracle.communications.inventory.api.entity.CustomObject: Internal Exception: java.sql.SQLSyntaxErrorException: ORA-01795: maximum number of expressions in a list is 1000 Error Code: 1795 Call: SELECT ENTITYID, ENTITYCLASS, ACTIVITY, ADMINSTATE, CREATEDDATE, CREATEDUSER, ENDDATE, ENTITYVERSION, FROMENTITYROLEKEY, LASTMODIFIEDDATE, LASTMODIFIEDUSER, OBJECTSTATE, PARTICIPATINGENTITYID, PARTICIPATINGENTITYNAME, PARTICIPATINGENTITYSPECNAME, STARTDATE, TOENTITYROLEKEY, TYPE, CUSTOMNETWORKADDRESS, CUSTOMOBJECT, EQUIPMENT, LOGICALDEVICE, LOGICALDEVICEACCOUNT, NETWORK, PARTY, PHYSICALDEVICE, PIPE, PIPETERMINATIONPOINT, PRODUCT, PROPERTYLOCATION, SPECIFICATION, TELEPHONENUMBER, INVGROUP FROM InvGroupRef WHERE (((ENTITYID IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) AND (INVGROUP = ?)) AND (ENTITYCLASS = ?)) bind => [1055 parameters bound] Query: ReadAllQuery(referenceClass=InvGroupRefDAO sql="SELECT ENTITYID,ENTITYCLASS, ACTIVITY, ADMINSTATE, CREATEDDATE, CREATEDUSER, ENDDATE, ENTITYVERSION, FROMENTITYROLEKEY, LASTMODIFIEDDATE, LASTMODIFIEDUSER, OBJECTSTATE, PARTICIPATINGENTITYID, PARTICIPATINGENTITYNAME, PARTICIPATINGENTITYSPECNAME, STARTDATE, TOENTITYROLEKEY, TYPE, CUSTOMNETWORKADDRESS, CUSTOMOBJECT, EQUIPMENT, LOGICALDEVICE, LOGICALDEVICEACCOUNT, NETWORK, PARTY, PHYSICALDEVICE, PIPE, PIPETERMINATIONPOINT, PRODUCT, PROPERTYLOCATION, SPECIFICATION, TELEPHONENUMBER, INVGROUP FROM InvGroupRef WHERE (((ENTITYID IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)) AND (INVGROUP = ?)) AND (ENTITYCLASS = ?))")



This is happening because of a behavior of SQL Statement:

https://forums.oracle.com/ords/apexds/post/ora-01795-maximum-number-of-expressions-in-a-list-is-1000-e-4745

Its a Oracle Database limitation that IN Clause does not allow values more than 999.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.