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

AX2009 SSRS - Query execution failed for dataset - error only in the browser after deployment ?

$
0
0

Im working on a problem with SSRS (reporting tools).

I have a report in SSRS that works well since 1 or 2 years. I made a couple of updates since the first release.

Last week, I made a minor update to this report. Something that I do often (adding 2-3 lines on the report from a table where i added a couple of new fields)

But for a reason that i dont understand, i cannot get the value of my new fields.

I received this error only in the browser (in VS its fine, i see my results) :
"An error occurred during client rendering.
An error has occurred during report processing.
Query execution failed for dataset 'Data'.
Exception has been thrown by the target of an invocation.
Dynamics Record Adapter GetField failed.
Exception of type 'System.ArgumentException' was thrown."


Error occured with the GetField method. After checking closely my code in VS, everything is fine. I reuse many methods that works #1. I dont see any problem with my code. So I start to think about weird problems that can occured with the mix of AX2009, SSRS, adapter.


One of my hypothesis was that the query return too many fields that the connector cant handle. This report works with a table dedicate to this report. Data are build in a batch job each day. So my table is use only for this table, than the query is made with SELECT *. Since some fields are not used anymore, i tried specify each necessary fields in the SELECT instead of the *. Reports that throw error that my query cannot be compile and printed my query. If I copy the query and put the query directly in a job in AX, its works #1. 

2nd hypothesis was that my new fields have a too long name (maybe AX can handle this long name but the the adapter?). I renamed fields, but still get the same error.

3rd hypothesis was that maybe, somewhere, its take the wrong ax instance. So i added all my new fields in all AX instance. Same result. I dont know right now what to do. Im trying to browse the web to find some limitation of AX2009 with reporting extensions. 

I repeat what I said before, its work in VS.


Can you help me ?


Viewing all articles
Browse latest Browse all 73760

Trending Articles



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