Help about WARNING in JavaScript Log.

d-aizawa
Kilo Sage

I used Glide Ajax and Script Include.

No error has occurred, but when I check the Javascript log, the following WARNING message is displayed.

on Load

  • *** WARNING *** GlideAjax.getXMLWait - synchronous function - processor: UserPreference

When entering a value in a field

  • *** WARNING *** GlideAjax.getXMLWait - synchronous function - processor: FormStateAjax

Thank you!

1 ACCEPTED SOLUTION

Mohit Kaushik
Mega Sage
Mega Sage

You can change the getXMLWait to getXML as getXMLWait is a synchronous query which holds the user to get control of the form before it fetches result from server. So it is always best practice to use getXML().

You can learn more about getXML and getXMLWait in below thread:

What is getXML() and getXMLWait()? - Developer Community - Question - ServiceNow Community

 

Please mark this correct and helpful if it solved your query and helped you.

 

Thanks,

Mohit Kaushik

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)

View solution in original post

1 REPLY 1

Mohit Kaushik
Mega Sage
Mega Sage

You can change the getXMLWait to getXML as getXMLWait is a synchronous query which holds the user to get control of the form before it fetches result from server. So it is always best practice to use getXML().

You can learn more about getXML and getXMLWait in below thread:

What is getXML() and getXMLWait()? - Developer Community - Question - ServiceNow Community

 

Please mark this correct and helpful if it solved your query and helped you.

 

Thanks,

Mohit Kaushik

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)