- Joined
- Mar 21, 2019
- Messages
- 33
- Reaction score
- 3
Hi All,
I am currently attempting to develop a CRM integration via the integration editor.
All functions are working with the exception of popping a new contact record at the time of creation. Unfortunately our API sends a response of simply '[]' for search queries which do not return any matching contacts.
Despite setting the Matching Scenario to allow empty responses the system does not appear to be able to deal with this response and throws the following exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
at CrmIntegration.ResponseMatcher.FindMatching(ResponseRepresentation obj, MatchingRule[] rules)
at CrmIntegration.ScenarioProcessorBase.FindMatchings(ProtocolScenario scenario, ResponseRepresentation response, ResponseMatcher responseMatcher)
at CrmIntegration.ScenarioProcessorBase.<ProcessScenario>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CrmIntegration.ScenarioProcessorBase.<Execute>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CrmIntegration.CrmProcessor.<CreateContactRecord>d__11.MoveNext()
Has anyone encountered this before / know a work around for this?
I am currently attempting to develop a CRM integration via the integration editor.
All functions are working with the exception of popping a new contact record at the time of creation. Unfortunately our API sends a response of simply '[]' for search queries which do not return any matching contacts.
Despite setting the Matching Scenario to allow empty responses the system does not appear to be able to deal with this response and throws the following exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
at CrmIntegration.ResponseMatcher.FindMatching(ResponseRepresentation obj, MatchingRule[] rules)
at CrmIntegration.ScenarioProcessorBase.FindMatchings(ProtocolScenario scenario, ResponseRepresentation response, ResponseMatcher responseMatcher)
at CrmIntegration.ScenarioProcessorBase.<ProcessScenario>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CrmIntegration.ScenarioProcessorBase.<Execute>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CrmIntegration.CrmProcessor.<CreateContactRecord>d__11.MoveNext()
Has anyone encountered this before / know a work around for this?