The SQL Reporting Services URL is not valid

How many times have you been caught with this error message  after GP Utilities has completed the DYNAMICS system DB & company DB upgrade ? 

Every time I perform a TEST environment upgrade with any GP version, I get caught by the same trap and just have to slap myself for not remembering to check some tables prior to running the GP Utilities.

According to this old Microsoft blog post from the GP dev team, this is a known issue for many years and I don’t know why it hasn’t been fixed yet…

When launching Microsoft Dynamics GP 2010 Utilities R2/SP2 or later, which includes the updated deployment model for the SSRS reports, the application will compare the contents of the sySrsReports/syExcelReports and syDeployedReports tables which are located in the DYNAMICS database. If there are objects in the sySrsReports that do not exist in the syDeployedReports table or if the build number has been incremented with a new version of the report it will automatically deploy those missing/updated items.  It looks to the SY40800 table (Reporting Tools Setup) which is in the DYNAMICS database as well to see if the site information has been populated.  This gets populated when the appropriate url’s or paths are entered within the Reporting Tools Setup Window within Microsoft Dynamics GP.

Whenever you try to run GP Utilities on an existing GP instance where built-in SSRS and/or Excel reports have been deployed previously, the program would just go on with the re-deployment of the new SSRS & Excel collection without asking any permission if it detects that they were previously deployed… sound great ? not really.. 

Protect your existing reports!

First of all, this might be an acceptable behaviour if you upgrade your LIVE environment and just assume that all your existing reports will get a new version and scrapped all over.. Even then, I’d be very concerned about my customized reports that you may have changed over the course of time in your previous GP version.. not fun to have to redo them all! So be aware of that and make backups of your .rdl files in SSRS and Excel modified reports in the shared network folder (assuming they were deployed for everyone).

Now to the technical side.. I’ve been explaining the details in many Dynamics Community forum threads, but this ones summarizes it all (not quite the upgrade failure, but similar root cause):

In order to prevent GP Utilities to automatically trigger the SSRS & Excel reports re-deployment, you have to clear out (or adjust the URL) the following tables in the DYNAMICS DB : 

You can use the following SQL code to perform this. To prevent your GP Utilities to stall after the company upgrade, clearing out SY40800 is enough. You may later want to clear out also syDeployedReports as it is just going to be clogged with un-necessary entries when it comes to re-deploy your reports to a new location on your TEST bed server. 

-- check deployment URL
-- take a backup
select * into SY40800_bub
from SY40800
-- clear out report setup
delete from SY40800
-- check for which company reports where deployed
select * from syDeployedReports

As said, if your TEST server has the same setup as your LIVE server, you could just alter & update the URL in the SY40800 & syDeployedReports tables to point to the new location and avoid the error completely from the GP Utilites.. just think about that before starting the process 🙂

Please share if you find this useful. I hope you can refer to it some time in a future upgrade.
Until next, have a great time!

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Website Powered by

Up ↑

The personal blog of Mark Polino

Erik Svensen - Blog about Power BI, Power Apps, Power Query

Blog about Power BI, Power Apps, Power Query

Freddys blog

Learn something new... - then Teach someone!

Life Hacks 365

Microsoft Dynamics & Microsoft Office Tips & Tricks

Vicky Rodgers - Microsoft Dynamics 365

Everything Microsoft Dynamics 365 for Customer Engagement


Stuff about the Microsoft Power Platform and Dynamics 365

The Dynamics Explorer

Exploring the World of Microsoft Dynamics ERP

Paul S. Randal

My contribution to the never ending Dynamics GP journey

%d bloggers like this: