Updating an element and getting IMGR275E error - why is this error issued and how can it be resolved. :
ELEMENT --TYPE NS ENVIRON S SYSTEM SUBSYS VVLL PROCGRP CUR DTE
PROGRAM1 TYPE1 ENV1 P SYS1 SUBSYS1 0101 PRCGRP1 28AUG19
PROGRAM1 TYPE2 ENV1 P SYS1 SUBSYS2 0101 PRCGRP2 18OCT19
C1G0202I ACTION #1 / STMT #2
C1G0203I ADD ELEMENT PROGRAM1
C1G0205I FROM DSNAME: YOUR.LIBRARY.CONTROL
C1G0204I TO ENVIRONMENT: ENV1 SYSTEM: SYS1 SUBSYSTEM: SUBSYS1
C1G0232I OPTIONS: OVERRIDE SIGNOUT, UPDATE
C1G0232I CCID: TEST
C1G0232I COMMENT: TEST
IMGR257E REG. ERROR: ELEMENT NAME ALREADY EXISTS AT:
C1G0506I ENV: ENV1 SYS: SYS1 SBS: SUBSYS2 STGID: P TYPE: TYPE2
C1G0277I ADD PROCESSING TERMINATED BECAUSE OF THE PREVIOUS ERROR
C1G0200I ELEMENT ACTION REQUEST PROCESSING COMPLETED, HIGHEST ENDEVOR RC WAS 00
END OF EXECUTION LOG - HIGHEST ENDEVOR RC = 0012
Release : All Supported Releases
IMGR257E REG. ERROR: ELEMENT NAME ALREADY EXISTS AT:
C1G0506I ENV: ENV1 SYS: SYS1 SBS: SUBSYS2 STGID: P TYPE: TYPE2
This is an element registration error that is set in the system definition for SYSTEM SYS1 with the MSG LVL set to "E". The "E" level of duplicate name checking at the system level only allows one occurrence of an element name within the system. Because the element already exists in subsystem SUBSYS2 (based on the error message), it is not allowing you to add/update in subsystem SUBSYS1.
If you need both elements, Duplicate Element Name can be turned off or the MSG LVL can be switched to "C" or "W".
IMPORTANT: Element registration settings in the system definition panel need to be kept consistent in all the stages where the system is defined. Otherwise element registration may behave in an unpredictable way.