You are here:
Troubleshoot the B2C Commerce Integration
If the integration of B2C Commerce with Order Management isn’t working correctly, review these troubleshooting tips.
Required Editions
If the integration isn’t receiving orders from your storefront, check the status of open orders on the Orders Page in Business Manager. Although the references in the B2C Commerce Infocenter documentation refer to the legacy Order Management product, not to Salesforce Order Management, the order status information is relevant to this integration.
If you see order delivery method errors, verify that the Amount field on the method’s associated product record isn’t empty and that it has the value 0.
If your org ID or login URL changes, or you run DBInit on your storefront, the integration can break. In that case, reprovision your integration.
- From Setup, in the Quick Find box, enter B2C, and then select B2C Commerce Connections.
- Next to your connection, click Reprovision.
If you refresh a sandbox org or change the Tenant ID of a B2C Commerce instance, repeat the implementation process. For information on sandbox orgs, see the sandbox topics.
If an order imported from B2C Commerce remains in Sending Pushed status and returns a “GtwyProvPaymentMethodType is not supported” error:
-
Refresh the integration.
- From Setup, in the Quick Find box, enter B2C, and then select B2C Commerce Connections.
- Click Reapply Permissions.
-
Verify that the B2C Service permission set has access to the GtwyProvPaymentMethodType
object.
- From Setup, in the Quick Find box, enter Permission Sets, and then select Permission Sets.
- Select the Order Management B2C Service permission set.
- In the Apps section, click Object Settings.
- Select Gateway Provider Payment Method Types.
- Click Edit.
- In the Object Permissions section, select all checkboxes in the Enabled column.
- Click Save.
- Resubmit the failed orders. If you still get errors, contact Salesforce Customer Support.
If the B2C Commerce integration fails with an error trying to access a Salesforce object, such as Product2, check the organization-wide sharing default settings for that object. The internal setting must be Public Read/Write. For more information, see Organization-Wide Sharing Defaults.
If the Order Management integration with B2C Commerce detects duplicate orders when orders aren’t duplicated, it can be because you’ve connected a new B2C Commerce instance to Order Management. If you have a B2C Commerce instance with a store based on SiteGenesis, the order numbers for that store by default start at 0000001. If you decommission that instance and create the same store based on SiteGenesis on a new instance, order numbers for the new instance by default also start at 0000001. The Order Management integration sees orders from the new instance as duplicates when they’re new orders. To prevent this issue, add a prefix to the order numbers from the new instance. For information about how to add a prefix to order numbers, see Manage Sequence Numbers.

