Microsoft Dynamics AX Support

This blog contains posts by the Microsoft Dynamics AX Support Teams Worldwide

Dynamics 365 for Operations – Document Routing Agent error “Key not valid for use in specific state”

If you change the login for the document routing agent, you may experience the following error: “Key not valid for use in specific state”

keynotvalidforuseinspecificstate

If you do, then try the following steps to resolve the issue:

  1. Stop the Windows service “Microsoft Dynamics 365 for Operations – Document Routing Service”
  2. Open File Explorer, and go to C:\ProgramData\Microsoft
  3. Rename the folder “Microsoft Dynamics 365 for Operations – Document Routing” to “Microsoft Dynamics 365 for Operations – Document Routing – Old”
  4. Start the Document Routing Agent client application again. You may notice that it triggers part of the setup again to reinstall missing parts, this is ok.
  5. Re-enter in the site and domain parameters again, and login again.
  6. Start again the service “Microsoft Dynamics 365 for Operations – Document Routing Service”