Skip to content
Bug Barometer

ConnectApi.CommerceCart.getCartItems throws an exception for WebCart records that have not been created and modified before Spring '24.

Salesforce says this works as designed.

Summary

ConnectApi.CommerceCart.getCartItems throws an exception for WebCart records that have not been created and modified before Spring '24.


This issue affects WebCart records where the TotalProductLineItemCount is blank, and either TotalProductCount or UniqueProductCount is greater than zero. These records are impacted because they haven't been created and modified since Sprint '24.


The field TotalProductLineItemCount has been introduced in Spring '24 (V60)

  • https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_webcart.htm

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Working as Expected

    Nov 30, 2026

Also open in B2B Commerce