Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Planning Optimization Error

(1) ShareShare
ReportReport
Posted on by 128
We upgraded from AX2012 last year and are just now switching from Master Planning to Planning Optimization.  For each of our Resource Groups, we receive the error message:
Contract: ProductionResourceCalendarContract, id: 5637195576. Resource 220-1240 was not found.
 
The number reference is a Resource Group, not a resource.  I can resolve the error by removing the Current Calendar from the Resource Group, but I believe that it needs to be there.  Once I restore the Calendar entry to the Resource Group, the error returns. The resource and the resource group use the same calendar and it has working times scheduled until 2027.
 
Does anyone have any information about what we have incorrect?
 
LJ
  • Guy Terry Profile Picture
    28,751 Super User 2025 Season 1 on at
    Planning Optimization Error
    Is it still with 'first line', or have you managed to get it escalated to the product team?
     
    Don't stand for poor support. You're paying for it and its not good enough and its a story I hear all to often.
     
    If its been over a month and you've been prompt on your side I would consider asking for it to be escalated.
  • lispyj Profile Picture
    128 on at
    Planning Optimization Error
    Guy, I logged the error with Microsoft Support a month ago and have been receiving string me along messages ever since, but no answers.
     
    I am not exactly sure what corrupt data in WrkCtrResourceCalendar would be.  I remove the records from that table and the error goes away.  I add a new calendar entry to the resource group, the table records are created and the errors return. 
     
    Thanks for the response!
  • Guy Terry Profile Picture
    28,751 Super User 2025 Season 1 on at
    Planning Optimization Error
    Hi lispyj
     
    I can see a response from the product team, in relation to this error message, was to use the TableBrowser and check for corrupt data in WrkCtrResourceCalendar or WrkCtrResourceGroupCalendar. But I don't have anything more specific than that. You could log it with Microsoft support for further investigation.
     
    As for removing the Calendar from the Resource Group.... I thought it was needed, but the last time I really tested it was before Planning Optimisation. Perhaps Planning Optimization works differently. However, it should be possible to have a Calendar on the Resource Group and not get an error.
     
     
  • lispyj Profile Picture
    128 on at
    Planning Optimization Error
    I am still struggling through this one.  I have found Resource Groups that have a Calendar without working times don't throw this error.  We have a few obsolete and specialty Resource Group/Calendar combinations that aren't currently being used, so don't have working times. These resource groups don't throw the error.
     
    Here is a question: If Operations Scheduling is not used, can the Resource Group calendars be safely removed?
     
    Thanks,
     
    LJ
  • lispyj Profile Picture
    128 on at
    Planning Optimization Error
    The ID referenced is a record in the WrkCtrResourceCalendar table.  There is a WrkCtrResourceGroupCalendar table, so I thought perhaps the Resource Group records throwing this error were left over from AX2012.  I deleted them and relinked a resource group to the calendar hoping to cure the issue.  The group was readded to the resource calendar table and the error in planning returned.
     
    Thank you for your assistance!
     
    LJ
  • lispyj Profile Picture
    128 on at
    Planning Optimization Error
  • André Arnaud de Calavon Profile Picture
    295,304 Super User 2025 Season 1 on at
    Planning Optimization Error
    Hi LJ,
     
     
    Can you share a screenshot with the error message?

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Zain Mehmood Profile Picture

Zain Mehmood 462 Moderator

#2
Danny Bilodeau Profile Picture

Danny Bilodeau 156 Moderator

#3
Laurens vd Tang Profile Picture

Laurens vd Tang 120 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans