Error in Dynamics AX Master Scheduling: Mandatory Coverage Dimension Warehouse Not Specified

by | May 8, 2017 | Development, Dynamics AX

Recently, one of our clients was encountering the following error when running Master Scheduling in Dynamics AX:

Mandatory coverage dimension Warehouse not specified

Cannot create a record in Planned order (ReqPO). The corresponding AOS validation failed.

Since I spent a significant amount of time debugging this issue, I thought my findings could be useful to someone else.

Both Site and Warehouse were set up as mandatory dimensions. Item coverage was defined for the items in question with Site and Warehouse as coverage dimensions.

The error was being thrown on the BOM Components at the point where a Planned Purchase Order was being created for the component. The error was thrown in this method:

MasterScheduling_LauraLake1

 

Backtracking from here using Debugger, I found that throughout most of the scheduling process, the Coverage dimension (CovInventDimId) had the right value, which was the inventDimId having both Site and Warehouse – _101-M_

Yet at some point, the value was being updated to an InventDimId having Site only. The difficulty was tracking down when/where this happened.

MasterScheduling_LauraLake2

Long story short, I found the following code. reqTransDerived is the cache for the reqTrans created for the BOM components being purchased. If it does not find an Input Warehouse for the Resource Group, the reqTransDerived.CovInventDimId is updated to the wrong value (site only inventdimid), resulting in a Planned PO missing the mandatory warehouse dimension.

To fix this error, specify an Input Warehouse for the Resource Group.

MasterScheduling_LauraLake3

Note: The client reported that this error seemed to occur randomly. While I can’t be sure, I suspect it occurs only when there is no on-hand quantity for a BOM component with a default order type of Purchased, meaning that a Planned PO is created.

It should also be noted that the Resource Consumption field was checked on the components in this case, because for this client the BOM’s are not site-specific and can, therefore, be used at any site. If this field is not checked, the picking warehouse can be specified in the Warehouse field on the line or AX will use the picking warehouse from the item master data as documented in this TechNet article on BOM Versions and Lines in AX2012.

1 Comment

  1. Franco Merea

    Thanks a lot for this little tutorial! We’re trying to implement AX in the company I work (in Peru) and we were getting this error!

Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events

february

27feb11:00 am12:00 pmConfab With Stoneridge - Livestream - Cool Features in Dynamics 365 Business Central

march

04mar12:00 pm12:30 pmPower BI & Reporting with Dynamics 365 Customer Engagement

04mar2:00 pm3:00 pmHow to Incorporate the Power Platform with Dynamics 365 Finance and Supply Chain Management

12mar11:00 am12:00 pmConfab With Stoneridge - Livestream - Power Apps AI Builder

18mar12:00 pm1:00 pmMoving from CRM On Prem to the Cloud – Is it worth It?

18mar2:00 pm3:00 pmThe Past, Present, and Future of Dynamics 365 with Machine Learning and Artificial Intelligence

25mar2:00 pm3:00 pmAchieve Total Data Access & Future-Proof Your Reporting

26mar11:00 am12:00 pmConfab With Stoneridge - Livestream - Portals

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X