While setting fulfilment to the cart line whenever there is one product in the cart, getting the below error even I had selected all required fulfilment options in Fulfillment Configuration for the respective site in Commerce Control Panel and triggered Ensure\Sync default content path, synced content item or sync content path API from the postman and cleared cache multiple times.
Error: Fulfillment 'B146622D-DC86-48A3-B72A-05EE8FFD187A' is not a fulfillment permitted for cart '{a6ed1d70-d982-4abe-b913-2a89c1587eeb}'.
After investigating found out that, inside the ValidateCartLinesFulfillment
block ISetCartLinesFulfillmentPipeline
pipeline there is an if condition that checks cart line count is equals one and then added the above error message.
Below is the screenshot of the code from the ValidateCartLinesFulfillment
block.
What does this code block is meant for?