Announcements
No record found.
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; }
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.
Are you using a regular table to populate data?
Just like @Girish said,
ALWAYS use temp table for SSRS report.
The table is emptied once the report is generated.
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.
In DP class which standard class you extended?
I am extending "PurchPurchaseOrderDP"
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.
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 699
André Arnaud de Cal... 582 Super User 2026 Season 1
Subra 493