Why BusinessObjectUtils.changeRevision() API fails ?

Why BusinessObjectUtils.changeRevision() API fails ?

Current Scenario:

API like BusinessObjectUtils.changeRevision(entry.getObjectId(),s); is working fine on 13XE env however it fails with latest 3DEXPERIENCE environment

 

Root cause :

MQL doesn't support multiple mql statements executed at once. BusinessObjectUtils.changeRevision internally calls multiple mql statements at once & using deprecated DS API so it’s failing. The issue is reproducible in Inquiry Data Set as well where Inquiry is executed as MQL statement.

The limitation to use multiple commands had been imposed by Dassault from R2015x

 

Solution:

We have to add MX_ALLOW_MULTIPLE_MQL_COMMAND_EXECUTION=true env variable in enovia.ini to allow multiple mql statements execution at once.

TECHNIA CONFIDENTIAL