Microsoft Dynamics AX Thoughts
When you install Dynamics AX Workflow, you might install it on a different machine that the AOS, like a web server for example. In this case, you have to install the following on the workflow server to get your workflow works:
- IIS
- .NET Business Connector
- Create a new website on IIS (do not use the same of WSS or EP websites, it is recommended not to use an existing website even)
- Workflow
Before going into step number “4″, you have to configure the “System service accounts” in: Dynamics AX –> Administration –> Setup –> Secuity. Fill these fields like the following:
- Busienss Connector Proxy: create a domain account and assign it here, this user doesn’t have to be a Dynamics AX user.
- Workflow System Account: Select a user like the Administrator from the drop down list
- Workflow Execution Account: like the previous step
Now you should be able to go through the step “4″, and install the Workflow component.
After installation, go to Dynamics AX –> Administration –> Setup –>Workflow insfrastructure configuration wizard. If you are getting an error after installing Dynamics AX Workflow: “401 Unauthorized”, then insure that you go through the following:
- AOS Service is running under an active domain user (domainusername)
- Workflow website and workflow application pool are having the same .NET Business Connector user name Identity (and of course, this should be an active domain user)
- You added the workflow website (http://servername:portnumber/DynamicsAXWorkflow50 for example) to the trusted sites in Internet Options of AOS server
- Run the following on the Workflow server:
- �
- Start a command prompt.
- Locate and then change to the directory that contains the Adsutil.vbs file. By default, this directory is C:InetpubAdminscripts.
- Type the following command, and then press ENTER:
cscript adsutil.vbs set w3svc/NTAuthenticationProviders “NTLM”
- �
- To verify that the NtAuthenticationProviders metabase property is set to NTLM, type the following command, and then press ENTER:
cscript adsutil.vbs get w3svc/NTAuthenticationProviders
The following text should be returned:
NTAuthenticationProviders : (STRING) "NTLM"
By this, workflow infrastructure configuration wizard should work fine now.
8 Comments to “Workflow Configuration Error: “401 Unauthorized””
Post comment
Search the site
Dynamics AX 2012 Event
Recent Posts
- Enterprise Portal is Not Working on Dynamics AX 2012 Hyper-V Image
- Dynamics Academy – An Academic Project for Microsoft Dynamics in Saudi Arabia
- Microsoft Dynamics AX 2012 Event in Khubar
- Knowledge Bridge
- Columbus IT
- Fawzi Al-Nahdi and Partners Holding Group
- Dynamics AX 2009 Shows One Line Only in Its Grids
- Talal Abu-Ghazaleh
Tags
Archives
- December 2011 (2)
- November 2011 (3)
- July 2011 (2)
- June 2011 (4)
- May 2011 (3)
- April 2011 (4)
- March 2011 (12)
- February 2011 (2)
- January 2011 (3)
- December 2010 (1)
- November 2010 (1)
- October 2010 (5)
- August 2010 (1)
- July 2010 (3)
- June 2010 (4)
- May 2010 (5)
- April 2010 (1)
- March 2010 (9)
- February 2010 (4)
- January 2010 (4)
- December 2009 (11)
- September 2009 (1)
- August 2009 (1)
- July 2009 (2)
- September 2008 (1)
Random Testimonial
- ~ Shibu Purushothaman, Sr. Programmer at WorleyParsons
"Working with Amer was a pleasure. He is a true professional with in depth knowledge of Dynamics AX, .Net and other Microsoft Technologies.
His professional approach to design, implementation and training made our migration to Axapta easy, and with very little down time.
Another quality that I think deserves a special mention is that working with him is a pleasure, not even once did we feel uncomfortable with Axapta even though we were from a .net platform. He took time to attend to our doubts, and made the transition from .net to Axapta a very smooth ride.
I highly recommend Amer and cant wait to work with him again." - Read more testimonials »
What's the little bird saying?
- @salman_alodah لا و الله يا دكتور، لستم مملكة الانسانية 1 week ago
- Lonely and bored in #Doha #Qatar 2 weeks ago
- At the #Microsoft #opendoor in #doha 2 weeks ago
- More updates...
Posting tweet...
Powered by Twitter Tools

February 10, 2010 in
May 18, 2010 at 2:49 pm
Hi Amer, thanks for this great article! Just to add one more checking to the list that I found in my case.
You need to ensure that the AOS Service account has the permission to access the Workflow website. By default the system will grant the access automatically when Workflow is installed. In my case I have changed to use a domain account instead of NETWORK SERVICE for my AOS Service account, since then I encountered this “401 Unauthorized” error. Adding the AOS Service account to have access to the Workflow webiste solved my problem. The default path for adding the permission is C:Program FilesMicrosoft Dynamics AX50Workflow.
May 18, 2010 at 5:51 pm
Hi Wai
.
Many thanks for your comment! This is totally right.
Normally what I do is that I assign the .NET Busness Connector user (which is a domain user of course) to Dynamics AX AOS windows service.. by this you would have this permission by defualt
Thanks again Wai!
July 6, 2010 at 1:30 pm
Hi All,
I want to set up Workflow for GL journal with 2 step ( 1 person create Trans, 1 approve). Can you guide me how to do step by step?
Thank you very much
July 6, 2010 at 2:41 pm
Hi Rabia,
Thank you for passing by
.
Well, yes you could configure a GL workflow.. it is already there so you don’t have even to develop a new one. What you have to do:
go to GL –> Set –> Workflow Configurations
and then create a new configuration for the LedgerDailyTemplate workflow template. It is already one-step approval: Submit –> Approve.
July 7, 2010 at 11:41 am
Hi Amer,
Thank you very much for your quickly reply. However i have done that function but there is no thing happen in GL journal. Can you take some capture your set up and GL journal then send to me by email?
My email address is rabiakhan1982@gmail.com.
I hope you dont mind about this. Thanks again.
Rabia
July 7, 2010 at 1:07 pm
Hi Rabia,
You must insure of the following:
1. Configure the right template
2. Set the workflow version as Active
2. set the workflow configuration as Default
If you insured of the previous steps, and you still unable to run the workflow.. then the AX workflow components must not be installed correctly.
In that case, I suggest that you go and do exactly the same steps on the Microsoft Dynamics AX VPC from Microsoft…
Hope this will help
.
Here is my email id in case you needed:
amer@amer-ax.com, you could also add me to your GTalk if you’re using it: amer.adnan@gmail.com
July 7, 2010 at 1:52 pm
Hi Amer,
Because i attach some capture what i do so i had sent to your email address amer.adnan@gmail.com please check your mail box. Thanks
Rabia
July 9, 2010 at 1:49 pm
Hi Amer,
I dont know why when i import from excel file Item master data and warehouse; Location; site. Warehouse and Site are ok but location and item code only save in table (i check AOT ) but didn’t display on form. What thing i miss in my excel file? please help me.
Thanks
Rabia