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.
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.
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.
Hi Bilal,
Have you tried with Effective Access level "Delete" On your SubledgerJournalTransferController.
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.
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.
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)
Hi Jay,
My server method have the Effective Access "Invoke".
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.
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.
Please go through below link for better understanding of Access levels.
From where I will set access level.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156