Record query is unable to assert that a record immediately exists in tests created in scoped apps. If the record does not immediately exist, the step will fail.

This issue has no impact on tests created in global scope.

Steps to Reproduce


  1. Create a test in a scoped application.

  2. Add test steps that cause a record to be created on a delay, such as an approval after submitting a catalog request.

  3. Add a test step Record Query with a reasonable timeout (5-10 seconds) to assert a record exists that will be created on a delay (such as an approval while submitting a service catalog request).

  4. Run the test.

    The test sometimes fails because the record query step did not yet find the record, and fails before it can wait for another query attempt.




There is no workaround for tests created in scoped apps. The only way to support a record query that can wait for a record is to create the test in the global scope.


Related Problem: PRB1209940

Seen In

There is no data to report.

Intended Fix Version


Fixed In

Jakarta Patch 7
Kingston Patch 1

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:2018-04-24 00:01:46