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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Data Management Enqueue Dequeue Throwing error

(0) ShareShare
ReportReport
Posted on by 690

Hi,

I have an export job setup in my AX (Single dev box on Azure). The job is running every 10 minutes. I am trying to download the zip file after the job is run from a client C# application. For that I am tring to use this url :

<Base AX Url>/api/connector/dequeuer/<ActivityId>

I have a native application registered in my Azure and I am able to get the authorization header. But when I pass this Url to get the response it throws me error. I converted the received stream to string and it shows me error :

Application 1280a2ec-dd51-440c-xdft-bvcjbvc does not have access to Activity 312341vfv-f93d-43dc-vfvfvc7-bdb6d7193d53

I am unable to understand why this error. The login I am passing is a "System Administrator" in AX. Also If I try this url :

<Base AX Url>/api/services

This gives me the list of Services in JSON format.

Unable to understand why this is happening. I am on Update 8

- Girija

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,970 Most Valuable Professional on at

    It should be /api/connector/dequeue instead of /api/connector/dequeuer.

  • Girija Shankar Beuria Profile Picture
    690 on at

    Hi Martin,

    My Bad . It was a Typo.  I am using : <Base AX Url>/api/connector/dequeue/<ActivityId>

  • Martin Dráb Profile Picture
    237,970 Most Valuable Professional on at

    It's not enough to register an application in AAD. Have you also granted permissions to APIs of Microsoft Dynamics ERP?

  • Girija Shankar Beuria Profile Picture
    690 on at

    Hi Martin,

    Yes I have done that. I have mentioned that the api/services uri is working fine. Entities CRUD operations on OData is also working fine with the same application. If the permissions were not there these would not have worked.

  • Verified answer
    Martin Dráb Profile Picture
    237,970 Most Valuable Professional on at

    That's not precise. That you can call custom services only proves that you've granted permissions for custom services; it doesn't say anything about other kinds of services.

    Did you set the same application ID for your recurring job (on Setup authorization policy tab)?

  • Girija Shankar Beuria Profile Picture
    690 on at

    Hi Martin,

    The id specified in that was wrong in the Setup Authoprization policy tab.

    Thanks for pointing that out.

    - Girija

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans