locked
ITracingService truncating traces in sandboxed plugins RRS feed

  • Question

  • I use a plugin base class that can write detailed info to the tracing service (using ITracingService). Think of all relevant details of the IPluginExecutionContext object, exception stack trace info etc. This can sum up to a reasonable amount of lines, but in plugins running in full trust this is no issue.

    However, when I run the same plugins in sandboxed mode, a (sometimes) considerable part of the log written is missing in the resulting log XML. I found out that actually only the last 10 KB of text is returned by sandboxed plugins.

    I see this behaviour in Dynamics CRM 2011 and up to 2016 SP 1.

    Has someone experienced this too? Is this a bug or is there a solution?


    If this post is an answer or helpful, please do not forget to vote!


    Wednesday, October 12, 2016 9:05 AM

All replies

  • Hello Henk,

    Haven't experienced such kind of issues. Have you tried to get in touch with Microsoft Support to get clarification on this?


    Dynamics CRM MVP
    Read My blog
    Subscribe for one of my courses

    Wednesday, October 12, 2016 1:45 PM
    Moderator
  • Hi Andrii,

    This is more an annoyance than a blocking issue. The behaviour I described is consistent through multiple versions of CRM, but I cannot find anything about it on the internet. So, I wondered if anyone has run into this too. I can work around it and I can imagine my current customer will be reluctant to put time in investigating this issue.

    Still I wonder: is this a bug that needs to be fixed or a feature that should be documented?


    If this post is an answer or helpful, please do not forget to vote!

    Wednesday, October 12, 2016 6:25 PM