ARForm report broken after upgrade from 10.1.600 to 10.2.400

At a loss how to troubleshoot this one so I’m hoping one of you fine folks can nudge me in the right direction.

A highly customized ARForm has stopped working with only the error message “Query execution failed for dataset ‘ARForm’” This really doesn’t help much. And because it doesn’t generate the report tables with the GUID after them, I cannot run the query in SQL query analyzer to see what has changed.

My suspicion is that maybe a new field has been added to one of my tables that now is finding ‘ambigious’ in the query.

I’m at a loss how to troubleshoot this other than revert back to the original RDD ARForm instead of my 7th generation one and start adding more tables slowly until it breaks again. If anyone has experience working with the ARForm RDD, it is extremely slow to work with and given the large number of tables/fields needed, it takes forever to remove unneeded columns/labels in order to not go over the limit.

Is there any documentation that sums up added fields or database changes between the two versions I’ve been working with?

Thanks in advance for your time and effort.
G

Custom RDD’s should work with the built-in report. I’d do the following:

  1. Duplicate your RDD (we’ll refer to this as RDDx)
  2. Make a new style using RDDx, and the default RDL.
  3. Try to run that.

If it doesn’t work, slowly remove fields of the tables you added to RDDx. First try doing this by marking all fields (except the ones used in relationships) as excluded. If that doesn’t work, try removing the tables you added, one at a time.

1 Like

I can confirm that the default report does not work with my RDDx.

Here’s what I’m thinking to do since I keep revisiting this and foresee that this may keep happening with future upgrades.

  1. Going to work with my 10.1 version that works.
  2. Remove all fields from the report that are not being used. I’ll need to delete each one, see if it saves, rinse and repeat through all of them.
  3. Now that the unnecessary fields/labels have been removed, I’ll tackle the dataset report query to only access the fields that are being used.
  4. Finally, now that the report fields and query is cleaned up. Duplicate the ARForm Data Def and strip out everything that isn’t needed.

My thinking is that the RDD is super slow to work with so getting everything out of there that isn’t needed will make it easier to work with in the future.

Do you see anything wrong with my plan? This is my first upgrade and want to put the effort in now to ensure future major version upgrades go more smoothly.

One thing I’ve heard some people say is that the query expression for ARForm is so long that it cannot be edited in the expression editor window.

When you do an upgrade, Epicor will inject their new Data Sources and Relationships into your RDD. Sometimes you need to remove them or tweak them, sometimes a Left Join could duplicate your data, if snuck in.

Here is my Customized ARForm Report 10.1.600 v 10.2.400. Before and After Upgrade.

However Epicor will not modify your .rdl file and add anything new into that! But if let’s say your rdl uses Calculated_Something and Epicor changed the logic, renamed it or removed it - you have to uplift it manually. (CC @JeffLeBert)

What I do usually is grab the base and compare it using www.winmerge.org and then make a decision, sometimes its easier to re-customize from Base.

But definitely look at your RDD first.

As you can see the ARForm has a gazillion changes.

Also on your Server where Epicor Extracts the .iso etc you will find a reports.zip folder sometimes your lucky reports have a History.txt

1 Like

One more thing… my idea for trying to get the RDD to work with the basic RDL, was that the report rendering takes RDL’s query and applies it against the dataset. If the RDL’s query was very basic, any failure to render would indicate that the dataset isn’t being created, and therefore the problem is in the RDD.

Just curious, if you submit the report (not print or preview), does it succeed?

And my first guess would be along the lines of what you said about a new field in 10.2.400 being ambiguous - or possibly conflicting with an existing field name.

And one last thing… Ive never seen the RDL’s query SO customized. I was under the impression that typically, one would just add the new fields to SELECT parts. Or occasionally adding joins for the newly added tables. And seeing your query start with a SELECT DISTINCT SUM and that your tables aren’t named T1, T2, etc…, really shows you massively manually tweaked that query is.

1 Like

Also whatever you do Do Not Click Sync Dataset

I was going to ask if he was desperate enough to try SYNC DATASET on a COPY

ON A COPY OF THE RDL!,

@hkeric.wci - sync ds doesnt change the RDD in any way, does it?

No only the .rdl – RDD Remains.

I didn’t work on the migration so anything I saw is just guesses.

Auto fixing the RDL is the same problem we get with Sync Dataset, so I don’t think we could or should do it. For trivial reports you could do it, but monsters like ARForm need a human. We would love to be able to convert everything with a magic wand, but that is impossible.

