Wednesday, March 28

AX 7 Recurring Data Job Process - Unauthorized issue while running DIXFSampleSolution

Following error will occur while running Microsoft DIXFSampleSoultion for recurring data job process used for Data Management import/export while connect with Azure Active Directory:

StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:

Solution:
<!-- Server side settings -->   
   
    <add key="Aad Tenant" value="systemsltd.com" />
    <add key="Azure Auth Endpoint" value="https://login.windows.net" />
    <add key="Azure Client Id" value="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" />
    <add key="Rainier Uri" value="https://usnconeboxax1aos.cloud.onebox.dynamics.com" />
    <add key="User" value="ali.azim@systemsltd.com" />
    <add key="Password" value="my_password" />


FIX:
There are two things you need to consider while defining "Rainier Uri"
  1. Keep the entire path in lower case.
  2. Eliminate any trailing slash in the "Rainier Uri" path in the App.config file.   
Incorrect: https://Usnconeboxax1aos.cloud.onebox.dynamics.com/
Correct: https://usnconeboxax1aos.cloud.onebox.dynamics.com
 

1 comment:

Popular Posts