The DUPLICATE_OBJECT function fails if the user doesn't have access to USRG or USER
The issue can be reproduced as follows:
:SET &retcode# = DUPLICATE_OBJECT(SCRI.DUPLICATE,SCRI.ORIGINAL,"/FOLDER/REPRODUCTION")
:PRINT &retcode#
Behavior:
The to-be-create object can't be accessed, with the following error in MELD:
U00000009 'SCRI.DUPLICATE': Access denied
After removing 'NOT USER' or 'NOT USRG' the duplication works.
This is a defect
With the REST API the duplication works in v24, v21 doesn't have the duplicate endpoint:
POST http://<server>:8088/ae/api/v1/100/objects/SCRI.ORIGINAL/duplicate
{
"name": "SCRI.DUPLICATE",
"title": "string",
"path": "/FOLDER/REPRODUCTION"
}
Update to a fix version listed below or a newer version if available.
Fix version:
Component(s): Automation Engine
Automation.Engine 21.0.14 - first half 2025
Automation.Engine 24.4.0 - April 2025
The reference for this fix is DE126491