web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

SRSReportDataSetAttribute - Temp table

(1) ShareShare
ReportReport
Posted on by 81

Hi,

I am populating a table to use in a report. After the report is created, what is the best way to clear the data from the table?

public WSTG_EndUserPurchOrder_TableTemp endUserTempTable;

[SRSReportDataSetAttribute(tableStr(WSTG_EndUserPurchOrder_TableTemp))]
public WSTG_EndUserPurchOrder_TableTemp getTempEndUserData()
{ 
   select endUserTempTable;           
   return endUserTempTable;
}

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,843 Moderator on at

    Hi PhillyNJ,

    Normally SSRS report has table which is of type temp db.

    No need to delete the record in the table if you set the table type as TempDB.

    If still you want to delete the record in the table you can use delete_from in the processReport method before inserting records related to the report.

    Thanks,

    Girish S.

  • Arunraj Rajasekar Profile Picture
    1,743 on at

    Are you using a regular table to populate data?

  • Suggested answer
    Komi Siabi Profile Picture
    13,218 Most Valuable Professional on at

    Just like @Girish said,

    ALWAYS use temp table for SSRS report.

    The table is emptied once the report is generated.

  • PhillyNJ Profile Picture
    81 on at

    If I set the table to TempDB, I get the following error:

    Purchase inquiry (PO000000156-1) Fault was thrown by the service for request bc4b7621-01a7-49a4-b7ca-d99460ccdba9. Exception details:
    Type: Microsoft.Dynamics.Ax.Xpp.ErrorException
    Message: Table WSTG_EndUserPurchOrder_TableTemp used in report provider class should be a regular table.

  • GirishS Profile Picture
    27,843 Moderator on at

    In DP class which standard class you extended?

    Thanks,

    Girish S.

  • PhillyNJ Profile Picture
    81 on at

    I am extending "PurchPurchaseOrderDP"

  • Verified answer
    GirishS Profile Picture
    27,843 Moderator on at

    PurchPurchaseOrderDP extends SrsReportDataProviderPreProcess.

    So if the dp class extends SrsReportDataProviderPreProcess the table used for that report must be regular table.

    Refer to the below thread

    https://www.dynamicsuser.net/t/srsreportdataproviderpreprocess-is-used-to-work-with-regular-tables-with-the-included-properties-createdby-and-createtransactionid/62690

    So you don't need to delete a record from the table. It will get deleted automatically when you re-run the report again.

    Thanks,

    Girish S.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 699

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 582 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 493

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans