Oy laddies,
We're trying to use the built-in IceCatIntegrationScheduledTaskAddIn in Dynamicweb and we're running into an issue.
We have created a query which returns just over 9000 (hehe) products, and we have the Product portion size to process set to 100 but we always seem to get the same 100 products.
We took a look at the source code for the Scheduled Task, looked into it's parent class: Dynamicweb.Ecommerce.Integration.OpenCatalogIntegrationScheduledTaskBase.cs and saw that when getting the products using the query, the class adds a QuerySetting with Take = ProductPortionSize to the mix:
Am I wrong, but doesn't that mean, that the amount of products returned from the query is equal to the ProductPortionSize, or to be more specific, the first ProductPortionSize'th products in the query?
Meaning that in the Run method, GetProducts will always return the same products and when the task loops through the list and tries to batch the lot into portions, it only runs through the loop a single time, because the amount of products in products is always less than or equal to ProductPortionSize:
Best regards,
Arnór