Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

No Error File To Download

Posted on by 25

Hi, 

I was getting some support on debugging and some of the people said I should be able to download a file from Microsoft Dynamics 365 when there is an error in the Plug-In Trace Log and other places did not mention this. Either way, I cannot click on the Debug button in the Plug-in Registration Tool and now I do not see a way to download an error file to use Visual Studio for the debugging.

This is what I see when I get an error.

Plug-in Trace Log

Any help on where to go from here is greatly appreciated. I am stuck. 

Thanks,

Steve

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: No Error File To Download

    Hi partner,

    Did you add "try catch" structure in your code?

    You could refer to the following format.

    try

    {  //to do...  }

    catch (FaultException<OrganizationServiceFault> ex)
                    {
                        throw new InvalidPluginExecutionException("An error occurred in FollowUpPlugin.", ex);
                    }
                    catch (Exception ex)
                    {
                        tracingService.Trace("FollowUpPlugin: {0}", ex.ToString());
                        throw;
                    }
    Hope it helps.
    Best Regards,
    Leo
  • Steve Kessler Profile Picture
    Steve Kessler 25 on at
    RE: No Error File To Download

    Leo, 

    I have the same steps? Any idea of how to get this to fail with a file?

    Thanks,

    Steve

  • Suggested answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: No Error File To Download

    Hi partner,

    Looks like have nothing to do with "synchronous", I also set my Execution Mode to "synchronous" and had a try and I could download the log file.

    pastedimage1566381007713v1.png

    pastedimage1566381100232v2.png

    Then I went to trigger my plug-in, I created a new account and it showed the error log to me.

    pastedimage1566381168557v3.png

    You could compare with my steps and have a check.

    Best Regards,

    Leo

  • Steve Kessler Profile Picture
    Steve Kessler 25 on at
    RE: No Error File To Download

    Hi Leo, 

    I made the change in the Profiler Settings for Exception rather than Persist to Entitity, 

    Profiler Setings

    I am not getting an error at all when I do this. I think it is because the tasks having trouble is synchronous.

     

    Synchronous Task

    Because the task is called in the background it is not displaying an error to the end-user.  

    Any advice on this is greatly appreciated. 

    Thanks,

    Steve 

  • Verified answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: No Error File To Download

    Hi partner,

    It is true that you need to download a log file first and then use this to debug your code.

    After you add your plug-in to profile settings, and then go to your instance to trigger your plug-in, you will see the log file download dialog.

    You could refer to the following blogs step by step.

    https://dynamics365blocks.wordpress.com/2016/12/06/how-to-debug-a-plugin-in-dynamics-365-online-using-plugin-profiler/

    http://d365learnings.blogspot.com/2018/01/how-to-debug-dynamics-365-crm-online-plug-in.html

    Best Regards,

    Leo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans