Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Batch Job Status "Error"

(0) ShareShare
ReportReport
Posted on by 185

I made a batch job using system classes but they have a status "Error" , when i checked the log I am getting the error of Access Denied for the classes. Please Guide me on this. Thanks.

Community-Forum-3.png

  • Rati Sharabidze Profile Picture
    612 on at
    RE: Batch Job Status "Error"

    Hi,

    I think that you have an AOT object used in your class via x++ on which the user does not have access.

    Use find finctionality and search "classstr(" or "menuitemstr(" or some other objectstr to find out.

    put this object into your privilege/role.

  • Suggested answer
    Jay Barot Profile Picture
    1,502 on at
    RE: Batch Job Status "Error"

    Hi Bilal,

    Have you tried with Effective Access level "Delete" On your SubledgerJournalTransferController.

  • bilal170795 Profile Picture
    185 on at
    RE: Batch Job Status "Error"

    Hi Ergun,

    Yes my user has Sys Admin rights, If I would have such issues than my previous 2 batch jobs were not also successfull. But non of the solution helped me, is there any other way than please let me know it.

    Thanks.

  • Suggested answer
    Jay Barot Profile Picture
    1,502 on at
    RE: Batch Job Status "Error"

    Hi Bilal,

    Put it to Delete or give sys admin rights temporary to that user and check. But in General there is should be a separate/specific user with sys admin rights for batch jobs.

  • ergun sahin Profile Picture
    8,816 Moderator on at
    RE: Batch Job Status "Error"

    I think you misunderstood. I'm not saying your user is not authorized to set up a batch job. However, if the user does not have sufficient authorization, it will be stuck with the authorization problem during many transactions (but not all).

    Usually we create a dedicated account only for batch operations, give him sys admin rights and use it to run the batch (like ievgen said). It probably has such a user in your environment.

    So I'm telling you to use this user to create the batch. (If your user has sys admin rights, forget all I wrote)

  • bilal170795 Profile Picture
    185 on at
    RE: Batch Job Status "Error"

    Hi Jay,

    My server method have the Effective Access "Invoke".

  • bilal170795 Profile Picture
    185 on at
    RE: Batch Job Status "Error"

    Hi Ergun,

    If I had a user for the batch jobs then some of my batch jobs shouldn't be working, just to tell that i made five batch jobs 2 of them have status ended while three of them showing status error and for these three batch jobs are showing me Access denied in the log.

  • ergun sahin Profile Picture
    8,816 Moderator on at
    RE: Batch Job Status "Error"

    You probably already have a user for batch jobs. Look at the user who installed the other batch jobs and re-install the batch job with that user.

  • Jay Barot Profile Picture
    1,502 on at
    RE: Batch Job Status "Error"

    Please go through below link for better understanding of Access levels.

    docs.microsoft.com/.../security-privilege-properties

  • bilal170795 Profile Picture
    185 on at
    RE: Batch Job Status "Error"

    From where I will set access level.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,758 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans