Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Caching Problem , when SSRS report displays data on Screen AX2012 R2

$
0
0

hi all,

I am working on a invoice proposal report in ax2012, its an RDP report as you all know.

The dataset used for this report is PSAProjInvoiceTmp , the table used here is not a temporary table, even though they have suffix as Tmp. The problem I have now is , when the data is displayed on the report, some times it shows the old data, say for example if I am viewing data for invoice proposal 002 it also shows data from invoice proposal 001, which had been run previously. and if user closes the report and opens it up, it clears the cache and shows the invoice proposal 002 data only.

I tried to delete the data per session with the code similar as below , and calling this code in ProcessReport method before , actually inserting data. GEN_SessionID  in below code is custom field that stores current session. GEN_DateOfCreation stores current date.

 delete_from tmpPSAProjInvoice

       where ((tmpPSAProjInvoice.GEN_SessionID == currentSessionId) ||

             (tmpPSAProjInvoice.GEN_DateOfCreation < today() - 2));

but the tmpPSAProjInvoice table is regular table(visible property set to NO) and framework deletes record from this table, once the report is rendered, so basically my above piece of code is not much of a help. But problem still persists and I get weird data on report.

Any suggestions how do I overcome this issue?


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>