During running Cloud Resource Discovery on a Madrid Instance, the following error message is thrown in system logs:

Warning org.mozilla.javascript.EvaluatorException: GlideRecord.query() - invalid table name: cloud_resources_service_type_map

Steps to Reproduce

  1. Run Cloud Resource Discovery on a ServiceNow Madrid Instance.
  2. Check the System Logs.
  3. The following error messages will be found and they are thrown because of 'Initialize Cloud Resources Count' business rule: 
    Warning org.mozilla.javascript.EvaluatorException: GlideRecord.query() - invalid table name: cloud_resources_service_type_map (sys_script.094122a46773130022646c706785ef13.script; line 8)
    EvaluatorException(JavaScript evaluation error on:
    (function executeRule(current, previous) {

    var scheduleSysID = current.getValue('dscheduler');
    var statusSysID = current.getUniqueValue();

    //Iterating through all CIs of Source table to "Discovery Cloud Results" table and Initializing their counts to 0
    var resourcesGR = new GlideRecord('cloud_resources_service_type_map');
    while ( {
    var initializeCountGR = new GlideRecord('discovery_cloud_results');
    initializeCountGR.setValue('status', statusSysID);
    initializeCountGR.setValue('cloud_resource_name', resourcesGR.getValue('cloud_resource'));
    initializeCountGR.setValue('resource_service_type', resourcesGR.getValue('service_type'));
    initializeCountGR.setValue('cloud_resource_count', 0);
    if (scheduleSysID)
    initializeCountGR.setValue('schedule', scheduleSysID);

    })(current, previous);


This problem is currently under review. You can contact ServiceNow Technical Support or 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.


As a workaround, you may delete 'Initialize Cloud Resources Count' business rule on the affected Madrid instances:


Related Problem: PRB1373710

Seen In

There is no data to report.

Intended Fix Version

Madrid Patch 10

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-12-05 01:26:16