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

Build Automation Report Business Logic Assembly Not Found Error

(0) ShareShare
ReportReport
Posted on by 1,214

Hi,

My previous build automation threads if you need reference:

https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/401765/build-automation-add-nuget-package-to-azure-artifacts-feed

https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/402407/build-automation-custom-model-reference-error

https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/402598/build-automation-add-licenses-to-deployable-package-no-license-s-found

From my previous threads, I was able to successfully build and create an All-in-One Deployable package.

So I imported and run the build pipeline on our another customer's project but I get these errors on Visual Studio build step:

##[error]D:\a\9\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets(46,5): Error : Error: AxReport/ProjectInvoice - "An unhandled exception was thrown while validating ProjectInvoice with callstack System.IO.FileNotFoundException: Business Logic assembly not found at location D:\a\9\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\Microsoft.Dynamics.ApplicationSuite.Reporting.BusinessLogic.dll

##[error]D:\a\9\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets(46,5): Error : Error: AxReport/PurchPurchaseOrderTBM - "An unhandled exception was thrown while validating PurchPurchaseOrderTBM with callstack System.IO.FileNotFoundException: Business Logic assembly not found at location D:\a\9\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\Microsoft.Dynamics.ApplicationSuite.Reporting.BusinessLogic.dll

ProjectInvoiceReport is extension of SalesInvoice Report.

PurchPurchaseOrderTBM Report is extension of PurchPurchaseOrder Report.

I have no problem building and deploying these reports in DEV environment. Furthermore these reports have been working without any issue in Production for quiet a long time.

Both of the customers have these two reports extended. So I don't see what could be wrong. Pretty sure I didn't miss any steps.

Please guide me where should I look. Thank you.

I have the same question (0)
  • vinitgoyal2005 Profile Picture
    6,332 on at

    Hi,

    Have you used the latest Nuget packages? If I remember correctly, older versions had this problem.

  • HAIRUL HAZRI Profile Picture
    1,214 on at

    By older version, which version specifically have this problem?

    I'm using PU36/10.0.12 version. Shouldn't this version works? My successful attempt uses this version. Just different organization, different project.

  • Verified answer
    WillWU Profile Picture
    22,363 on at

    Hi HAIRUL HAZRI,

    Please try to add the following PowerShell to your build definition after the install/restore of the NuGet packages.

    “$(Pipeline.Workspace)\NuGets\Microsoft.Dynamics.AX.Application.DevALM.BuildXpp\ref\net40\ApplicationSuite\bin\Microsoft.Dynamics.ApplicationSuite.Reporting.BusinessLogic.dll” “$(Pipeline.Workspace)\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\”
    Refer to: msdyn365fo.wordpress.com/.../

  • Suggested answer
    vinitgoyal2005 Profile Picture
    6,332 on at

    Hi,

    Check the NuGet package version matches the D365FO version. 

    pastedimage1600934905248v1.png

    Also Will has shared a link, Check if that helps. 

  • HAIRUL HAZRI Profile Picture
    1,214 on at

    Hi Will,

    sorry I don't understand what it means by "add the Powershell to your build definition after install/restore of the NuGet packages" .

    Where do I need to put this script?

    Is it in Build pipeline -> NuGet Installer task -> NuGet arguments? Or do I create a new task?

  • HAIRUL HAZRI Profile Picture
    1,214 on at

    I created a PowerShell task.

    Select inline.

    And paste the script.

    powershell-inline.png

    This helped me get past the error.

    Thank you :)

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans