Tuesday, March 13, 2018

Sitecore Experience Commerce - Error: PopulateItemAvailabilityBlock.AllocationNull

When creating a minion that handled data sync into Sitecore Experience Commerce, the following error occurred when using the IAssociateSellableItemToCatalog pipeline to associate a sellable item with a given category (inside a catalog).
ERROR PopulateItemAvailabilityBlock.AllocationNull.CatalogName|ProductId|
From what I could see, the cause of this error was attempting to add a sellable item to a catalog when no pricing/inventory information is available for it. Doing one of the following to/for the product before attempting to associate with a catalog should fix the error:

  1. Tag the sellable item and a price card with the same tag - worked for me
  2. Add a list price to the sellable item
Let me know in the comments down below, if either of these don't solve your issue. Also ensure that the entity has been updated correctly after making changes (IPersistEntityPipeline pipeline can help with this).

No comments:

Post a Comment