Notifications

459 views

Symptoms


When clicking the related link "Discover Subscriptions" on an Azure Service Principal, the discovery job will show an error below:

Discovery Subscription Error : Error executing translator script :Azure Datacenter.List_Subscriptions_Response_Processor
com.snc.cloud.mgmt.modules.svccatalog.orchestration.BPOException: Failed to process the payload for translator List_Subscriptions_Response_Processor 

 

Cause


There could be many causes for the error above. One cause is due to customer's making changes to a choice list.

worker.6 txid=c643c686db83 SEVERE *** ERROR *** Error while executing translator script : List_Subscriptions_Response_Processor
Failed to process the payload for translator List_Subscriptions_Response_Processor.Azure Datacenter
com.snc.cloud.mgmt.modules.svccatalog.orchestration.BPOException: Failed to process the payload for translator List_Subscriptions_Response_Processor
at com.snc.cloud.mgmt.modules.svccatalog.service.impl.ResponseProcessorImpl.processPayLoadError(ResponseProcessorImpl.java:180)

 

If you look in the syslog right before the stack trace you may see something similar to the following.... 

04:25:57.792 Error worker.6 worker.6 txid=c643c686db83 SEVERE *** ERROR *** identification_engine : Output = {"items":[{"sysId":"Unknown","identifierEntrySysId":"Unknown","errors":[{"error":"INVALID_INPUT_DATA","message":"In payload invalid data source [ServiceNow] exist. You need to provide a valid choice value from field [discovery_source] in table [cmdb_ci]"}],"identificationAttempts":[]},{"sysId":"Unknown","identifierEntrySysId":"Unknown","errors":[{"error":"INVALID_INPUT_DATA","message":"In payload invalid data source [ServiceNow] exist. You need to provide a valid choice value from field [discovery_source] in table [cmdb_ci]"}],"identificationAttempts":[]}],"relations":[{"sysId":"Unknown","identifierEntrySysId":"Unknown","errors":[{"error":"ABANDONED","message":"Abandoned due to too many errors"}]}]} 

04:25:57.793 Info worker.6 worker.6 txid=c643c686db83 identification_engine : Identification Engine Total execution time 36msec 
04:25:57.793 Error worker.6 worker.6 txid=c643c686db83 SEVERE *** ERROR *** Failure occurred while scrubbing logs returning the recieved input. 
04:25:57.794 Error worker.6 worker.6 txid=c643c686db83 SEVERE *** ERROR *** Failure occurred while scrubbing logs returning the recieved input. 

04:25:57.819 Info worker.6 worker.6 txid=c643c686db83 #0 [CMP API] com.snc.cloud.mgmt.modules.svccatalog.service.impl.ResponseProcessorImpl : Processing payload for error check [[; INVALID_INPUT_DATA: In payload invalid data source [ServiceNow] exist. You need to provide a valid choice value from field [discovery_source] in table [cmdb_ci], ; INVALID_INPUT_DATA: In payload invalid data source [ServiceNow] exist. You need to provide a valid choice value from field [discovery_source] in table [cmdb_ci]]] 

 

Resolution


If you browse the syslog during the time of the error and search for "List_Subscriptions" you will see a stack trace like the one below. Only a portion is shown here:

 

worker.6 txid=c643c686db83 SEVERE *** ERROR *** Error while executing translator script : List_Subscriptions_Response_Processor
Failed to process the payload for translator List_Subscriptions_Response_Processor.Azure Datacenter
com.snc.cloud.mgmt.modules.svccatalog.orchestration.BPOException: Failed to process the payload for translator List_Subscriptions_Response_Processor
at com.snc.cloud.mgmt.modules.svccatalog.service.impl.ResponseProcessorImpl.processPayLoadError(ResponseProcessorImpl.java:180)

 

If you look in the syslog right before the stack trace you may see something similar to the following.... 

04:25:57.792 Error worker.6 worker.6 txid=c643c686db83 SEVERE *** ERROR *** identification_engine : Output = {"items":[{"sysId":"Unknown","identifierEntrySysId":"Unknown","errors":[{"error":"INVALID_INPUT_DATA","message":"In payload invalid data source [ServiceNow] exist. You need to provide a valid choice value from field [discovery_source] in table [cmdb_ci]"}],"identificationAttempts":[]},{"sysId":"Unknown","identifierEntrySysId":"Unknown","errors":[{"error":"INVALID_INPUT_DATA","message":"In payload invalid data source [ServiceNow] exist. You need to provide a valid choice value from field [discovery_source] in table [cmdb_ci]"}],"identificationAttempts":[]}],"relations":[{"sysId":"Unknown","identifierEntrySysId":"Unknown","errors":[{"error":"ABANDONED","message":"Abandoned due to too many errors"}]}]} 

04:25:57.793 Info worker.6 worker.6 txid=c643c686db83 identification_engine : Identification Engine Total execution time 36msec 
04:25:57.793 Error worker.6 worker.6 txid=c643c686db83 SEVERE *** ERROR *** Failure occurred while scrubbing logs returning the recieved input. 
04:25:57.794 Error worker.6 worker.6 txid=c643c686db83 SEVERE *** ERROR *** Failure occurred while scrubbing logs returning the recieved input. 

04:25:57.819 Info worker.6 worker.6 txid=c643c686db83 #0 [CMP API] com.snc.cloud.mgmt.modules.svccatalog.service.impl.ResponseProcessorImpl : Processing payload for error check [[; INVALID_INPUT_DATA: In payload invalid data source [ServiceNow] exist. You need to provide a valid choice value from field [discovery_source] in table [cmdb_ci], ; INVALID_INPUT_DATA: In payload invalid data source [ServiceNow] exist. You need to provide a valid choice value from field [discovery_source] in table [cmdb_ci]]] 

Additional Information


You can use a JSON editor such as https://jsoneditoronline.org/ to format the Identification Engine inputs and outputs

Article Information

Last Updated:2019-05-21 11:52:05
Published:2019-02-12