Saturday, October 8, 2011

Dynamics GP Workflow Installation - The selected website is not a SharePoint site

 

I been in a situation yesterday with one of my clients, they had a problem in their portals server and been getting the above message during the uninstallation of the Workflow of Dynamics GP.

The exact message was: "The selected website is not a SharePoint site", but if you open the SharePoint Central Administration you finds the web application that holds the Workflow and it is indeed your Workflow web application.

While digging deeply into this, I noticed that the web applications for Workflows are being identified by unique identifier instead of using the web application name, so the mentioned case might became due to an operation that you have deleted the SharePoint web application from SharePoint Central Administration which workflow installed, and re-added the web application with the same name and same configuration, even with the same data as I have restored the web application from a SharePoint backup I had earlier.

The only way to resolve this is by forcing the workflows to be uninstalled without validating the SharePoint, to do this you will need to download Windows Installer Cleanup Utility which could be downloaded from here, and uninstall the workflow application by clicking on uninstall, this will remove the information of the workflow from your system but will not delete workflow files, normally workflow files will be replaced after doing the reinstallation, but the only thing that will have to be removed manually is the registered workflows and features that was deployed over SharePoint, this will need to be done by running following commands in CMD:

cd C:\Program Files\Common files\Microsoft shared\Web server extensions\12\Bin\         
stsadm -o deactivatefeature -name DynamicsApproval -url <DynamicsGPWorkflow URL> –force
stsadm -o deactivatefeature -name DynamicsWorkflowForms -url <DynamicsGPWorkflow URL> -force
stsadm -o deactivatefeature -name DynamicsWorkflow -url <DynamicsGPWorkflow URL> -force
stsadm -o uninstallfeature -name DynamicsApproval -force
stsadm -o uninstallfeature -name DynamicsWorkflowForms -force
stsadm -o uninstallfeature -name DynamicsWorkflow -force

Replace the <DynamicsGPWorkflow URL> placeholder with the path of the DynamicsGPWorkflow site collection. For example, replace the placeholder with the following path:

http:// Server_name /Sites/DynamicsGPWorkflow

Finally you’ll be able to reinstall the workflow with no issues.

Enjoy!

Regards,
--
Mohammad R. Daoud MVP - MCT
MCP, MCBMSP, MCTS, MCBMSS
+962 - 79 - 999 65 85
me@mohdaoud.com
www.mohdaoud.com

4 comments:

Gibrán said...

Hi Mohammad,

I followed the steps you suggested and deleted all the workflow files, but when I run the installation file the setup window does not appear. I checked the task manager and the process starts for a few seconds then closes.

I made a copy of the registry before changing anything, if I restore it sends me back to the way it was, running the repair/remove and resulting on the same error. There is nothing at this point in Event Viewer.

Is there any way I can force the setup to run? I have tried everything I can think of and am a bit desperate. Thank you.

Anonymous said...

Hi, i got the same problem. Can you fix it.? Dou you find the way to solve it?

Please, we need help with that. Can you

Victor
rotcivchen@hotmail.com

Mohammad R. Daoud said...

Victor,

The resolution for your issue is available in the article, just uninstall the product using another utility and follow above steps.

Unknown said...

Daoud, your aricles are really helpful bro. You're amazing. Keep sharing helpful info, will be looking to hear more from you.
Microsoft Dynamics GP

Related Posts:

Related Posts with Thumbnails