- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 04:40 AM - edited 05-15-2025 04:42 AM
I am having a simple ATF script, which is having a single step.
Open an Order Guide (SP) .
While running the script, the following error is displayed:
'FAILURE: Failed to open Order Guide. Either you don't have access to the Order Guide or g_form is not defined' .
Noted:
While running the script, the form opens in Client Test Runner successfully, but I am getting the above error.
I have access to the order guide,
I have even tried with Admin role and with impersonating other users.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 09:58 PM
Yes, I can open the order guide after changing the page field.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 05:02 AM
even with admin role the same error is coming?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 08:07 AM
Yes even with admin role. And one thing the Order guide is opening in the portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2025 01:15 AM
Hi @SuchiP
If you are able to open the order guide manually the lets focus on the second part of the error.
g_form is not defined
This is due to come error in the client script for that order guide.
Kindly check with the dev team and follow this https://www.servicenow.com/community/developer-forum/uncaught-referenceerror-g-form-is-not-defined/m...
Regards
Shaqeel
***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.
***********************************************************************************************************************
Regards
Shaqeel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 09:58 PM
Yes, I can open the order guide after changing the page field.
Thanks.