Creating Azure Discovery schedule fails with error "Required attribute datacenter_type is missing for CI Type cmdb_ci_cloud_service_account".DescriptionTrying to create a new Azure Discovery schedule fails with error "Required attribute datacenter_type is missing for CI Type cmdb_ci_cloud_service_account". Understanding is there are 8 mandatory fields on cmdb_ci_cloud_service_account table. Out of which account_id, datacenter_type are defined on the same table and are mandatory per OOB. All others are coming from parent table which is where these are marked mandatory, the "Azure Create Service Account" pattern is responsible to scan the credentials and locate all the required attributes for creating the Discovery schedule. Debugging the pattern "Azure Create Service Account", step "Get Subscriptions" executes the API "https://management." + $resource_url + "/subscriptions?api-version=2020-01-01" and which is being failed with below error Test failed: Custom operation Cloud REST - add response to context failed to execute script due to Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: Can't find method org.apache.http.impl.client.HttpClientBuilder.setMaxConnPerRoute(null). (script_include:CloudHttpClientBuilder; line 40). Check the discovery logs for more details. The above error might lead the investigations to think if the configured credentials for Azure having issues, but, it may not be always the credential issue. If executing "Discover Datacenters" from the Service Account directly, the discovery complete successfully, which mean the Credentials are good. Increase the Debug level for the MID Server and test the behavior again, observe the MID logs have the below errors 09/12/22 12:16:46 (871) Worker-Interactive:HorizontalDiscoveryProbe-3af49607877d5110211087f60cbb35ff WARNING *** WARNING *** org.mozilla.javascript.EvaluatorException: Can't find method org.apache.http.impl.client.HttpClientBuilder.setMaxConnPerRoute(null). (script_include:CloudHttpClientBuilder; line 40)EvaluatorException(var $headers= CTX.getAttribute('headers');var $method= CTX.getAttribute('method');var $formatted= CTX.getAttribute('formatted');var $arrayName= CTX.getAttribute('arrayName');var $body= CTX.getAttribute('body');var $url= CTX.getAttribute('url');var serviceAccount = CTX.getAttributes().get("service_account");var credAlias = CTX.getAttributes().get("credential_alias");if(credAlias == ""){credAlias = serviceAccount.get(0).get("discovery_credentials");} // run the query VS cloud apivar cloudApi = new CloudApi();rtrn = cloudApi.cloudApiExecuteToContext(serviceAccount, credAlias, $url, headersMap, $method, $body, $formatted, CTX, $arrayName);)09/12/22 12:16:46 (871) Worker-Interactive:HorizontalDiscoveryProbe-3af49607877d5110211087f60cbb35ff DEBUG: (58)CustomOperationClosure - Exception occurred while executing operation Cloud REST - add response to context. Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: Can't find method org.apache.http.impl.client.HttpClientBuilder.setMaxConnPerRoute(null). (script_include:CloudHttpClientBuilder; line 40). Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: Can't find method org.apache.http.impl.client.HttpClientBuilder.setMaxConnPerRoute(null). (script_include:CloudHttpClientBuilder; line 40)com.snc.sw.exception.ConfigurationException: Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: Can't find method org.apache.http.impl.client.HttpClientBuilder.setMaxConnPerRoute(null). (script_include:CloudHttpClientBuilder; line 40)at com.snc.sw.kb.lang.closure.CustomOperationClosure.runScript(CustomOperationClosure.java:272)at com.snc.sw.kb.lang.closure.CustomOperationClosure.function(CustomOperationClosure.java:106)at com.snc.sw.kb.lang.closure.CustomOperationClosure.function(CustomOperationClosure.java:33)at com.snc.sw.pattern.AbstractPatternExecutor.executeStep(AbstractPatternExecutor.java:784)at com.snc.sw.pattern.DefaultPatternExecutor.executeNormalStep(DefaultPatternExecutor.java:119)at com.snc.sw.pattern.DefaultPatternExecutor.executeStepsImpl(DefaultPatternExecutor.java:45)at com.snc.sw.pattern.AbstractPatternExecutor.executeSteps(AbstractPatternExecutor.java:710)at com.snc.sw.pattern.HorizontalDiscoveryPatternExecutor.executeIdentification(HorizontalDiscoveryPatternExecutor.java:198)at com.snc.sw.pattern.HorizontalDiscoveryPatternExecutor.runIdentificationSection(HorizontalDiscoveryPatternExecutor.java:178)at com.snc.sw.pattern.HorizontalDiscoveryPatternExecutor.runHostDiscovery(HorizontalDiscoveryPatternExecutor.java:169)at com.snc.sw.pattern.HorizontalDiscoveryPatternExecutor.executeIdentifications(HorizontalDiscoveryPatternExecutor.java:118)at com.snc.sw.pattern.HorizontalDiscoveryPatternExecutor.executePattern(HorizontalDiscoveryPatternExecutor.java:64)at com.service_now.mid.probe.HorizontalDiscoveryProbe.runPattern(HorizontalDiscoveryProbe.java:408)at com.service_now.mid.probe.HorizontalDiscoveryProbe.runProbe(HorizontalDiscoveryProbe.java:241)at com.service_now.mid.probe.ServiceWatchProbe.probe(ServiceWatchProbe.java:35)at com.service_now.mid.probe.AProbe.process(AProbe.java:106)at com.service_now.mid.queue_worker.AWorker.runWorker(AWorker.java:128)at com.service_now.mid.queue_worker.AWorkerThread.run(AWorkerThread.java:20)at com.service_now.mid.threadpool.ResourceUserQueue$RunnableProxy.run(ResourceUserQueue.java:649)at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)at java.base/java.lang.Thread.run(Thread.java:829)09/12/22 12:16:46 (871) Worker-Interactive:HorizontalDiscoveryProbe-3af49607877d5110211087f60cbb35ff DEBUG: (58)DefaultPatternExecutor - Finished Step [name='Get Azure Subscriptions', functor=CustomOperationClosure:CUSTOM_OPERATION:9343b387-8325-4bbe-9639-b9051cf6862a] with status [{type = MIXED, cause = com.snc.sw.exception.ConfigurationException: Custom operation Cloud REST - add response to context failed to execute script due to Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: Can't find method org.apache.http.impl.client.HttpClientBuilder.setMaxConnPerRoute(null). (script_include:CloudHttpClientBuilder; line 40). Check the discovery logs for more details.}] execution took 31 msRelease or EnvironmentMajor issues reported post San Diego upgradeCauseThe issue is the following: The error visible into the discovery pattern log, associated with pattern "Azure Service account":"Can't find method org.apache.http.impl.client.HttpClientBuilder.setMaxConnPerRoute(null)" is associated with MID Server Script include: "CloudHttpClientBuilder" and especially with line 39, where the "getProperty" is pointing to MID Server property "ApacheMaxConnPerRoute". Attached the property file to the current case task, which for some reason is missing on Instance.ResolutionLogin to the instance Navigate to "ecc_agent_property" table Verify if the property "sn_itom_pattern.ApacheMaxConnPerRoute" with value If the property not available, please create the same with value 20 (No MID server to be associated) Or Import the attached "ecc_agent_property_82b5e3c01b3501108d006284bb4bcb8e.xml"