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

Announcements

No record found.

News and Announcements icon
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
    239,364 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
    239,364 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
    239,364 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans