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, ...
Unanswered

AssetBalances report – Cannot update AssetBalancesTmp via extension (PreProcess DP)

(2) ShareShare
ReportReport
Posted on by 102

Hi,

I’m customizing the AssetBalances report in D365FO.
 

Goal:


  • Display a custom field Location (from AssetTable.Location) on the AssetBalances SSRS report

  • Field added to AssetBalancesTmp and bound correctly in RDLC

  • Use extension only (no overlayering, no DP duplication)

Constraints:


  • AssetBalancesDP is standard and cannot be modified

  • Report is launched via AssetReportsController (menu behavior already redirected to custom report)

What I’ve tried:


  1. CoC on AssetBalancesDP.processReport():

    next processReport();
    while select forUpdate assetBalancesTmp
    {
    assetBalancesTmp.Location = "Duck";
    assetBalancesTmp.update();
    }

    → No value appears in the report.

  2. DataEventHandler on AssetBalancesTmp (Inserting)

    → Event never fires.

  3. Verified AssetTable.Location has data using SQL.

  4. Verified dataset refresh and RDLC expression are correct.

Observation:


  • Even hardcoded values set in AssetBalancesTmp after processReport() do not appear.

  • This suggests the temp data might be snapshot/materialized before extension logic executes.

Questions:


  • Is AssetBalancesDP designed in a way that prevents modifying AssetBalancesTmp via extensions?

  • Is duplicating AssetBalancesDP and populating the custom field during insert-time the only supported solution?

  • Has anyone successfully extended AssetBalances without duplicating the DP?
     

Any guidance or confirmation would be appreciated.

Categories:
I have the same question (1)
  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at
    "No value appears in the report" doesn't necessarily mean that the field doesn't have a value. It may mean that the RDP works flawlessly and your actual problem is how you're displaying the value in the report. If you test too many things at once, you don't know which one to blame for a problem.
     
    Your code in processReport() (with the hard-coded value) looks good to me. You can use the debugger to verify that it indeed iterates records created by the standard logic and updates them.
  • Statics 365 Profile Picture
    102 on at
    Thanks for the suggestion. I followed your advice and debugged the exact code step by step.

    The extension is executed correctly and next processReport() is reached as expected.

    However, during debugging the buffer always shows “No data selected”, therefore
    while select forUpdate AssetBalancesTmp never iterates any record.

    This happens even though the standard report output indicates that data exists.
  • Statics 365 Profile Picture
    102 on at
    Update

    I resolved the requirement by duplicating the DP and populating the additional field during insertion into AssetBalancesTmp, then redirecting the standard menu to the duplicated report via the controller.

    This approach works as expected and the report now shows the additional data correctly.

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 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans