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

My Custom SSRS Report Does not read a new Field in Table Extension

(0) ShareShare
ReportReport
Posted on by


 I want to create a custom BankAccountStatement SSRS report in Dynamics 365 Finance & Operations.

I have created:

  • A new Report Design

  • A new Output Item

  • An extension of BankAccountStatementDP

  • An extension of BankAccountStatementTmp

I added a custom field called Description, and its Extended Data Type is TransactionTextLarge in BankAccountStatementTmp.

The Description field should contain the data from the Txt field in the BankAccountTrans table.

In my Data Provider extension, I have the following code X++:

 

[ExtensionOf(classStr(BankAccountStatementDP))] 

final class BankAccountStatementDP_AlAfdal_Extension 

{ 

    public void processReport() 

    { 

        BankAccountStatementTmp tmp; 

        BankAccountStatementTmp tmpNew; 

        BankAccountTrans        bankAccountTrans; 

  

        next processReport(); 

  

        while select tmp 

        { 

            tmpNew.data(tmp);  

  

            select firstOnly Txt, AmountCur 

                from bankAccountTrans 

                where bankAccountTrans.AccountId == tmp.AccountID 

                   && bankAccountTrans.Voucher   == tmp.Voucher; 

  

            if (bankAccountTrans) 

            { 

                tmpNew.Description = bankAccountTrans.Txt; 

  

                if (bankAccountTrans.AmountCur > 0) 

                { 

                    tmpNew.AmountDebit  = bankAccountTrans.AmountCur; 

                    tmpNew.AmountCredit = 0; 

                } 

                else 

                { 

                    tmpNew.AmountCredit = abs(bankAccountTrans.AmountCur); 

                    tmpNew.AmountDebit  = 0; 

                } 

            } 

  

            tmpNew.insert(); 

            tmp.delete();     

        } 

    } 

} 

 

When I run the report, it runs successfully, but the Description column is empty and does not display any data.

the result I expcted

TransDate Description AmountCur
11/8/2025 money order for test company 1500
11/9/2025 money order for test2 company 600
 
Categories:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,187 Super User 2025 Season 2 on at
    Moved the question from the Dynamics 365 General to the Dynamics 365 Finance forum.
     
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,187 Super User 2025 Season 2 on at
    Hi Amal,
     
    Have you used the debugger to find out if your code is running and what is actually being performed? You will find out that it is not doing anything as you define new instances of temporary tables in your extension method. There are no records available in a fresh declared temporary table buffer. If it would work, the while select would cause some performance issues.
     
    The table is populated in the method BankAccountStatementDP::createBankAccountStatementTmp 
     
    In your scenario, you can probably better create a copy of the current data provider and add your field instead of trying to extend the current one with Chain of Commands.
     
     

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