Workflow is trying to run and get the following error:
"callManagerInfo Server stack trace:at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]:at Microsoft.Crm.Sandbox.SandboxOrganizationService.Execute(String operation, Byte[] serializedRequest, Object sandboxTraceSettingsObj)at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg) Exception rethrown at [1]:at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)at Microsoft.Crm.Sandbox.ISandboxOrganizationService.Execute(String operation, Byte[] serializedRequest, Object traceSettings)at Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper.ExecuteInternal(OrganizationRequest request)at Gemina.CRM2015.WF.CrmDistributeWF.DistributeWFActivityOneToMany.GetRelationship(CodeActivityContext executionContext)at Gemina.CRM2015.WF.CrmDistributeWF.DistributeWFActivityOneToMany.GatherKeys(CodeActivityContext executionContext)at Gemina.CRM2015.WF.CrmDistributeWF.DistributeWFActivity.Distribute(CodeActivityContext executionContext)at Gemina.CRM2015.WF.CrmDistributeWF.DistributeWFActivity.ExecuteBody(CodeActivityContext executionContext)at Gemina.CRM2015.WF.CodeActivityBase.Execute(CodeActivityContext context)"
Plugin Trace:
[AgCrm2015DistributeWF: Gemina.CRM2015.WF.CrmDistributeWF.DistributeWFActivityOneToMany]
[AG Utilities: Distribute One to Many]
Error Message:
Unhandled Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: callManagerInfo
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at Microsoft.Crm.Sandbox.SandboxOrganizationService.Execute(String operation, Byte[] serializedRequest, Object sandboxTraceSettingsObj)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [1]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Crm.Sandbox.ISandboxOrganizationService.Execute(String operation, Byte[] serializedRequest, Object traceSettings)
at Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper.ExecuteInternal(OrganizationRequest request)
at Gemina.CRM2015.WF.CrmDistributeWF.DistributeWFActivityOneToMany.GetRelationship(CodeActivityContext executionContext)
at Gemina.CRM2015.WF.CrmDistributeWF.DistributeWFActivityOneToMany.GatherKeys(CodeActivityContext executionContext)
at Gemina.CRM2015.WF.CrmDistributeWF.DistributeWFActivity.Distribute(CodeActivityContext executionContext)
at Gemina.CRM2015.WF.CrmDistributeWF.DistributeWFActivity.ExecuteBody(CodeActivityContext executionContext)
at Gemina.CRM2015.WF.CodeActivityBase.Execute(CodeActivityContext context)
*This post is locked for comments
Hello,
You pass the relationship but you don't pass reference to record from one side of relationship. You should pass reference to record you're running your workflow against using following approach - github.com/.../Record-Reference---polymorphic-lookup
OK, I tried it but still received an error. Below is what I got:
Plugin Trace:
[UltimateWorkflowToolkit.CoreOperations: UltimateWorkflowToolkit.CoreOperations.BulkOperations.DistributeWorkflow]
[UWT: Bulk Operations: Distribute Workflow]
Value of 'Distributed Workflow' attribute equals to Id: e0ae7e41-bf7f-48c0-aecd-e0c6d0c596a2, LogicalName: workflow
Value of 'Record' attribute equals to empty
Value of 'Relationship Name' attribute equals to nhs_opportunity_nhs_salescommission_Regarding
Value of 'Additional Filter Xml' attribute equals to empty
Value of 'Public View' attribute equals to empty
Value of 'Private View' attribute equals to empty
Value of 'FetchXml Query' attribute equals to empty
Value of 'Continue After First Error' attribute equals to False
Value of 'Throw an Exception on Error' attribute equals to True
Error Message:
Unhandled Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: One of 'Record Reference'/'Relationship Name', 'Public View', 'Private View' or 'Fetch Xml Query' inputs has to be populated!
What am I missing?
Thank you, I will give it a try.
You should use "Bulk Operations: Distribute Workflow".
Hi Andrew, I installed you tool, but what would I select when I want to Distribute One to Many? Like the below:
Alternatively you can switch to something that is being tested and works. For example my Ultimate Workflow Toolkit. And it supports your CRM version.
I am using AG Utilities: Distribute One to Many
I am on CRM 2016 8.1.1.1005 (DB 8.1.1.1005) This just started happening since I updated the DB version last night.
The error doesn't say much. What CRM Build are you on?
Based on the call stack and namespace i assume you are using following solution
[View:https://archive.codeplex.com/?p=crm2011distributewf:750:50]
The failing method is following:
private OneToManyRelationshipMetadata GetRelationship(CodeActivityContext executionContext) { var relationshipRequest = new RetrieveRelationshipRequest() { Name = this.RelationshipName.Get(executionContext), RetrieveAsIfPublished = false }; var relationshipResponse = (RetrieveRelationshipResponse)this.GetService(executionContext).Execute(relationshipRequest); if (!(relationshipResponse.RelationshipMetadata is OneToManyRelationshipMetadata)) { throw new AgErrorMessageException("Relationship is not One to Many"); } return (OneToManyRelationshipMetadata)relationshipResponse.RelationshipMetadata; }
Probably something goes wring when fetching the relationship. Your best/quickest chance to find out what's failing would be to compile the dll yourself and debug it and put a breakpoint within
private OneToManyRelationshipMetadata GetRelationship(CodeActivityContext executionContext)
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156