web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Retail server url - not authorized error

(0) ShareShare
ReportReport
Posted on by

Hi,


I am facing a unique issue after installation of retail server for a fresh installation of R3 CU9.

The retail server url is in the format https://<server-name>:<port>/<RetailServer>/v1/$metadata. When i browse this I get the below error on the browser in XML format.

=======================================================================

<m:error><m:code>Microsoft.Dynamics.Commerce.Runtime.UserAuthorizationException</m:code><m:message xml:lang="en-US"><?xml version="1.0" encoding="utf-8"?>

<d:root xmlns:d="schemas.microsoft.com/.../dataservices" xmlns:m="schemas.microsoft.com/.../metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml" m:type="Microsoft.Dynamics.Commerce.Runtime.UserAuthorizationException">

  <d:Message>User is not authorized.</d:Message>

  <d:ErrorResourceId>Microsoft_Dynamics_Commerce_Runtime_AuthorizationFailed</d:ErrorResourceId>

  <d:HelpLink m:null="true" />


  <d:Source>Microsoft.Dynamics.Retail.RetailServerLibrary</d:Source>

</d:root></m:message></m:error>

======================================================================

 

I am also unable to activate my mPOS device which I suspect is due to this issue.

The windows firewall is switched off, http & https ports used are unique, tried with both http and https but same issue.

Channel profile "Retail server URL" contains same URL as above. Channel database and worker are also set. The worker has the "Activate" permission on Retail.

Can anyone please help?

Thanks,

Santosh

Email: sannii007@gmail.com

 

*This post is locked for comments

I have the same question (0)
  • sumit0417 Profile Picture
    2,890 on at

    Hi Santosh,

    Do let me know if you are able to successfully activate the MPOS. Also can you check if you are able to configure MPOS from Database utility. It is giving me error that the MPOS is not installed.

    You can connect me on my skype sumit0417

  • Community Member Profile Picture
    on at

    Hi Sumit,

    I am still unable to activate the mpos. Still have the issue in browsing the retail server url, as mentioned above.

    Anyone any help please?

    Thanks,

    Santosh

    Email: sannii007@gmail.com

  • Verified answer
    Community Member Profile Picture
    on at

    This got resolved by allowing anonymous login in web.config file for retail server.

  • Community Member Profile Picture
    on at

    I am using AX 2012 R3 CU 9.

    I have installed Retail Modern POS and activated register HOUSTON-3 successfully.

    When I try to run Retail Modern POS app, I got error "Application Error".

    In event viewer,no show any error

    I have make sure to fill screen layout ID and visual profile.

    I am using user that has role "Retail Operation Manager" and make sure this user is a member of POSUsers.

    How to solve this issue? Please help.

  • Suggested answer
    Pontus Ek Profile Picture
    70 on at

    I changed the value RetailServerAllowAnonymousMetadata to "true" from "false" in the Retail Server\Tools\rs-settings.xml file and redployed the retail server as per https://technet.microsoft.com/en-au/library/dn741428.aspx

  • Community Member Profile Picture
    on at

    Hi Santosh,

    I am facing similar issue. Can you please tell me exact key which you added?

  • Suggested answer
    Hassan_rulz Profile Picture
    3,801 on at

    Hi VKJ,

    You have to enable "Anonymous authentication" in web.config file of Retail server and then restart IIS.

    Regards,

    Hassan

  • Community Member Profile Picture
    on at

    customerManager , as below

    ICustomerManager customerManager = managerFactory.GetManager();

    PagedResult customers = customerManager.ReadAll(new QueryResultSettings { Paging = new PagingInfo { Skip = 0, Top = 100 } }).GetAwaiter().GetResult();

    I get following exception

    Exception of type 'Microsoft.Dynamics.Commerce.RetailProxy.UserAuthorizationException' was thrown.The user is not authorized to perform this operation.

    I do not get any error while fetching categories etc. Any idea why this error is coming?

  • Community Member Profile Picture
    on at

    Hi Hassan,

    Thanks for your reply.

    when i try to  execute method ReadAll of customerManager , as below

    ICustomerManager customerManager = managerFactory.GetManager();

    PagedResult customers = customerManager.ReadAll(new QueryResultSettings { Paging = new PagingInfo { Skip = 0, Top = 100 } }).GetAwaiter().GetResult();

    I get following exception

    Exception of type 'Microsoft.Dynamics.Commerce.RetailProxy.UserAuthorizationException' was thrown.The user is not authorized to perform this operation.

    I do not get any error while fetching categories etc. Any idea why this error is coming?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dekion Profile Picture

dekion 4

#2
Virginia99 Profile Picture

Virginia99 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans