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, ...
Suggested Answer

Object reference not set to an instance of an object on SysOperationServiceController class

(0) ShareShare
ReportReport
Posted on by 75

Hello Experts,

I am facing a weird issue on my development environment for past couple of days or noticed it recently. 

We have Product search configuration enabled in D365FO, so when updating the Product name from product translation form and it does async's update the table MCRInventTableIndex as part of the product search process. But recently it throwing an error on the standard class. SysOperationServiceController > Run() on the line Microsoft.Dynamics.Ax.Xpp.TaskSchedulerFactory::AosScheduler.IsThereCapacityForNextTask(null)

I am experiencing this only in my DEV environment and it is working fine in other environments. 

I have tried the below steps so far and running out to options now.

1) Restarted IIS Express, all SQL, Batch and DMF services, 

2) Restarted VM

3) Full build on all modules and individual modules with DB sync.

0334.pastedimage1598020879779v1.png   

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Pradeep,

    Please check if the Batch service ("Microsoft Dynamics 365 Unified Operations: Batch Management Service") is running on the Dev machine.

    Also, please check if batch jobs are being executed successfully.

  • Pradeep Kumar Pachamuthu Profile Picture
    75 on at

    Thanks for your response. The batch service was turned off earlier to gain some performance on my DEV VM.

    Still I have same issue, irrespective of the batch service is stopped/running. Also verified other batch jobs are working fine.  

  • Mav Profile Picture
    on at

    Hi PradeepKumar

    Object reference not set to an instance in d365 is a common error & often due to either db synch or full build issue . Check this link with verified answer.

    Hello Moderator.

    I have few doubts regarding tagging for Ax versions.

    My understanding is that Ax forum is exclusively for 2012 & below versions.

    Using Ax current version means you are on Ax2012 r3 most recent version & Ax2012 tag means you are on r2 or older versions of Ax2012. 

    D365 finance & supply have their own exclusive forums.

    However recently i have noticed multiple posts of d365 coming into Ax forum & also at times i m being advised to use tag of Ax2012 instead of Microsoft Dynamics Ax current version

    Could you please clarify. 

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Pradeep,

    Could you please share a screenshot of the server configuration from System admin > Setup > Server configuration.

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Pradeep,

    Could you please, check the value for key "Aos.UseCustomTaskScheduler" in web.config (K:\AosService\WebRoot)? Does it have value "true"? Have you installed new updates recently or it just stopped working?

  • Pradeep Kumar Pachamuthu Profile Picture
    75 on at

    Thanks for your reply.

    There is a typo on my question, Instead of Models I mentioned it as Modules.

    I have already compiled each models once before I posted my question here.

  • Pradeep Kumar Pachamuthu Profile Picture
    75 on at

    Hi Sergei,

    It just stopped working.

    Yes the webconfig has it as true

    <add key="Aos.UseCustomTaskScheduler" value="true" />

  • Pradeep Kumar Pachamuthu Profile Picture
    75 on at
    [quote user="Gunjan Bhattacharyya"]

    Pradeep,

    Could you please share a screenshot of the server configuration from System admin > Setup > Server configuration.

    [/quote]

    Hi Gunjan,

    Here is the screenshot

    6622.pastedimage1598283341798v1.png

  • Sukrut Parab Profile Picture
    71,710 Moderator on at

    Moved to D365 forum

  • Anup Shah MSFT Profile Picture
    on at

    Do you also have   <setting key="Aos.RunAsyncCpuReservationLimit"> in the web.config? if so what is the value set to?

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 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans