- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2023 03:37 AM
Hi everyone,
here is my coalesce trasnformap source script, but the records in the alm_hardware table with the configuration item which starts with the u_servername source are not getting upgraded?
I'am miss something?
What could be the problem here? Thanks for help in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2023 07:23 AM
The poblem was the target field. It should be sys_id and not configuration item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2023 05:02 AM
Hi @JohnDF ,
Can you see any error for the records after transforming or is it just Skipped?
And, I see you are using while(alm.next()) in GlideRecord section and you are just retuning the sys_id of a record (ofcourse it should be one record only, as it is coalesce field). I'm just trying to understand why are you using "while" instead of "if", any specific reason?
Thanks,
Anvesh
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2023 05:23 AM - edited ‎03-21-2023 06:32 AM
@AnveshKumar M thanks for reply,
I changed to if. But the records get still created and not updated. No errors. Just inserts
I used while because there can be multiple target records who will be found with the query becasue more records starts witthe u_servername and should be updated with the source field. But in the excel the u_servername is unique.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2023 07:23 AM
The poblem was the target field. It should be sys_id and not configuration item.