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, ...
Suggested Answer

BP error - DLL failed to load

(0) ShareShare
ReportReport
Posted on by 4,131

Hi,

When I compile with BP checking, I found some DLL related BP errors:

>>>>>>>>>>>>>>>>>
Warning Assembly 'System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' failed to load because it was not found. C:\AOSService\PackagesLocalDirectory\ApplicationPlatform\ApplicationPlatform\AxReference\Microsoft.OData.Edm.xml 0


Warning Assembly 'Microsoft.Xbox.Experimentation.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d91bba2b903dc20f' failed to load because it was not found. C:\AOSService\PackagesLocalDirectory\ApplicationCommon\ApplicationCommon\AxReference\Microsoft.Commerce.Flighting.Common.xml 0

>>>>>>>>>>>>>>>>>

How can I suppress such kind of BP errors?

Thanks,

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Does this come from your module, or the standard code?

    You don't need to care about BP issues in the standard code.

  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    You dont have  to address all BP's.If you compile  Standard code you will find lot of BP's.  Looks like above one is from standard code , you can ignore it.

  • Blue Wang Profile Picture
    on at

    Hi Yuji,

    Add suppression line before your method,  with warning type and justification, the syntax is below

    [SuppressBPWarning(‘’, .)] 

    There are explanations in this blog, you can read it: https://community.dynamics.com/365/financeandoperations/b/axaptavsme/posts/best-practice-bp-warning-suppression-in-dynamics-365-fo-dyn365fo

  • Yuji Profile Picture
    4,131 on at

    The BP errors are from our custom models and I could not find where the code cause the BP errors. The reason why we need to clear these errors is we would like to enable the BP checking during code check-in.

    So my question, can I still enable the BP checking Gated Check-in even we have BP warnings?

  • Blue Wang Profile Picture
    on at

    Gated check-in helps to restrict developers from checking in a broken code into source control system and thus helps to avoid blocking your team.

    With gated check-in when a check-in is initiated by a developer, it will build the project and will check-in the code only if the build is successful.

    There are ways to bypass check-in and complete check-in changes.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    The build system / build pipeline builds only code that is in the source control = your customizations. You don't need to worry about bp issues in MS code. And it would not make any sense to prevent your developers from checking in their code if Microsoft code has bp issues. After all, your goal is to ensure that your code is good, right? 

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Nikolaos,

    Build pipeline could you help to control the quality of your code and I will be glad to enable BP warning as errors in my projects. But because of standard MS warnings, it's almost impossible. For example, if you make an extension to an entity that contains an obsolete field you automatically get all these BP warnings in your project\model as well. But you can't do anything except to suppress them which is also not a good option.

    BR, Sergey

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Hi Sergey,

    yes I agree that the situation is not ideal. So having your custom models entirely BP issue free is almost an impossible task. So, if one wants to add mandatory BP validation in gated check-in, it might require some creative solutions. Such as allowing certain nr of BP violations (the amount of such "MS related" issues in your code that you can't solve) before failing the check.

    I've written a blog about this topic, and it would be very easy to adjust the example script to accept "n" bp issues.

    community.dynamics.com/.../check-best-practices-during-check-in

  • Yuji Profile Picture
    4,131 on at

    Hi Nikolaos,

    On the build server, there are more than 500+ lines in XPPBP.log. I am assuming this file is generated by XPPBP.exe. However if I run XppBp.exe using similar syntax below

    >>>>>>>>>>>>>>>>>

    xppbp.exe -metadata=C:\Packages -all -model=MyAppSuiteCustomizations -xmlLog=C:\temp\BPCheckLogcd.xml -module=ApplicationSuite -car=c:\temp\CAReport.xlsx

    >>>>>>>>>>>>>>>>>

    In the BPCheckLogCd.xml, I only got 30+ errors.

    I am confused, probably the BP rules are different?

    Thanks,

  • nmaenpaa Profile Picture
    101,160 Moderator on at

    What if you compile the code from Visual Studio, how many bp errors do you get then? Why are you compiling ApplicationSuite?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans