Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Workflow error callManagerInfo Server stack trace

Posted on by 2,645

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

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Workflow error callManagerInfo Server stack trace

    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

  • USA80 Profile Picture
    USA80 2,645 on at
    RE: Workflow error callManagerInfo Server stack trace

    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?

  • USA80 Profile Picture
    USA80 2,645 on at
    RE: Workflow error callManagerInfo Server stack trace

    Thank you, I will give it a try.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Workflow error callManagerInfo Server stack trace

    You should use "Bulk Operations: Distribute Workflow".

  • USA80 Profile Picture
    USA80 2,645 on at
    RE: Workflow error callManagerInfo Server stack trace

    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
    a33ik 84,323 Most Valuable Professional on at
    RE: Workflow error callManagerInfo Server stack trace

    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
    USA80 2,645 on at
    RE: Workflow error callManagerInfo Server stack trace

    I am using AG Utilities: Distribute One to Many

  • USA80 Profile Picture
    USA80 2,645 on at
    RE: Workflow error callManagerInfo Server stack trace

    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.

  • Suggested answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Workflow error callManagerInfo Server stack trace

    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)


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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans