I recently posted a script to remove the Fixed Asset Management tables from Microsoft Dynamics GP. I wrote that script for a client who wanted to start using Fixed Asset Management, but it turned out the module had been installed at some point in the past and then removed and the client wanted to reintroduce it.
We've just had a similar instance come up with a client upgrading from Microsoft Dynamics GP 2013 SP2 to 2016 R2 where Analytical Accountijng has been installed at some stage and removed and was stopping the upgrade from going through.
In this case though, there was (operative word was) a Knowledge Base article from Microsoft on how to remove Analytical Accounting which is no longer available (hopefully it will be back as I understand Microsoft are moving to a new KB system).
The script was available when we had the issue, but a couple of weeks later, the question was asked by one of the other MVPs. By the time I saw the question, they'd been emailed the scripts by one of the others.
However, when my colleague downloaded the scripts they had also saved a copy of the web page, which meant I could grab the download links for the scripts.
After running the Microsoft scripts, you've downloaded using the above links, run the below script on the system database to remove the Analytical Accounting entries from the upgrade tables:
DECLARE @PRODID INT = 3180 DELETE DB_Upgrade WHERE PRODID = @PRODID DELETE DU000020 WHERE PRODID = @PRODID
As always before running scripts, make sure you have a good backup of your databases.
UPDATED 20/01/2018: Download links updated to working ones