DUPLICATE_OBJECT fails
search cancel

DUPLICATE_OBJECT fails

book

Article ID: 388440

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The DUPLICATE_OBJECT function fails if the user doesn't have access to USRG or USER


The issue can be reproduced as follows:

  • create a user with all rights and permissions then add a line 'NOT USER' or 'NOT USRG'
  • create an object to be duplicated (SCRI.ORIGINAL)
  • create a duplication script:
:SET &retcode# = DUPLICATE_OBJECT(SCRI.DUPLICATE,SCRI.ORIGINAL,"/FOLDER/REPRODUCTION")
:PRINT &retcode#
  • run the above duplication script

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.

Cause

This is a defect

Resolution

Workaround:

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"
}


Solution:

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

Additional Information

The reference for this fix is DE126491