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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Access denied service controller in AX 2012 R3

(2) ShareShare
ReportReport
Posted on by 1,078

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.

ServiceControllerError.png

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

I have the same question (0)
  • Guruprasanna Profile Picture
    1,078 on at

    Hi Experts,

    is anyone can suggest some solution ? we tried code permission for the menu item still same issue.

    Thanks in Advance

    Guru

  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    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?

  • Guruprasanna Profile Picture
    1,078 on at

    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

    Guru

  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi Guru,

    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.

  • Taimoor Profile Picture
    70 on at

    Hi Andre,

    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 ?

  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    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.

  • THussain Profile Picture
    25 on at

    Hi Guruprasanna, How did you resolve this issue. We are facing exactly the same issue.

  • THussain Profile Picture
    25 on at

    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 ?

  • Guruprasanna Profile Picture
    1,078 on at

    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

    Guru

  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans