Service Graph Connector for Meraki Scheduled Import Fails - Cancelled StateIssue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } The Meraki Devices scheduled import job fails during execution and transitions to a Cancelled state. The import set does not complete successfully, preventing Meraki device data from being loaded into the instance. Symptoms<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } - The Meraki Devices scheduled import job execution results in a Cancelled state on the import set record.- The following error appears in the import logs: `"Error executing script :TypeError: Cannot read property "length" from undefined (sys_script_include.b778fb601b8d9950263997d8b04bcb43.script; line 35) Loader (SG-Meraki Devices)"``"Warning Loading import set table cancelled: x_caci_sg_meraki_merakidevices ScheduleImportJob"``"Error Data was not loaded properly with data source: SG-Meraki Devices ScheduleImportJob"` - The following system log error is generated: `"[SG-Meraki][SGConnectorMerakiImportUtilsBase] Error in MerakiGetOrganization: Organization IDs does not exist in system property- x_caci_sg_meraki.organization_ids_to_import Data={"orgId":"","errorMessage":""}"` - Clicking **Execute Now** on the scheduled import job and reviewing the resulting import set record reveals the above errors in the import log. Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } All Cause<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } The system property `x_caci_sg_meraki.organization_ids_to_import` exists in the instance but its Value field is empty. The Script Include `SGConnectorMerakiImportUtilsBase` retrieves Meraki organization IDs from this system property at line 35. When the property value is empty, the script invokes the error handler and reports that the organization IDs are not configured, causing the import set to be cancelled. The script contains a subsequent condition that evaluates `org_list_arr.length > -1`, which does not verify whether the array contains valid organization IDs; however, the primary failure is the absence of a value in the system property. Script Include - SGConnectorMerakiImportUtilsBase----> https://instancename.service-now.com/nav_to.do?uri=sys_script_include.do?sys_id=b778fb601b8d9950263997d8b04bcb43 var org_list_from_prop = gs.getProperty("x_caci_sg_meraki.organization_ids_to_import"); if (org_list_from_prop) { var org_list_arr = org_list_from_prop.split(","); } else { this.errorMessageHandler( "Error in MerakiGetOrganization: Organization IDs does not exist in system property- x_caci_sg_meraki.organization_ids_to_import", < -------- This error coming in logs "", "" ); } if (org_list_arr.length > -1) { < -------------------------------------------- Line 35 error occurred. // Check if Credential Affinity is Available for Organization Ids Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } 1. Navigate to the system properties list and open the property `x_caci_sg_meraki.organization_ids_to_import`.2. Populate the Value field with the required Meraki organization IDs, separated by commas.3. Save the system property record.4. Re-execute the Meraki Devices scheduled import job and verify that the resulting import set completes successfully without errors. Note:The Service Graph Connector for Meraki is a third-party application sold by Cisco Systems and is not developed by ServiceNow. For additional configuration guidance, refer to the Cisco Meraki getting started documentation: https://developer.cisco.com/meraki/build/servicenow/getting-started/#guided-setup-instructions. For issues specific to the connector's functionality beyond system property configuration, contact the Meraki application support team via the store listing: https://store.servicenow.com/store/app/e3f9eba21b246a50a85b16db234bcb18