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

Community site session details

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

SrsReportDataProviderPreProcess not deleting itself

(0) ShareShare
ReportReport
Posted on by

Hello,

I'm extending the SalesInvoiceDP with a new table for the SalesInvoice report. This table has to be a regular table because the SalesInvoiceDP extends SrsReportDataProviderPreProcess.

I have set the table as regular, I've added createdBy and createdTransactionId to both yes/true and in my process report method eventhandler, I use table.setConnection(this.parmUserConnection()) and everything is working correctly where my data self deletes once I close the report properly.

My problem is if I don't close the report properly (letting the tab time out or just closing the tab instead of the report) my data doesn't get deleted and it stays in the table. When I try to run the report again I get this error message "Cannot execute the required database operation. Cannot attach to connection since the buffer is in use. Use another buffer or clear the buffer by assigning NULL."

I as a dev can manually delete everything in my table through the table browser and everything works again, but this will eventually go out to customers who can't.

This will eventually go out to customers who have multiple users running this report at the same time and I am worried using a delete_from at the beginning of processReport() will cause issues for anyone is running the report at the same time.

The original tables for the SalesInvoice Report don't have this problem, I'm not able to view them in the table browser and they always self delete even if I close the report improperly. Is there a setting that I'm missing for my table or code so that my table does this as well?

I have the same question (0)

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade 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... 765 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 743

#3
Sumit Singh Profile Picture

Sumit Singh 551

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans