In case if you are using retail hierarchies, on Released product creation, values would be initialized by selected retail hierarchy. And if you have setup configuration on retail hierarchy so that it should initialize Reservation hierarchy, at time pf product creation; you may face an error at this point while you are going to create a released product. The error message can be as under.
The settings for the reservation hierarchy do not match the settings for the dimension groups that are assigned to the item. Make sure that the inventory dimensions for the reservation hierarchy are physically tracked for the dimension groups.
Error as an image:
Reason and Solution:
AX is trying to save/update reservation hierarchy in WHSReservationHierarchyItem(Table) without creation of a record in WHSReservationHierarchyItem. As buffer of WHSReservationHierarchyItem is null so a value for reservation hierarchy cannot be updated at moment when AX is trying to update its value.
Solution:
Write code to initialize and save record of WHSReservationHierarchyItem just after the InventTable record is updated. You can do this inside saveInventTableAndRelated (method) of RetailProductPropertyManager (Class), just after execution of inventTable.update();

Like
Report
*This post is locked for comments