Workflow doesn't work, Imports never happen, emails don't flow and Outlook clients cannot connect

Update 23 June 2008: See The official way to change MSCRM ports for an official way to do this. Update 12 March 2008: After you get MSCRM 4.0 up and running (install or upgrade) on your system with a custom host header you may find that workflow doesn't work (or flow), imports sit in a submitted state forever, the email router and outlook client cannot connect to the MSCRM server. This could also happen if you change the website details in IIS. What is happening is even though you access your server on a specific URL, internally in the Async service (which handles the workflow, duplicate detectionand imports) and the email router and outlook client actually just use the URL you used to connect to the Discovery Service.

The discovery service is a web service which gives back the real URL to the web services in MSCRM, so if you changed IIS it still gives back the old ones. There is also a bug in the RTM of MSCRM 4.0 which causes it to use the machine name instead of the host header after upgrades. So you go to http://<nice name> and the discovery service gives back to http://<machine name>/mscrmservices/2007/crmservice.asmx which doesn't exist since yourhost headers should have it as http://<nice name>/mscrmservices/2007/crmservice.asmx

You can pick this up using fiddler on the email server or desktop machine when trying to configure the email router or outlook client respectively. So I went though this with Microsoft PSS and they came back with a SQL command you can run to fix this.

NOTE: As this is a DB change it is unsupported. If you are a little worried about the impact do backups then try it. If you are very worried contact PSS directly for help.
USE MSCRM_CONFIG
Update DeploymentProperties SET NVarCharColumn = '<server>:<port>' WHERE ColumnName= 'AsyncSdkRootDomain'
Update DeploymentProperties SET NvarCharColumn = '<server>:<port>' WHERE ColumnName = 'ADSdkRootDomain' 
Update DeploymentProperties SET NvarCharColumn = '<server>:<port>' WHERE ColumnName = 'ADWebApplicationRootDomain' 

Example, if your server is called: myserver and runs on port 50000
USE MSCRM_CONFIG
Update DeploymentProperties SET NVarCharColumn = 'myserver:50000' WHERE ColumnName= 'AsyncSdkRootDomain'
Update DeploymentProperties SET NvarCharColumn = 'myserver:50000' WHERE ColumnName = 'ADSdkRootDomain' 
Update DeploymentProperties SET NvarCharColumn = 'myserver:50000' WHERE ColumnName = 'ADWebApplicationRootDomain' 

Once done do an IISReset and restart the Async service and everything should start to work fine! As I said before this came from PSS (in particular Justin Thorp)and I would really like to thank him for the hard workand great responses I got on it.


thanks a lot.

Visitor's picture
thanks a lot.

Pingback

Visitor's picture

[...] Но этим проблемы не исчерпались. Как выяснилось, не работают Workflow. Нужно было поправить еще и зстоку, содержащую AsyncSdkRootDomain. Описание проблемы и решение здесь - http://www.sadev.co.za/node/155. [...]

Worked :)

Visitor's picture
changed it to port 80 and it works. sadev.co.za is the shit :) Thank you!

Perfect!!!

Visitor's picture
I see your post and Microsoft solution, my experience say that is another guy freelance solve the problem and more persons say that's works fine, use it!! and not from Microsoft!!!! Thanks a lot from Catalonia (Spain)

THANKS A LOT

Visitor's picture
This saved me hours. In my case, I upgraded from CRM 3.0 and moved my installation to a new machine - and in the table, the old server was adressed ...

Pingback

Visitor's picture

[...] Robert MacLeanhttp://www.sadev.co.za There ended up being a bit more to get it fully fixed. See http://www.sadev.co.za/node/155 on how to fix it completely. -- Robert MacLean [...]

Pingback

Visitor's picture

[...] dass diese Info von Microsoft bereitgestellt worden w

still doesn't work

Visitor's picture
i did what is written. but had no success. no errors in the event viewer. please help me out

I suggest checking out the

rmaclean's picture
I suggest checking out the other posts I like to at the top of the article. Most importantly applying SP 1 (which has a fix for this)

Pingback

Visitor's picture

