variable name providedProductId looks like a singular product id, but it not.  It's a list, so a better variable name is providedProductIds or providedProductIdList.