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)

Plugin Not firing also not giving any error

(0) ShareShare
ReportReport
Posted on by 437

Hi guys , 

I have written a plugin on "oppurtunity" but it is not firing at all so I am not getting what problem might be.

I have done following things --

1) Added a custoum field  in oppurtunity  but it schema name got created like new_myfieldname , it not taken  cog_myfieldname 

2) I deactivated all workflow on oppurtunity.

3) I am firing it on update of a description field  of oppurtunity  entitiy.

4) It is a synchronous plugin.

5) Can I debug the plugin  for which there is no any error or no error log file.

Please suggest regarding this.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Divyang Shukla Profile Picture
    355 on at

    Please refer https://msdn.microsoft.com/en-us/library/gg328574.aspx to debug plugin.

  • Suggested answer
    tw0sh3ds Profile Picture
    5,600 on at

    If this is on-premise deployment simply attach your debugger to w3sp process (or sandbox process if you have your plugins in a sandbox)

  • windyMill Profile Picture
    437 on at

    To attach with process I also need error log file. I m not getting any thing.

  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at

    Use Plugin Profiler.  Refer this:

    community.dynamics.com/.../how-to-debug-plugins-using-profiler

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi WindyMill,

    Sometimes restarting the Async services on the server helps for plugins that don't seem to have registered.

    other than that try throwing an invalidpluginexception in the first line in your plugin.

    Just to narrow down that its not escaping the plugin somewhere you don't expect.

    Hope this helps,

    David Levins

  • Gopalan Bhuvanesh Profile Picture
    11,401 on at

    Would you please send me the code, if possible, so that I can find out the bug.

  • Verified answer
    Patrick O'Gorman Profile Picture
    166 on at

    Hi windyMill, there are a lot of correct answers in this thread, but I thought I would add a bit more, starting with a question. Maybe I missed something but where is this being deployed and how are you registering it, e.g. locally, in code, with the plugin reg tool? Similarly, and this may be obvious by your answer to the first question, but what are you using to debug this? Are you able to attach to the w3wp process and actually set a breakpoint?

    You said this is a sync plugin. If being deployed on-prem, you might want to try an iisreset after deploying the new plugin, assuming you are doing this on a dedicated box.

    Good luck, keep us posted.

  • Patrick O'Gorman Profile Picture
    166 on at

    Why do you need the error log file to attach to the process? The process is the IIS worker process for a sync plugin, you should be able to attach to it. Whether or not the updated DLL for the plugin is being deployed is another story (see my other comment).

  • Hameed Hussain Profile Picture
    250 on at

    If you have registered the plugin and the step, the plugin will fire. Synchronous plugin throws error in the dialog box, but if you fail provide a catch statement, it won't.

    Do this:

    1. In the plugin registration tool, install the profiler

    2. On the plugin step, right click and select 'start profiling'.

    3. Trigger the action (update your description field, and click save).

    4. A dialog pops up, download the Error file.

    5. Stop profiling on the step.

    6. Add a break point in your code, and attach the plugin code to the PluginRegistration.exe (under Debug->Attach to Process in VS)

    7. On the plugin registration tool, click on Debug, upload your plugin dll, and your downloaded file

    8. The plugin should hit the debug point now.

    If this doesn't work, unregister and register the plugin again.

  • Suggested answer
    SCV Profile Picture
    1,004 on at

    Hi,

    For the point #2 reason it did not take your prefix is that you have not created the field within your solution. It has been created in side the default solution. You should have opened your solution and then created the field there. Then it would have created your field name as cog_myfieldname assuming cog is the prefix you have given in the publisher.

    To see what's happening in the plugin you can enable and use tracing which is but easier than debugging. Check here:

    http://sacconsulting.blogspot.com.au/2017/03/tracing-in-plugins-and-custom-workflow.html

    Thanks

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