Change Request pops out an error on a field value (only when the change is moving to "implemented" state

Lavi Buchnik
Giga Contributor

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

1 ACCEPTED SOLUTION

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

find_real_file.png

 

 

 

View solution in original post

5 REPLIES 5

Voona Rohila
Kilo Patron
Kilo Patron
Hi Lavi
 
Use field-watcher to check what all are running on 'source ip' field.
 

https://docs.servicenow.com/en-US/bundle/sandiego-application-development/page/script/debugging/conc...


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

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

 

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

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