ATF FAILURE: g_form is not defined. A valid form must have g_form defined

Anne Mc
Kilo Expert

I have been trying to create an automated test covering a user logging an incident in the portal using the Ask for help record producer. I can open a new form and log the incident successfully. However, when I try to reopen the form for the user to add comments, the test opens the correct form (the screen dump show this) but it errors on that step and is generating the above error.

I saw in another thread that someone suggested this error message might be because the widget was deprecated, but that isn't the case with this one. We are using the most recent version. I have simplified the test down to the basic steps:

find_real_file.png

It is the final Open a Form (SP) that is failing:

find_real_file.png

The step details are:

find_real_file.png

 

Is the error being generated because there are no query parameters?  If so, what parameters would be needed?  The screen dump shows it is opening the correct form with the correct incident:

find_real_file.png

Any ideas please?

Regards,

Anne.

18 REPLIES 18

Inactive_Use998
Kilo Contributor

Hi guys,

Please review the KB article - https://hi.service-now.com/kb_view.do?sysparm_article=KB0716457.

Looks like it is a known issue and can be resolved using the OOB widget.

rajashekar
Kilo Contributor

Hi @Anne Mc  Iam facing the similar issue, Have you found any solution to this
please provide the steps if yes

Regards,

Rajashekar

sparkles
Tera Contributor

I am having the same issue, anyone found a solution? 

Thanks, 

Afnan 

Hansk
Kilo Contributor

I having the same issue when using page = ticket. I don't have the issue if I use page = form.
So it is somehow related to the pages and with some pages it's causing this Failure. At least I can use the 'form' as workaround. But wondering why SN is not able to fix this for more then 3 years.