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 :
Finance | Project Operations, Human Resources, ...
Answered

Error occurred while running best practices fixers in D365FO

(0) ShareShare
ReportReport
Posted on by 65

Hello Community,

I am facing below error while trying to run best practices fixers in D365FO. Anybody encountered with such type of issue please help.

Error:
Error BP Rule: [The formatter threw an exception while trying to deserialize the message]:There was an error while trying to deserialize parameter tempuri.org/:RunBestPracticeChecksResult. The InnerException message was 'Element 'schemas.datacontract.org/.../Microsoft.Dynamics.AX.Metadata.XppCompiler:DiagnosticItem' contains data from a type that maps to the name 'Microsoft.Dynamics.AX.Framework.CodeStyleRules, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35:Microsoft.Dynamics.AX.Framework.BestPractices.Extensions.BPXmlDocNoHelpfulInformation'. The deserializer has no knowledge of any type that maps to this name. Consider changing the implementation of the ResolveName method on your DataContractResolver to return a non-null value for name 'Microsoft.Dynamics.AX.Framework.BestPractices.Extensions.BPXmlDocNoHelpfulInformation' and namespace 'Microsoft.Dynamics.AX.Framework.CodeStyleRules, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.'. Please see InnerException.

pastedimage1596462927292v1.png

 

Many Thanks...!!

  • Navin Nalawade Profile Picture
    65 on at
    RE: Error occurred while running best practices fixers in D365FO

    Hi Udhaya,

    Thanks for your response..!!

    It seems like rather than throwing error directly in the from of multiple lines which earlier it use to do while running BP fixers. Now it throws error a single error message one by one in the form of above mentioned format like 'Microsoft.Dynamics.AX.Framework.BestPractices.Extensions.BPErrorDescription.

    Regards,

    Navin Nalawade

  • Navin Nalawade Profile Picture
    65 on at
    RE: Error occurred while running best practices fixers in D365FO

    Hello Sukrut,

    Thanks for your reply.

    I am able to run BP fixers at project level but as i navigate to error list or output window in the view section of visual studio.It throws the above mentioned error.

    Regards,

    Navin Nalawade

  • Verified answer
    udaY-ch Profile Picture
    4,616 on at
    RE: Error occurred while running best practices fixers in D365FO

    Hi,

    After some research, found that the error comes from an object which doesn't have XML documentation,  (Microsoft.Dynamics.AX.Framework.BestPractices.Extensions.BPXmlDocNoHelpfulInformation)

    And this comes from the below setting, please check for your model! obviously it will be checked.

    BPChecker.png

    To get rid of this error, You need to fix the XML documentation to your methods. You can find the missing documentation object in the output window. Hope this helps !!!

    Uday

  • Sukrut Parab Profile Picture
    71,637 Moderator on at
    RE: Error occurred while running best practices fixers in D365FO

    Are you able to  run BP fixers at project level ?

  • Navin Nalawade Profile Picture
    65 on at
    RE: Error occurred while running best practices fixers in D365FO

    Hello Ludwig,

    Thanks for your reply.

    I am operating D365FO Application release = 10.0.11 with Platform release = Update35.

    Regards,

    Navin Nalawade

  • Navin Nalawade Profile Picture
    65 on at
    RE: Error occurred while running best practices fixers in D365FO

    Hello André,

    Thanks for your reply.

    1. Yes it use to run without any issues by showing all the best practises to be fixed in code.I tried removing the latest customization from the time it started throwing this BP error.

    2. I also tried with IIS reset and restarted the Visual studio but the issue still persist.

    Regards,

    Navin Nalawade

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Error occurred while running best practices fixers in D365FO

    Hi Navin,

    Are you operating D365FO 10.0.7?

    If so, then have a look at the following hotfix please:

    Issue 348466

    fix.lcs.dynamics.com/.../Details

    Best regards,

    Ludwig

  • André Arnaud de Calavon Profile Picture
    283,862 Test role Public on at
    RE: Error occurred while running best practices fixers in D365FO

    Hi Navin,

    This the BP fixer run before without issues? If so, do you know what might have been changed/customized in the meantime?

    Have you also tried an IIS reset and restart of Visual Studio?

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

Dynamics 365 Community Update – Sep 16th

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

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

Product updates

Dynamics 365 release plans