change request logs show Invalid query detected, please check logs for details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
When you use a standard change template to create a new change req and save the record, a business rule is displaying an error message. The business rule should only display the msg if a field which was populated via template has had a value has changed which is not the case, however Logs are showing 'Invalid query detected, please check logs for details [Unknown field incident in table cmdb_ci_outage]'
I dont see how the 2 are connected but this is what im seeing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Kiran,
This is what I could find there is a support article for this issue. You need to check for the business rule on Affected table. Please find the link to this article below. I am pasting the article if link doesnt work
gr.addQuery('sys_id', current.request);
gr.query();
gr.next(); //<----- Problem line
Link: How to resolve invalid query detected errors with Unknown field undefined in a table
***Mark Correct or Helpful if it helps.***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Kiran_25
Relationship between the two tables are:
Unknown field incident in table cmdb_ci_outage,happens because the script incorrectly assumes the Outage table contains a direct incident reference field.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0863715
Hope it helps