How to implement relationship between cis in cmdb_rel_ci

vamshi2
Tera Contributor

Hi Team,

 

Anyone please suggest how to import records in cmdb_rel_ci table

 

i have data like connects to, is served by in excel

 

Thanks & Regards,

ramu

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @vamshi2 

 

It's 3 step

1. Bring the source CI in CMDB ( Parent)

2. Bring the target CI in CMDB (Child)

3 Then get the relationship in cmdb_rel_ci and create a transform map and run the map. Make sure the parent and child CI name must match with cmdb data. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG 

 

Thank you so much for quick reply 

 

i try to import the data (for example new ci type as "requires" ,"is authorized by",..) using transform map in cmdb_rel_ci table i am facing below error as the ci type is not available in  "cmdb_rel_type" 

 

"Operation against file 'cmdb_rel_ci' was aborted by Business Rule 'Prevent Recursion in CI Relationships^50fa16a3475dd290535ad38a516d43c3'. Business Rule Stack:Prevent Recursion in CI Relationships" 

 

could you please advice 

 

Hi @vamshi2 

 

Try to create this relationship manually and see did you get errro?

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0813377

 

https://www.servicenow.com/community/developer-forum/how-to-solve-operation-against-file-cmdb-rel-ci...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG 

 

Thank you for quick reply

 

i have tried creating manually and the record is not creating 

 

it is creating when we provide both parent description and child description of cmdb_rel_type but as of now transform map is on cmdb_rel_ci table which i am creating relationship if in data is not present in servicenow by using choice action create

 

vamshi2_0-1729744067164.png

vamshi2_1-1729744224072.png