Lifecycle stage and lifecycle status fields not getting populated with transform maps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 10:27 PM
Hi,
we are implementing CMDB and decided to use the CSDM status fields such as Lifecycle stage and Lifecycle stage status fields. We are trying to load sample data using import sets and transform maps, but these fields are being set to blank despite they are defined in the transform maps.
Here is the transform script and tried with both lifecycle stage names and sys_ids with no luck.
Didn't create Lifecycle stage mappings as we are loading the CI data for the first time.
Tried creating the field mappings too with no luck.
Has anyone experienced the this issue before and knows how to fix it?
Thank you,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2022 08:45 AM
Hi @Shanti7
Try to add below line after Line 7 and see if this resolves the issue:
target.update();
target.update();
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2022 02:32 PM
Thank you @AnubhavRitolia for the response.
I am using IRE API to import the data but not to Transform Map.
To force the data source to use IRE API, we use the below onBefore transform script.
---------------------------------------------------------
var cmdbUtil = new CMDBTransformUtil();
cmdbUtil.identifyAndReconcile(source, map, log);
ignore = true;
if (cmdbUtil.hasError()) {
var errorMessage = cmdbUtil.getError();
log.error(errorMessage);
} else {
log.info('IE Output Payload: ' + cmdbUtil.getOutputPayload());
log.info('Imported CI: ' + cmdbUtil.getOutputRecordSysId());
}
----------------------------------------------------------------------
Any idea, how to fix it?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2022 08:31 PM
Just for troubleshooting - Are you able to create a record manually using same data values in CMDB?
Regards
rP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2022 09:52 PM
yes, able to manually select those fields. We have this issues only when we try populating them from import set and IRE API.