
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2022 07:35 AM
I am preparing a large set of data to import into our CMDB and to test I am using a sub-set of about 25 records. When I use the transform map to create the records they are created on the alm_hardware table but the associated CI is not being auto-created as expected. I tried doing the reverse and imported the CIs but the assets were not auto-created as expected.
I know I have done this before without issues and cannot figure out what I am missing.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2022 08:45 AM
You are mapping u_model directly to model_id field, and you are not mapping model category at all. Both are required to create an asset correctly and create a resulting CI. This is the cause of your issue.
Model: Since there is no source script used here, and presumably the value of u_model is not a sys_id of a Model reference, this won't work. You need to provide a reference to a valid model. My recommendation would be to use a combination of u_manufacturer (if available) and u_model, and then use MakeAndModelJS script to automatically obtain or create a valid model reference on the fly. If you do not have u_manufacturer available in your data source, you will need to determine an appropriate method to supply a valid model reference, or else this will not work correctly, because it cannot determine what model to use.
Model Category: This is typically something that you will have to provide some customized logic for, depending on your data source. Like model, it has to be a reference (sys_id) to a model category. It's not a String field. So you will need to map the information from your data source to an appropriate model category in your system.
Please mark as helpful and as correct answer if this resolves your issue.
Paul
The opinions expressed here are the opinions of the author, and are not endorsed by ServiceNow or any other employer, company, or entity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2022 07:41 AM
Andy:
Is the run business rule checkbox set to true on the transform map?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2022 07:49 AM
Check your model, the model is related to model categories. Model categories contain the rules where and asset should be created for CIs placed into what ever CI class you are importing into

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2022 07:56 AM
Check box to run the BR is checked...
I created the model categories noting the CI table and the Asset table required and ensured that the model record itself has the correct category listed..
same result..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2022 08:04 AM
In your transform map are you setting the model category on the alm_hardware table?