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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / cannot deploy my workf...
Power Apps
Unanswered

cannot deploy my workflow activity

(2) ShareShare
ReportReport
Posted on by

Hello,

I am facing an issue when deploying a custom workflow activity in Visual Studio 2019 for Dynamics 365. The deployment fails for no apparent reason, even though everything was working fine before.

The error when I try to deploy after generation of the solution is : Unable to find requested plugin to deploy PowerPlatform.Workflows.Wkf_.YYYY in . Will check all registered assemblies/projects. Please Note: Plugin name and identity are contructed from RootNamespace.ClassName.cs;

 

I haven't made any recent changes to my project, but the deployment doesn't seem to be working anymore.

I am using Visual Studio 2019 and .NET Framework 4.6.2.

If anyone has encountered this issue or has a solution, I would greatly appreciate your help!

Thank you!

I have the same question (0)
  • Ravi-Prajapati Profile Picture
    416 Super User 2025 Season 2 on at

    This error usually occurs due to one of the following reasons when deploying a custom workflow activity in Dynamics 365:

    Possible Causes and Solutions

    1. Incorrect Root Namespace or Class Name

    • The error message suggests that the system is looking for PowerPlatform.Workflows.Wkf_.YYYY, but it can't find it.
    • Dynamics 365 constructs the plugin name based on RootNamespace.ClassName.
    • Fix:
      • Verify your namespace and class name in the .cs file where you define your custom workflow activity.
      • Open your .cs file and ensure that the namespace matches your project's root namespace.
      • Check Properties > Default Namespace in your Visual Studio project to confirm it matches the one used in the code.

    2. Incorrect Assembly Name in Plugin Registration Tool

    • If the name in the Plugin Registration Tool does not match your assembly, the system cannot find it.
    • Fix:
      • Open the Plugin Registration Tool.
      • Check the name of your existing assembly under "Registered Assemblies".
      • Ensure your class name and namespace match the one used in the tool.

    3. Build Configuration Issues

    • Sometimes Visual Studio doesn’t properly compile the plugin before deployment.
    • Fix:
      • Clean and Rebuild the Solution:
        1. Go to Build > Clean Solution.
        2. Then Build > Rebuild Solution.
      • Ensure the correct configuration is selected:
        • Set Target Framework to .NET 4.6.2 in Project Properties > Application.
        • Use the Release build configuration, as Debug builds might cause issues.

    4. Missing Dependencies or Incorrect References

    • If your project is missing required references, the deployment might fail.
    • Fix:
      • Ensure you have the following references added:
        • Microsoft.Xrm.Sdk
        • System.ServiceModel
        • System.Runtime.Serialization
      • Right-click your project → Manage NuGet Packages → Update all dependencies.

    5. Deployment Issue with Plugin Registration Tool

    • If your assembly was previously registered and you’re deploying an update, there could be a mismatch.
    • Fix:
      • In Plugin Registration Tool, unregister the previous version of the plugin and try redeploying it.

    6. Check the Power Platform Tools in Visual Studio

    • If you are using Power Platform Tools for Visual Studio, make sure they are up to date.
    • Fix:
      • Go to Extensions > Manage Extensions.
      • Search for Power Platform Tools and update if available.

    7. Use the Output Log for More Details

    • Open View > Output in Visual Studio and select CRM Plugin Deployer or Build to check for more specific errors.

    Final Steps

    Try these steps in order:

    1. Verify your namespace and class name (should match exactly).
    2. Clean and rebuild the solution in Release mode.
    3. Ensure all dependencies are correctly referenced.
    4. Manually remove and re-register the plugin using the Plugin Registration Tool.
    5. Update Power Platform Tools in Visual Studio if outdated.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard