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 :
Microsoft Dynamics AX (Archived)

SSRS - Values periodically missing in output

(0) ShareShare
ReportReport
Posted on by 355

Hi all,

I have a rather weird situation happening in SSRS which I have never encountered before. I was hoping somebody can help me figure out what might be happening here. I will provide as much detail as I can about the situation, and can answer any follow up questions provided.


Overview of the problem:


I have an SSRS report in Microsoft Dynamics AX, using a report data provider class. The RDP class uses a simple query which selects from ProdTable, where I can also provide parameters to select from such as ProdId. In this report, I do a lot of data gathering, and populate the fields of my in memory (side note, I have attempted to try a temp table as well to see if it resolves this issue, it doesn't, so I reverted back to in memory) table, which is ultimately used in the data set of my report. I can provide more detail on the logic of my report if necessary, but I'm able to successfully gather my data, populate my in memory table fields, create a dataset in Visual Studio which looks at my RDP class / in memory table, and successfully display all my information like so:

SSRS_5F00_Report.png

Now for the issue. I've noticed that after a few hours have passed, (and every single time over night), that some data of this report will STOP showing up. When I say stop showing up, I mean that without me modifying anything, my report will now look like this:

SSRS_5F00_Report2.png

As you can see, the Item Id and Wms location ID (barcode) fields are now displaying blank data. In this particular example that I managed to screenshot, it is these two fields that are missing data, but that does not mean that it is always those two fields. Sometimes those two fields stay intact and it is for example the name field that goes missing, or any other field.

Before I continue providing more information about the issue, I wanted to point out the following:

1. In this phase where the information is "missing", I have debugged the RDP class and can confirm that the values ARE being inserted into my in memory table, they just do not show up on the display.

2. What confirms step one even more, is that if you look at the first screenshot I've provided, I have set visibility conditions on the two bar code fields to be hidden if their respective field has no information. So for example,  item CLH_56_WHB does not have a WMS Location Id, therefore it will not have a barcode. So the fact that the item barcodes are all showing up and not being hidden means that it's also not reading a null value.

3. If I  rebuild /redeploy / restart SSRS / refresh the dataset/ restart AoT / recompile & re-deploy report on the AOT, the issue does not go away.

4. If I delete the report design entirely and remake the design, the issue will be resolved. However, after a few hours we will encounter the same problem again.

5.  When I say I'm remaking the design, I mean absolutely from scratch where I right click on the auto design and create a precision design from it, then re-create the design and make it look pretty again. If I for example create a duplicate of my design as a backup, then delete/recreate my precision design and copy+paste my tablix/fields from my backup, it will not work. I need to use my new tablix, format it, etc. Only then it will work.
 

6. The auto design from the dataset will always successfully show show all the data. Obviously this is not the design we want to use, but this again verifies that the actual data is there.

Now, one more thing I've noticed. Prior to leaving for the weekend on Friday evening, I've left my visual studio with the project open on the screen (report working good). When I returned this Monday morning, I've tried to re-deploy my report, and was presented with the following:

 VS_5F00_Error.png

This seems very huge information wise in the fact that there seems to be something else that's maybe somehow modifying the report.

My initial thinking is some kind of process in the background, but I've honestly never encountered something like this in the many SSRS reports I have done.

I'm not dismissing the fact that it's entirely not possible that another user has modified this report, but it is very unlikely. Add to the fact that after this 'break' happens, I cannot see any differences at all in the report. The structure is the same, the aforementioned visibility logic is the same, everything is the same as far as I can tell, just that these fields do not show up.

Does anybody have any suggestions at all to how I can debug/fix this? Has anyone ever encountered a situation like this or similar before? Any help would be greatly appreciated. I will answer any questions with as much detail as possible.

Thank you.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Try the following step in order:

    1) Clear all caches from AX (Tools -> Caches -> Refresh Dictionary, Data, Elements, Report Server (If R3))

    2) Delete your report from SSRS Server

    3) Restart you SSRS service

    4) Redeploy your report

    Hope this helps.

  • Community Member Profile Picture
    on at

    I've got the same issue and this didn't really solve it..

    I can generate a report 10 times and maybe once or twice this one label will have a value.

    It is always filled in in the Tmp table and the data provider.

    Frustrating...

  • Community Member Profile Picture
    on at

    Hi, Please check how many fields you have in your table, I'm not sure if it is solved now, but I have similar problem, I had a lot of filed in one table, I think there is memory limit for it. Solution is try divide your fields in two or more tables like header/footer and details tables.

  • Catalyst619 Profile Picture
    355 on at

    Just an update on this, the values did show up again but this is not due to any particular fix or method.

    You can try doing many of the things listed and they may help resolve the problem for you, but from my experiences this is fairly random and still occurs to me for other reports. Randomly happens, randomly goes away.

    I'm not able to diagnose a pattern as to why, whether it be the amount of data, number of fields, etc.

  • Community Member Profile Picture
    on at

    Hello

    Does this happens only when displaying on screen or even if you print out directly to excel, pdf or printer?

    Regards

    Hans-Peter

  • Community Member Profile Picture
    on at

    Hi guys thanks for the info so far.

    The report consists of:

    -2 tables (PurchPurchaseOrderHeader, PurchPurchaseOrderTmp which are detail lines)

    -dataprovider PurchPurchaseOrderDP

    -controller PurchPurchaseOrderController (manages how to print to screen, parameters and document titles etc)

    My steps:

    1) added a new field VlsOrdererName (string, only custom field) to the header table (worker that ordered some goods to be purchased) and added code to the PurchPurchaseOrderDP to fill up that field (in setPurchPurchaseOrderHeader)

    2) Modified the standard PurchPurchaseOrder report: added the field in the header part of the report

    3) When running the report, verified in the debugger that the correct value is being filled in

    4) some other fields werent being displayed as well (PurchPrice etc) but that was solved by removing the Tablix and rebuilding it entirely

    5) however the problem persists for the header of the Report for the newly added value VlsOrdererName, it is just in a textbox field (expression: =First(Fields!AduOrdererName.Value, "PurchPurchaseOrderDS"))

    I can run the report (from the purchase order confirmations dialog) in any of the three ways (copy, original, use print management) and i would have about 10% chance for the field to be filled in. It's always correctly filled in in the debugger.

    Now, i've changed the fieldname to AduOrdererName in the report table (just a desperate attempt) and did all the needed steps (refresh datasource, adjust report, cil, deploy, forward compile, ..)

    I noticed:

    1) i forgot the change the DP code and it didnt throw any errors (i didnt compile the DP), so it probably used the previous compiled version?

    2) afterwards, i changed the code in the DP and compiled it

    3) like half of the time the report would fail with some SQL error mentioning the AduOrdererName didnt exist, so i synced the table (doh :-)))

    4) the sql issue seemed to persist a few times (randomly) and was then gone completely

    5) now i am back to about 10% chance of the value being filled in on the report

    The report is always opened directly to screen (the controller does this). When printing that report, the value is still empty though.

    I've also tried to no avail:

    -deleting report via report web interface and redeploying

    -restarted ssrs instance

    -restore, incremental cil, compile, forward compile, ...

    Now the SQL errors made me feel that there are queries (and perhaps resultsets) being cached somewhere... so i tried lots of ways to purge cache to no avail..

    Any idea? Need more info?

    Thanks for your time in advance!

  • Suggested answer
    Community Member Profile Picture
    on at

    Restarting the AOS and clearing my client cache did the trick.

    Cache directory: C:\Users\username\AppData\Local (delete all *.uac files)

  • Community Member Profile Picture
    on at

    Has anyone found solution to this issue?

    My case is similar, that I try to print minor customized sales confirmation from AX client multiple times, the print results varies from time to time. Sometimes it is logo missing, sometimes the address is missing. This is really joking that a system cannot keeps output consistent with identical input

  • Community Member Profile Picture
    on at

    My answer: restart AOS and SSRS and clean .UAC files consistently works for me.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans