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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Debug Custom Workflow with Plugin Reg Tool

(0) ShareShare
ReportReport
Posted on by

I'm having some difficulty using the plugin Reg Tool to debug a very simple custom workflow activity I've created.

PLugin Reg Version: 7.0.1.129

CRM 2015 Prem

I've created a sample workflow that runs my Custom Workflow Activity and when I try to profile this workflow the "steps" section shows up blank

2210.Untitled.png

If I try to save the profiler settings I get this error

"Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: workflowSteps
   at PluginProfiler.Library.ProfilerManagementUtility.EnableWorkflow(CrmServiceClient service, String overrideKeyFileName, Guid workflowId, Boolean persistToEntity, String persistenceSessionKey, Boolean includeSecureInformation, Boolean isContextReplay, CustomActivityStep[] workflowSteps)
   at Microsoft.Crm.Tools.PluginRegistration.ProfilerSettingsViewModel.btnOk_Click()"

I'm using the instructions posted here:

http://blogs.microsoft.co.il/rdt/2013/03/08/debugging-workflow-custom-activities-with-plugin-registration-tool/

Any suggestions are appreciated.  I'd prefer to debug this way vs attaching to the IIS process.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    I have to admit that although I've debugged plugins through this tool - I've never managed to get the workflow activity debugging to work.

    Lots of other seem to have the same issue - blogs.microsoft.co.il/.../debugging-workflow-custom-activities-with-plugin-registration-tool

    To be honest I much prefer to create unit tests in visual studio using a technique similar to that I describe here - develop1.net/.../Unit-Testing-Dynamics-CRM2011-Pipeline-Plugins-using-Rhino-Mocks.aspx

    The unit test approach not only allows you to test specific scenarios that are causing errors - they also are a valuable regression test once you've fixed the issue.

    Hope this helps (although not the answer you were looking for!)

  • Community Member Profile Picture
    on at

    Thanks for the insight , Scott. Knowing others have this issue is answer enough. I will check out your alternate technique.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans