web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Workflow error callManagerInfo Server stack trace

(0) ShareShare
ReportReport
Posted on by 26

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

I have the same question (0)
  • Suggested answer
    Radu Chiribelea Profile Picture
    6,667 on at

    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)


  • USA80 Profile Picture
    26 on at

    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.

  • USA80 Profile Picture
    26 on at

    I am using AG Utilities: Distribute One to Many

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Alternatively you can switch to something that is being tested and works. For example my Ultimate Workflow Toolkit. And it supports your CRM version.

  • USA80 Profile Picture
    26 on at

    Hi Andrew, I installed you tool, but what would I select when I want to Distribute One to Many?  Like the below:

    4064.Workflow.png

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    You should use "Bulk Operations: Distribute Workflow".

  • USA80 Profile Picture
    26 on at

    Thank you, I will give it a try.

  • USA80 Profile Picture
    26 on at

    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?

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans