Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

Access denied service controller in AX 2012 R3

Posted on by 1,048

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

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,989 Super User on at
    RE: Access denied service controller in AX 2012 R3

    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.

  • Guruprasanna Profile Picture
    Guruprasanna 1,048 on at
    RE: Access denied service controller in AX 2012 R3

    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

  • THussain Profile Picture
    THussain 25 on at
    RE: Access denied service controller in AX 2012 R3

    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 ?

  • THussain Profile Picture
    THussain 25 on at
    RE: Access denied service controller in AX 2012 R3

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

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,989 Super User on at
    RE: Access denied service controller in AX 2012 R3

    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.

  • Taimoor Profile Picture
    Taimoor 70 on at
    RE: Access denied service controller in AX 2012 R3

    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 ?

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,989 Super User on at
    RE: Access denied service controller in AX 2012 R3

    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.

  • Guruprasanna Profile Picture
    Guruprasanna 1,048 on at
    RE: Access denied service controller in AX 2012 R3

    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

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,989 Super User on at
    RE: Access denied service controller in AX 2012 R3

    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
    Guruprasanna 1,048 on at
    RE: Access denied service controller in AX 2012 R3

    Hi Experts,

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

    Thanks in Advance

    Guru

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,989 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans