Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Batch Job Status "Error"

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
    Rati Sharabidze 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
    Jay Barot 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
    bilal170795 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
    Jay Barot 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
    ergun sahin 8,812 Super User 2024 Season 1 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
    bilal170795 185 on at
    RE: Batch Job Status "Error"

    Hi Jay,

    My server method have the Effective Access "Invoke".

  • bilal170795 Profile Picture
    bilal170795 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
    ergun sahin 8,812 Super User 2024 Season 1 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
    Jay Barot 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
    bilal170795 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans