Following on from the discovery of this issue and the workaround of deleting the blank item from InventTable, the blank item kept reappearing in the database and it was decided to modify the Master Planning code to discard items with a blank ItemId.
This was done by making a simple change to the createListsFromQueryRunmethod of the ReqTransCache_Periodic class which builds the item lists used by master planning.
while (runQuery.next())
{
inventTable = runQuery.get(tablenum(InventTable));
// Discard any items with a blank ItemId
if (inventTable.ItemId == "")
{
continue;
}
if (!levelItemMap.exists(inventTable.bomLevel))
{
itemSet = new Set(Types::String);
levelItemMap.insert(inventTable.bomLevel, itemSet);
}
else
itemSet = levelItemMap.lookup(inventTable.bomLevel);
itemSet.add(inventTable.ItemId);
}
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.