Given that, when you customize something, document your changes and be prepared to make them again if necessary. (Usual caveat about speaking for myself, not my company. :slight_smile: )

1 Like

Thanks for all the suggestions here. I feel I’m way over my head on this one, yet I always seem to find a way to get these things fixed after some amount of effort.

I’ve taken the new 10.2 RDD and added my other tables and relationships that my HIGHLY customized Invoice uses.

I’ve run the stock SSRS report using this new RDD and the base report prints so that tells me the RDD is NOT the culprit.

So that leaves the RDL, but again, it’s highly customized. (The invoice has been changed to look like the client’s previous Invoice, plus the Pack Slip is added at the bottom so they both can be emailed using a 3rd party tool).

The only thing I can think of to try for my next step is to take the Base report, blow everything away on the report itself, keeping the datasets, then copy paste my report fields back into the report and adjust the dataset to include my new fields. This seems super time consuming and I remember it was almost impossible to get everything to fit on the page properly.

Any other suggestions for my next step? Again, my RDD seems to be working as I can use it to print the Base ARForm.rdl. And because I can print it, I can archive the data. Looking at that data in SQL server shows that indeed the new fields I need are present in the dataset.

Thoughts?

Hi,

I had the same issue upgrading from 10.1.6 to 10.2.4 on the order acknowledgement.

I was getting an error about a column not existing ‘Calc_FSAInstallationDesc’

The issue I had was that there was some new data sources in the 10.2.4 RDD

I did a quick check of the ARForm RDD on 10.1.6 and 10.2.4 and there are new sources.

I suggest adding these to your custom RDD - it worked for me.

Cheers,

Andrew.

1 Like

Also - have you tried setting the archive period on the report to 1 day. running the report, getting the report GUID and running the report direct in SSRS.

This should give you the error at least.

Upon reading this, I thought this was some super PRO tip that not many people know of. Unfortunately, it just gives the same error that I get in the System Monitor.

An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset ‘ARForm’. (rsErrorExecutingCommand)
For more information about this error navigate to the report server on the local server machine, or enable remote errors

Are the remote errors easy to set up and do they give an actual SQL execution error?

Regardless, you’re right about the added data sources. I’ve actually taken the base 10.2 RDD and added my 3 tables and their relationships and the form is now working. The only issue is I have one field left to add in the dataset query and it’s a SUM so I’m going to have to add a GROUP BY on all the other fields in the query, which is going to take some time.

Thanks for all the guidance. I’ve been burning through days of effort on this nasty report.

Glad your getting there - in order to test the SQL, copy the expression from the ARForm dataset in SSRS, open an SSMS session and paste it into a new query, replacing Parameters!TableGuid.Value with the GUID from system monitor.

omg… I forgot about this. I had mistakenly thought that a GUID only was generated when the report actually rendered. Which didn’t make sense given it’s just a data call.

PRO tip! Thanks

You’ll also need to clean up the expression as it is a formula that evaluates to a string. Take out the leading =", and any other areas that change from string to variable. Basically, replace

" + Parameters!TableGuid.Value + " with the GUID

so that

OUTER JOIN OrderRel_" + Parameters!TableGuid.Value + " T3 

needs to be

OUTER JOIN OrderRel_0123456789987654321 T3 

and remove the closing "

This has totally saved me. Show me a ‘meaningful’ error message and I can fix it. I’m proficient with SQL.

Up until now I just got “Query execution failed for dataset ‘ARForm’” so all I could do was find something that worked, then slowly add to it. Which is very time consuming when you have a highly modified form.

Thanks again to everyone. Being able to debug in SQL query analyzer has saved me.

Thank you all for you useful post, the following is what I did in our testing env:

  1. Duplicate the report generic RDD to the a new version for the custom report, RDDv2
  2. Modified the custom style and replace RDDv1 with the duplicated RDDv2.
  3. Added all the tables and relationships to the RDDv2
  4. Modify the Report style to run the generic report not the customized report path.
  5. Run the report.
  6. If the reports runs, then you have Database GUID.
  7. Used the GUID for input to running the customized report from Report Builder.
  8. The report will fail due SQL missing columns from the GUID database tables.
  9. Add the missing columns to RDDv2, by examining the table/exclusions and link picked columns.
  10. Keen testing the report from report builder.
  11. Once all errors from the runs in Report Builder are resolved, change the report style to the customized report path.
  12. God is greater.
2 Likes

Should find some way to Pin your post.

Best step by step to get a report working after an upgrade!!!

1 Like