Getting error "A dynamic action error occurred." with the Microsoft Dynamics CRM Spoke

Chenlin
ServiceNow Employee
ServiceNow Employee

Hi,

I'm using Microsoft Dynamics CRM spoke in a new instance but get error "A dynamic action error occurred". By checking the traffic it shows the error occurs on this request: 

/api/now/processflow/action_execution/start?sysparm_transaction_scope=global

payload: {name: "sn_ms_crm_spoke.get_entity_url", inputs: {snc_input_alias_override: {}}}

It's not able to retrieve the entity list. But it's able to get OAuth token.

find_real_file.pngfind_real_file.pngfind_real_file.pngfind_real_file.png

 

I have an old instance with same platform version and spoke version. The Dynamics CRM spoke works well on that instance so I mirrored all the connection & credential settings except the redirect url. In terms of Azure AD registration I didn't register the new instance separately but just added the new instance's redirect url into the existing registration's redirect url list and used the existing clientAppId and clientSecret in the new instance.

find_real_file.pngfind_real_file.png

Could you please advice?

Thanks!

2 REPLIES 2

Shreya Shah
ServiceNow Employee
ServiceNow Employee

From the browser image it shows you are getting 400 (Bad Request) error. May be its an issue with the request and not token. 

Instead of browser network calls, can you check the Executions tab in Flow Designer to check what really happed with that action?

Chenlin
ServiceNow Employee
ServiceNow Employee

@Shreya Shah  Thank you for the suggestion. I checked Executions tab earlier but it only showed that the integration wasn't working.

Later I navigated to the action detail and found that the action didn't inherit the connection configuration automatically. Basically the action had empty connection setting, thus it wasn't able to connect to Dynamics.

The issue was resolved by reinstalling the spoke.