In ATF, When we try to open non-form Service portal page it ends up with error "FAILURE: g_form is not defined. A valid form must have g_form defined"

Steps to Reproduce

  1. Create a new ATF Test as follows:
    • Open a Form (SP) -> Portal - HI Service Portal, Page - form, Table - incident, sys_id - {sys id of incident)
    • Set Field Values (SP) -> Table - Incident, Field values - Additional comments - {test comment}
    • Submit a Form (SP)
  2. Run the test.
  3. The test fails with error "FAILURE: g_form is not defined. A valid form must have g_form defined


This problem has been identified as a future possible product enhancement, which could be available from NewYork. You can subscribe to this Known Error article by clicking the Subscribe button at the top right of this form to be notified when more information will become available.

Till then, Please do not use the custom page in the ATF. Use the OOB form as in the below screenshot.ATF

Related Problem: PRB1250935

Seen In

There is no data to report.

Intended Fix Version

New York

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-08-07 07:22:16