Blog

Microsoft Dynamics AX Thoughts

8

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:

  1. IIS
  2. .NET Business Connector
  3. 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)
  4. 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:

  1. AOS Service is running under an active domain user (domainusername)
  2. 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)
  3. You added the workflow website (http://servername:portnumber/DynamicsAXWorkflow50 for example) to the trusted sites in Internet Options of AOS server
  4. 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””

  • 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.

  • 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!

  • 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

  • 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.

  • 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

  • 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

  • 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

  • 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

Post comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Dynamics AX 2012 Event

Recent Posts

Tags

Archives

Random Testimonial

  • ~ Shibu Purushothaman, Sr. Programmer at WorleyParsons

    0bd63bf"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 »

Posting tweet...

Powered by Twitter Tools