Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
On MID Server startup, GetMIDInfo/GetCloudServiceAccountInfo uses CloudServiceAccountInfoUtil script include, which queries cloud_service_account_view without checking the tables exist - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • On MID Server startup, GetMIDInfo/GetCloudServiceAccountInfo uses CloudServiceAccountInfoUtil script include, which queries cloud_service_account_view without checking the tables exist
KB1191263

On MID Server startup, GetMIDInfo/GetCloudServiceAccountInfo uses CloudServiceAccountInfoUtil script include, which queries cloud_service_account_view without checking the tables exist


1071 Views Last updated : Oct 4, 2023 Internal, Customer, public Copy Permalink
KB Summary by Now Assist

Description

On MID Server startup, GetMIDInfo/GetCloudServiceAccountInfo uses CloudServiceAccountInfoUtil script include, which queries cloud_service_account_view without checking the tables exist.  This is common if ITOM products are not installed, and MID Servers are just being used for integrations such as REST/SOAP, LDAP and Import Sets.

Database view cloud_service_account_view joins tables cmdb_ci_cloud_service_account, cloud_service_account_aws_cross_assume_role_params and cloud_service_account_aws_org_assume_role_params.
The soap webservice, script include, database view and first table are from the MID Server plugin, which all instances have enabled by default.
The last 2 of those tables only exist if the "Discovery Core" (com.snc.discovery.core) plugin is installed, which a lot of instances will not have.

syslog will show the following warning:

org.mozilla.javascript.EvaluatorException: GlideRecord.addNotNullQuery() - invalid table name: cloud_service_account_view (sys_script_include.392afd336b783010da1e64ed1e44afb9.script; line 20)

MID Server log shows the following Error:

INFO  (StartupSequencer) [CloudServiceAccountInfo:100] About to load/reload cloud service account information from the instance...
ERROR (StartupSequencer) [CloudServiceAccountInfo:391] Failed to parse cloud service account information from XML payload from instance.
WARN  (StartupSequencer) [CloudServiceAccountInfo:110] Was not able to load/reload cloud service account information from the instance.

Steps to Reproduce

In a Tokyo instance (although also seen in at least San Diego Patch 7):

  1. Do NOT install Discovery Core installed (which is a dependency of Discovery, Service Mapping, Cloud Provisioning and Governance, and others)
  2. Install and start a mid server
  3. Check syslog for anything with message contains cloud_service_account_view 

    org.mozilla.javascript.EvaluatorException: GlideRecord.addNotNullQuery() - invalid table name: cloud_service_account_view (sys_script_include.392afd336b783010da1e64ed1e44afb9.script; line 20)
    EvaluatorException(JavaScript evaluation error on:
    if (gs.hasRole("mid_server") && (isAgentValid() || (request.purpose == "UpdatePublicKey"))) {
    var requestType = request.purpose;
    var MIDServerInfoAccessor = new GlideMIDServerInfoAccessor();
    ...
    function getCloudServiceAccountInfo() {
    var cloudServiceAccountInfoUtil = new CloudServiceAccountInfoUtil();
    var doc = cloudServiceAccountInfoUtil.getCloudServiceAccountInfoXML();

    response.midInfo = doc;
    }
    ...

  4. Check the agent log for the errors to do with failing to parse the response due to this problem

    INFO  (StartupSequencer) [CloudServiceAccountInfo:100] About to load/reload cloud service account information from the instance...
    ERROR (StartupSequencer) [CloudServiceAccountInfo:391] Failed to parse cloud service account information from XML payload from instance.
    WARN  (StartupSequencer) [CloudServiceAccountInfo:110] Was not able to load/reload cloud service account information from the instance.

Workaround

This problem has no workaround, is currently under review and targeted to be fixed in a future release. Subscribe to this Known Error article to receive notifications when more information will be available.


Related Problem: PRB1615031

Potentially Seen In

There is no data to report.

Fixed In

Vancouver

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.