While discovery After business rule is not executing

Ankit38
Tera Contributor

While executing quick discovery, business rule is not getting executed.

System property(glide.identification_engine.batch_update_last_discovered) is 'false'

When we create relationship manually to cmdb_rel_ci, then its works fine.

Please find attached screenshot for business rule.

 

find_real_file.png

 

6 REPLIES 6

Allen Andreas
Administrator
Administrator

Hi,

Do you have any filter conditions in this business rule? (we can't see from the screenshot as it's cut off).

Are you testing this literally using quick discovery or is there some sort of script executing this?

If this is for updating the current record, please change business rule to "before" not "after".

Ensure you're also using log statements/troubleshooting in the advanced tab to check if it's running or not.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi @Allen Andreas 

This business rule is working fine, if we create relationship manually in 'cmdb_rel_ci' table.

But when we open 'discovery schedules', and click on 'Quick Discovery' and provide ip address of CI, then it discovers CI record and also create one relationship in 'cmdb_rel_ci' table, but business rule is not executed. 

Neither "before" nor "after" business rule is executing after discovery, 

But if we delete relationship record from 'cmdb_rel_ci' table and create manually that relationship record then business rule is getting executed.

Tried below article as well, but its not working.

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

Anand77
Tera Contributor

Are you able to resolve this? I am facing similar issue.

Ankit38
Tera Contributor

Hi,

No, It didn't got resolved yet.

Try creating business rule on cmdb_running_process table or cmdb_ci_server table.