- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2022 01:50 AM
Hi,
There is a strange thing, After filling a form and submitting it, request item is been created and a change request.
But when “Source IP” field value in change request is defined as a network IP (e.g. 151.101.8.8/29" or a Network range IP (151.101.8.8 - 151.101.8.100), and when moving that change to “implement” state, the change is popping out an error for that “source ip”:
“The following fields contain invalid value”.
What is strange, is that the client script that check that Source IP value validity in the Form, don’t see any problem on that Form field and even if I’m Deactivate that client script, still the change request is popping that error.
So, it is not clear to me what causing the “change” object to trigger that error and why.
Do you know about other “client script” that works on the “change” object or anything that is checking a “change” fields?
Thanks,
Lavi
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2022 08:10 AM
Hi,
I just found why. under "System Definition -> Validation Scripts" there are many fields which are pre-defined on the system level. one of them is an IP address.
After deactivating it, I'm not getting that error no more.
Thanks,
Lavi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2022 02:08 AM
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2022 07:37 AM
Hi Rohila,
Thanks for that tip. however, I can see that "watch - <field>" works only on a regular form field, but not on form "Variables" as my change request is getting.
Right click on a variable label or value don't provide anything.
Thanks,
Lavi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2022 07:51 AM
Variable level field-watch will not work
Did you verified all the client scripts/UI Policies?
Also verify the Client scripts/UI policies in your record producer too
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2022 07:58 AM
Hi,
Yes, I went over all the client scripts/UI policies. there is one that validate that field (source IP), but even after deactivate that client script, the change still provide an error when moving it to implement state.
That client script that works on the Form itself, don't see any problem with "source IP" value. so seems like the thing that indicates a bad value on the change request is some other script which I can't find.
Thanks,
Lavi