UC4 script function :REMOVE_OBJECT exists with error 4006507
search cancel

UC4 script function :REMOVE_OBJECT exists with error 4006507

book

Article ID: 187669

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The UC4 function REMOVE_OBJECT() exists with error 4006507

To detect the return code it needs to be printed in the script with a :PRINT command:

:set &ret1# = remove_object(&objektname#)

:print &ret#

Environment

Release : 12.1,12.2, 12.3

Component : Automation Engine

Cause

Error 4006507 of function REMOVE_OBJECT() means that the object is not deactivated or running

Resolution

Deactivate the object before trying to remove it