Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CRM Online Managed Solution Import Failed Due to Error On Workflow With Output Variables

Posted on by 655

Hello,

The managed solution i'm trying to import has few UI customizations and a custom workflow. This is a custom workflow that performs a calculation and returns data to two output variables.  One is a decimal number and the other is a picklist value.  Easy enough.

Capture_5F00_3.PNG

Here is the code that sets the output variables.

Capture_5F00_4.PNG

My workflow process is setup to execute the custom workflow

Capture_5F00_0.PNG

then update the contact record with the data from the output variables

2021.capture_5F00_1.PNG

Here is the error when i import a manged solution that contains this workflow:

Constructor on type 'Microsoft.Xrm.Sdk.Workflow.Activities.ReferenceLiteral`1[[Microsoft.Xrm.Sdk.OptionSetValue, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]' not found.

3187.capture_5F00_2.PNG


I've tried removing the update part of the process but it was still complaining.  The only thing i can do is remove this workflow from my solution and register it manually using the Plugin Registration Tool.

*This post is locked for comments

  • SavvyLuke Profile Picture
    SavvyLuke 655 on at
    RE: CRM Online Managed Solution Import Failed Due to Error On Workflow With Output Variables

    Still stuck.  I've also noticed that an output variable cannot be applied to an optionset attribute that is using an existing global optionset.

  • SavvyLuke Profile Picture
    SavvyLuke 655 on at
    RE: CRM Online Managed Solution Import Failed Due to Error On Workflow With Output Variables

    Yes i have.  I do not require an input value however, only the output.  I also included the optionset field to update in the solution.

  • Suggested answer
    PS Profile Picture
    PS 23,577 on at
    RE: CRM Online Managed Solution Import Failed Due to Error On Workflow With Output Variables

    In your plugin/custom workflow there is a field which you have mentioned but its not there in the solution, so, you have to take the entity metadata as well in your solution

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: CRM Online Managed Solution Import Failed Due to Error On Workflow With Output Variables

    Hi SavvyLuke,

    Couple of things to check.

    Did you specify the AttributeTarget for the OptioSetValue in your custom workflow activity?

    [Input("OptionSetValue input")]
    [Output("OptionSetValue output")]
    [AttributeTarget("account", "industrycode")]
    [Default("3")]
    public InOutArgument<OptionSetValue> OptionSetValue { get; set; }

    https://msdn.microsoft.com/en-us/library/gg327984.aspx

    Did you include the entity which includes the OptionSet in your solution?

  • Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: CRM Online Managed Solution Import Failed Due to Error On Workflow With Output Variables

    Hi,

    Please refer the discussion below.

    social.microsoft.com/.../plugin-constructor-not-found

    Hope it helps you.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans