Notifications
Announcements
No record found.
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.
Many Thanks...!!
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?
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
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
Hello Ludwig,
I am operating D365FO Application release = 10.0.11 with Platform release = Update35.
Are you able to run BP fixers at project level ?
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.
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
Hello Sukrut,
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.
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 664 Most Valuable Professional
André Arnaud de Cal... 522 Super User 2025 Season 2
Sohaib Cheema 303 User Group Leader