[...] or Waiting (http://support.microsoft.com/kb/957701/) – fixed. I am hoping this refers to my previous posts on the [...]

Thank you

Visitor's picture
Simple solution that works. I wonder how come MS have not fixed it still, in the setup files. Thank you.

Ditto - Thank you

Visitor's picture
Saved me a lot of time & >$250 incident with MS.

Thanks Jy is mooi Ding

Visitor's picture
Thanks so much for helping me solve a silly issue so I can carry on with my job!!!!

Pingback

Visitor's picture

[...] server. Replace <server>:<port> with your CRM URL and port. To learn more click here.USE MSCRM_CONFIGUpdate DeploymentProperties SET NVarCharColumn = [...]

Pingback

Visitor's picture

[...] articles that I’ve found regarding the subject are: http://www.sadev.co.za/node/155 [...]

Thankyou sir This really

Visitor's picture
Thankyou sir This really helped me..

Thanks!!

Visitor's picture
Hey maclean Thanks for the solution. Updated the MSCRM_CONFIG DB, restarted the IIS and started the Microsoft CRM Asynchronous Processing Service (it was stopped) and my system jobs start showing up now! Pfew!!

You are my hero...

Visitor's picture

I runned the script you provided, restarted IIS and Microsoft CRM Asynchronous Processing Service.

And now it works...

Thanks ;-)

Great article, really helped

Visitor's picture

Great article, really helped us out.

Also, if you've made the mistake to install the CRM 4.0 Data Migration Managar (DMM) on the same server as your CRM installation and then unistalled it some of the configuration properties are reset.

Not resolved yet

Visitor's picture

Thanks for this advice. I am however facing an Outlook configuration issue with 401 unautorized error after SQL Deployment properties table changed.

In our environment 3 servers are running - 1st one is CRM application/platform role, 2nd is CRM deployment service role, 3rd is CRM SQL server.

In this configuration, Outlook has to point the url for deployment service where discovery service is running, I think.

Could anyone advise what should I check - such as regedit, DB table, IIS setting, etc.

Thank you in advance.

Hmm what I would suggest is

rmaclean's picture

Hmm what I would suggest is grab a copy of Fiddler (a google search will find it) and pop it on your client box and then run the Outlook client. You should the HTTP requests going through it, check that the URLs in that match what you are expecting.

Thanks for suggestion

Visitor's picture

Thanks rmaclean,

I did verify the URL with Fiddler and it was confirmed the request was redirected to "/MSCRMService/2007/SPLA/CrmDiscoveryService.asmx" on the deployment service server as I expected. However the request is still not accepted (error 401)... it is ugly.

Check your security event log

rmaclean's picture
Check your security event log on the server for any kerberos issues. If so it could be that the credentials are getting borked and you either need to make sure IIS is set to windows authentication or disable kerberos as an authentication to the site.

Keberos

Visitor's picture
Thanks. IIS authentication configuration has been verified - it was correctly set. It may be something wrong with IFD setting. Will keep trying. Thanks again.

Pingback

Visitor's picture

[...] Resolution: Run a following query against your database server. Replace : with your CRM URL and port. To learn more click here. [...]

Yoa are hero

Visitor's picture

Nice job a guy. You save me from madness

Quality Work

Visitor's picture

For me

USE MSCRM_CONFIG
Update DeploymentProperties SET NVarCharColumn = 'myserver:50000' WHERE ColumnName = 'AsyncSdkRootDomain'

was all that was required.

Thanks v much for you help

Pingback

Visitor's picture

[...] See http://www.sadev.co.za/node/196 for an official way to do this.In my previous post on Workflow doesn't work, Imports never happen, emails don't flow and Outlook clients cannot connect I went through the fix by changing SQL. I never liked that fix because it breaks rule one of [...]

Pingback

Visitor's picture

[...] MSCRM web site ports correctly. This also fixes the workflow doesn’t work et al issues (see here). This is great to have, not because details a third way to do it (so besides the SQL edit and IFD [...]

Super!!!

Visitor's picture

Thank you very much!!!! It works!!!

Super!!!!!

Visitor's picture

It Works!!! Thank you very much!!!

You are the man!

Visitor's picture

Thank you so much for your solution! I was beating my head against the wall.

FYI: I tried the IFD solution first, but it never filled in the needed value for AsyncSdkRootDomain, I had to enter it manually.

AMAZING, IT NOW WORKS

Visitor's picture

I hate this fucking-piece-of-shit software.... and now it's finally working!
I hope I never need to touch this abomination again.

Cheers rmaclean. I have spent weeks looking for this bit of information.

You are the master!!!

Visitor's picture

after 2 days of searching it works!!!

Wonderful.

Visitor's picture

Finally it worked. Thank you.

Saved me hours...

Visitor's picture

I just wanted to drop you a line to say thank you! I was banging my head against the wall this entire installation because I used host headers for the crm web site. This was the last hurdle to get over.

-Steve

Great!

Visitor's picture

Thank you so much!

You are my hero of today.

This solution rocks. I

Visitor's picture

This solution rocks.
I changed the port number in the IIS instead to the one which was used while installing MS CRM 4.0

Thanks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Free Visual Studio training
StackOverflowServerFaultSuperUser Loading my StackExchange stats...
I am a community lead in this group.
We discuss SharePoint, Office and all things IW.
Twitter
Loading my tweets...