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-17-2022 10:41 PM
Hi @Shanti7
Sorry to ask but could you share all the Scripts you have written including Transform Script and Script Include.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 09:00 PM
Hi Anubhav,
Here is the onBefore transform script which will load data using the IRE API so that identification and Reconciliation rules will be evaluated before a record is inserted and updated.
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());
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2022 01:15 PM
Hi,
I have a similar if not the same problem.
I'm trying to set the life cycle status using an import using transform maps.
I'm setting the values with a field map.
All fields gets imported as expected but not the life cycle stage and status.
If I look at the XML for the imported data then I can see that the value is set but not the display value.
For example:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2022 07:26 AM
Hi Mattias,
Yes, I also have the same issue and couldn't find the exact cause. So logged a call with ServiceNow and awaiting their response. Will update the post when I hear from them. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2022 01:26 AM
Hi Shanti,
Did you get a response from ServiceNw support?
Mattias