Notifications
Announcements
No record found.
Hi Experts,
We have couple of batch job running under the service account which is having System administrator role. These batch jobs were running from long time without issues. But recently we are start facing this error for most of the batch jobs. If we clear the cache for the service account then all batch job works normally. But on the next recurrence same issue.
I have gone through few blogs, They are suggesting to create code permission for service class method to invoke. is this required for system admin role ?.. Will appreciate your inputs.
Thanks in Advance
Guru
is anyone can suggest some solution ? we tried code permission for the menu item still same issue.
Hi Guru,
For the system administrator role, you don't need the code permissions. Is this happening for all batch jobs run by this admin user? Are some batch jobs still running correctly?
Do you have multiple partitions in this environment or just one?
What exact steps do you perform when you mention to clear the cache for the service account?
Hi Andre,
We had tried creating batch job with other admin user well but same issue persist. and we observed one thing, we have 2 batch servers, Among those one of batch server we face this issue. If we remove that server from batch group then batch jobs start execute smoothly. Not sure how this batch server linked to access denied issue.
We have single partition and about clearing the cache, we clear the usage data from that service account user.
Regards
If it is working on one batch server and not the other, then the CIL build on both AOS machines might be out of sync. You can drain all users from the AOS which is having the issue. Then stop the AOS service. Delete the xppIL folder from the application directory and start the AOS servivce again. It will then recreate the xppIL information from the model store.
We got exactly the same issue in our AX2012 PROD. We have 6 AOSs and two batch servers. The batch job only gives access denied error on batch servers but runs fine on any other AOSs. The business account has admin rights and batch job will give the same error on any other admin account as well.
I stopped all AOSs including batch servers - deleted the XPPIL folder and its files from batch servers, generated a full CIL on non batch AOSes, when brought up all AOSes and batch servers it didnt create files in batch servers XPPIL folder. What am i missing ? should i generate CIL right on Batch server AOS ?
Hi Taimoor,
Creating the CIL should be done only once for the application as it will store all details in the model database. When the XPPIL folder is not recreated, have you checked it the CIL was created correctly or are there possibly some x++ compilation issues?
It could also be related to an access issue or potentially blocks from anti-virus software.
Hi Guruprasanna, How did you resolve this issue. We are facing exactly the same issue.
Hi Andre, We got exactly the same issue with our batch servers. I am able to drain the users, delete XPPIL folder and recreate it when restart AOS. CIL gets synched on batch servers but still get this issue. Any suggestion pls ?
Hi Hussain,
As Andre mentioned, issue with our one of the AOS server is with outdated CIL. After our deployment team did regenerated XPPIL we didn't faced this issue again.
Thanks
Hi THussain,
If the solution for recreating the CIL is not helping, check if the x++ compilation and CIL build are successful and free of errors. If you keep having this issue, please create a new question on the forum and provide additional information about what is not working and what is still working.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 664 Most Valuable Professional
André Arnaud de Cal... 522 Super User 2025 Season 2
Sohaib Cheema 303 User Group Leader