
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2016 09:37 AM
I am importing data into our CMDB_CI_Computer table from Casper via the REST API with a scheduled job. The import populates the cmdb_ci_comptuer table and assigns the correct Model ID to each computer.
Each assigned model has the out-of-box "Computer" model category, and therefore the system *should* create an asset automatically each time a new CI is created.
This works *most* of the time. However, there are about 100 CIs out of 1200 that do NOT create assets with that same model category.
This is NOT consistent across models. As an example, several CIs that have the model "Apple 15-inch Retina MacBook Pro (Mid 2015)" were created successfully, but some others with the same model were not created.
What could be going on? Why is the automatic asset creation inconsistent?
The wiki states that issues with creating the asset automatically can happen but does not suggest a fix.
http://wiki.servicenow.com/index.php?title=Model_Categories#Creating_Assets_Manually&gsc.tab=0
- Configuration errors: In rare cases, the system can fail to create the asset automatically. This might occur if you assign the model and model category to the CI in the wrong sequence.
Here's a screenshot of one CI that did NOT create an asset.
Here's one CI in the same import with the same model that DID create an asset successfully.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2016 10:32 AM
The issue was that "run business rules" was disabled on the transform maps.
That was preventing the "Create Asset on insert" Business Rule to run every time. Since I am creating new models on import with a transform map script, there is another circumstance where if a new Model record gets created, then there is another Business Rule that gets triggered from this Model creation that can create Assets.This Business Rule is "Sync model category". That's the reason that assets were getting created for most records but not for all of them.
I re-enabled "run business rules" on the transform and that solved the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2016 11:44 AM
My first thought here is that you have a non-standard configuration. Why are Assets displaying as a related list rather than just as a field on the form? This leads me to believe it is something specific to your environment.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2016 11:50 AM
Hi Ben, Thanks for pointing that out. I didn't realize that was not the "out-of-box" setup and that's a great question. That must've been done by a previous administrator and I'm not sure the reasoning. I think I'll need to contact support to get things back to normal. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2016 10:32 AM
The issue was that "run business rules" was disabled on the transform maps.
That was preventing the "Create Asset on insert" Business Rule to run every time. Since I am creating new models on import with a transform map script, there is another circumstance where if a new Model record gets created, then there is another Business Rule that gets triggered from this Model creation that can create Assets.This Business Rule is "Sync model category". That's the reason that assets were getting created for most records but not for all of them.
I re-enabled "run business rules" on the transform and that solved the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2024 01:29 PM
Hey Katie,
My issue is vice-versa, I am importing a data file on the alm_hardware with the OOB model category "Computer" , and it should automatically create the record on the CI side(cmdb_ci_computer). But it is not.
When I manually write a test record with the same details, it creates that record on the Cmdb_ci_computer table.
I did check the "run business rules" checkbox in the transform maps. I am unable to figure out the reason behind this.