Fix customers or products that won't sync
SparkLayer keeps a copy of your products, and of customers tagged b2b, from your store. A product or customer that doesn't sync can't get B2B prices. The fix is almost always in your store: a missing SKU, a draft product or an incomplete address. See How sync works.
Before you start
- The product's SKU, or the customer's email, for anything you know is missing.
- Access to edit products and customers in your store admin.
Fix products
Check product sync
Go to Pricing,Products (opens in your SparkLayer Dashboard in a new tab). When everything is working, the alert at the top reads Products sync completed, with "Your products synced to SparkLayer with no errors." See Check your products are syncing.
Look up the missing product
In the search box on Products, search by name, SKU, barcode or ID. If it isn't in the results, SparkLayer doesn't have it. See Look up a product's data.
If the alert reads Products sync completed with 3 errors, for example, the rest of your products still sync, but click Show errors and fix them:
| Error message | Fix |
|---|---|
| Please check the variants have a valid/existing SKU assigned | The product, or one of its variants, has no SKU. Add one in the product's Inventory section. SparkLayer only imports products with a SKU on every variant. |
| Please ensure the variant slug is unique or Please ensure the variant SKU is unique | Search your store for the SKU and rename any duplicate. This applies across separate products too, such as a retail and a wholesale copy of an item: a product with one variant still has a variant SKU. If you recently deleted the product and added it again, or moved the SKU from another product, SparkLayer may still have the old record: contact support and we'll remove it. |
| Metafield(s) configurations appear to be invalid (rrp) | The variant's rrp field must hold a price and currency, such as [{"value":15.99,"currency_code":"usd"}], not just a number. See Show RRP. |
| 500 Server Error: "The server encountered an error and could not complete your request" | A temporary problem on our side, not in your product data. Wait a few minutes. If it's still there, contact support: a full sync clears it. |
| Internal Error - this has been raised with our developers | A general error, for a problem SparkLayer doesn't have a message for. Save the product again in your store to send it to SparkLayer, then check it again. If the error stays, contact support with the product's ID. |
Fix the product in your store
Shopify only
In your Shopify admin, check the product:
- Has a unique SKU on every variant, in the Inventory section
- Is Active, not Draft
- Is included in the SparkLayer Wholesale sales channel
See "Do my products need SKUs?" in Shopify FAQs.
BigCommerce, Wix, WooCommerce, Magento only
In your platform's admin, check the product has a unique SKU on every variant and is active. See your platform's guide in Platforms.
Then save the product again, for example by making a small change and changing it back. On Shopify, SparkLayer syncs it straight away. If the error is still there, see when to ask us for a full product sync.
Fix customers
Check customer sync
Go to Companies,Customers (opens in your SparkLayer Dashboard in a new tab). If some customers didn't sync, a banner such as Customers sync completed with 3 errors shows at the top. Click Show errors to see each customer and the problem. See Fix customer sync errors. Take the 1-minute tour.
Fix each customer in your store
Shopify only
Click a customer's name in the error list to open them in Shopify, and fix each record:
| Error message | Fix |
|---|---|
| Address - The country assigned is invalid, Address - city is missing and is a required field or Address - address first line is missing and is a required field | Add the missing country, city or first line. This applies to every address in the customer's address book, including second and older addresses: an incomplete second address causes an error even when the default is complete. Complete it or delete it. |
| The customer must have a first name or The customer must have a last name | Add the customer's first and last name. |
| This customer's group doesn't match a customer group in SparkLayer. | The customer has a tag, such as b2b-tier-1, that doesn't match any group at Companies,Customer groups (opens in your SparkLayer Dashboard in a new tab), for example because the group was deleted. Fix the tag, or create the group. |
| Address doesn't sync, with no error | Check the address for unusual characters, such as a long dash (―), in the first line, and replace them with plain text. |
| Not in the list at all | Add the b2b tag. Only customers tagged b2b sync. |
If a customer still won't sync, check whether their email address changed recently. It shouldn't cause problems, but it sometimes affects syncing.
Customers with a sales rep groups metafield
The sales rep groups metafield (sparklayer.sales_agent_groups) decides which sales reps can see a customer. If customers with it don't sync, check the metafield's definition in Settings,Metafields and metaobjects (opens in your Shopify admin in a new tab) is set to Limit to preset choices. See Set up the sales rep groups metafield.
BigCommerce, Wix, WooCommerce, Magento only
Fix each customer in your platform's admin. Check they're marked as B2B for your platform and have a complete address. On Wix, they must also be a Site Member. See Assign customers to a customer group.
Check the customer synced
On Shopify, a fixed customer syncs as soon as you save them. You don't need to start a sync yourself. If a customer still hasn't synced after you've fixed them, contact support.
Check it worked
- The product sync alert shows Products sync completed with no errors, and searching on Products finds the product.
- The customer appears at Companies,Customers (opens in your SparkLayer Dashboard in a new tab), with the right customer group in the Group column.
- The customer signs in and sees B2B prices on the product.
If something's not right
- Searching on Products doesn't find the product. See Troubleshooting.
- A customer isn't in the Customers list. See A customer isn't in the Customers list.
- You can't choose a pricing source for an automatic price list. SparkLayer can't find SKUs on your store. See You can't choose a source for an automatic price list.
- The customer synced but sees no B2B prices. See Customers can't see B2B prices.
Next steps
Last updated