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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Appsource Solution checker giving error il-avoid-lock-plugin

(0) ShareShare
ReportReport
Posted on by 745

Hi guyz

I have been trying to do solution Checker  in make.powerapps.com

and it is giving the error  

Issue : "il-avoid-lock-plugin"  which is coming due to Newtonsoft.dll 

Type :Newtonsoft.Json.Serialization.MemoryTraceWriter

Issue 

A plug-in or workflow activity assembly was identified as using the following pattern: System.Void System.Threading.Monitor.Enter(System.Object, System.Boolean). The use of lock statements in plug-ins or workflow assemblies are generally used for auto numbering solutions and can cause stability or performance issues. Avoid using lock statements in plug-in transactions. If you are using this for auto numbering please use the platform auto number feature.

how can i remove this issue to pass the solution checker for solution

below is screenshot 

pastedimage1617627371985v1.png

I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    probably the assembly of the error is IL merged with newtonsoft dll and the checker found that a method of that dll is not allowed.

    without knowing other details my suggestion is to don't IL merge assemblies

  • MMK Profile Picture
    745 on at

    Thanks Guido for reply

    How can i merge newtonsoft in my Plugin Assembly then any help

    can't remove as newtonsoft is extensively used in plugins

  • Verified answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    if you use to manipulate json you can also do that without newtonsoft library, for example:

    www.crmanswers.net/.../json-and-crm-sandbox-plugins.html

    so identify the portion of code where you are using newtonsoft and try to find an alternative

    hope it helps

  • MMK Profile Picture
    745 on at

    i can't use json without newtonsoft because first the JSON we is very dynamic and huge json

    second there are so many plugins using different jsons so it might be very very......... difficult to update all plugins written years before and in production

    Any other way out for this

  • Guido Preite Profile Picture
    54,086 Moderator on at

    then don't use solution checker, it's not mandatory

  • MMK Profile Picture
    745 on at

    that's needed to upload solution on AppSource

  • Guido Preite Profile Picture
    54,086 Moderator on at

    then in my opinion you have two options:

    1) you don't publish in app source

    2) you don't use newtonsoft library merged

    of course this is my opinion, maybe others will have other suggestions for your scenario

    hope it helps

  • MMK Profile Picture
    745 on at

    Thnx Guido

    i think i have to go with second solution

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 75 Super User 2026 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#3
11manish Profile Picture

11manish 52

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans