Share via


Microsoft Dynamics NAV Troubleshooting: Exception occurred (Connector)

Scenario

While using Microsoft Dynamics Connector some times we get very less descriptive errors in Dynamics Connector log. Similarly here having a scenario.

When I integrating the Microsoft Dynamics NAV 2013 R2 Customer Card Table with Microsoft Dynamics CRM 2015 Account Entity and then Activate the process in Connector, once it started the record synchronization, I got the below error in Dynamics Connector Log:

        "Exception occurred in Microsoft Dynamics NAV"

Error details

Exception occurred in Microsoft Dynamics NAV

--- Exception Dump --- 

11 Caught Exception: [Microsoft.Dynamics.Integration.AdapterAbstractionLayer.AdapterException] Exception occurred in Microsoft Dynamics NAV

Stack trace:

   at Microsoft.Dynamics.Integration.Adapters.Nav2009.NavObjectProvider.ReadObjectKeys(DateTime modifiedDate)

   at Microsoft.Dynamics.Integration.Service.Tasks.MapWork.ReadObjectKeyList(DbMap map, DateTime queryDate, Int32& count)

   at Microsoft.Dynamics.Integration.Service.Tasks.MapWork.ProcessRecordsImplementation(OperationType operationType)

Inner Exception: [System.Reflection.TargetException] Non-static method requires a target.

Stack trace:

   at System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target)

   at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)

   at Microsoft.Dynamics.Integration.Adapters.Nav2009.CustomerObjectProvider.ReadDynamicObjectKeys(DateTime modifiedDate)

   at Microsoft.Dynamics.Integration.Adapters.Nav2009.NavObjectProvider.ReadObjectKeys(DateTime modifiedDate)

User: Username

Machine: Machine Name

But unfortunately, Log received from event viewer was also not much helped me to resolve this issue.

Troubleshooting

Go to the Marketing Setup in Microsoft Dynamics NAV 2013 R2 and disable the "Enable Connector" and "Synchronization" check box. 

Now, again enable the Enable Connector" and "Synchronization" check box and re-start the NAV Instance.