Docs navigation
Home / Docs / Common issues

Common issues

What you are seeing, why it happens, and what to do — for imports, stock and sync, API keys, rate limits, webhooks, and undoing a mistake.

Start with what you are seeing. Each entry says why it happens and what to do about it.

Imports

The import finished but the SKUs tab is empty

This is almost always column mapping. If Supplier SKU is not mapped to the column holding the supplier’s part numbers, the run completes with nothing to show, and Foundry sends an “Import matched 0 rows” notification.

  1. Open the source and click the Import tab.
  2. In Column Mapping, check Supplier SKU first, then Price, Cost and Quantity.
  3. Click Preview Changes. It tells you how many rows will be created and updated before anything is saved.

Rows imported but nothing is in Products

This is how Foundry is meant to work. An import fills the supplier’s list on the source’s SKUs tab, where each row reads Unlinked. Nothing becomes a product until you tick rows and click Promote to Products. See Quick start, step 4.

The file was rejected

Foundry reads CSV, TSV, Excel (.xlsx, .xls) and Apple Numbers files. For a Google Sheet, Foundry reads the sheet’s published CSV link, so a sheet that is shared but not published to the web cannot be read, whatever its sharing settings.

Some rows were skipped as duplicates

When a file lists the same supplier SKU more than once, Foundry keeps the first row and skips the rest, reporting “duplicate channelSku in this batch” for each. SKUs are compared ignoring capitals and leading or trailing spaces, so AB-100 and ab-100 are the same SKU. Fix the file if the wrong row won.

A scheduled feed stopped bringing in new data

Foundry never switches a schedule off by itself, so the feed is still trying. Work out which half is failing:

  • The file is fetched but the import fails. You get an “Import failed” notification in the app, and the source’s Overview tab shows the error under Recent Imports.
  • The file cannot be fetched at all (a changed password, a moved file, a server that is down). Nothing appears under Recent Imports and there is no notification. The sign is a Last Run time that has stopped moving, on the feed’s settings page under the source’s Import menu. Check the credentials and the file path there, then run the feed by hand.
  • The file has not changed. A scheduled feed skips the import when the supplier’s file has the same modification time as last run. That is normal.

Hourly feeds run at quarter past the hour. Daily and weekly feeds run just after midnight UTC.

The supplier says the SFTP upload worked, but nothing imported

For a Foundry-hosted SFTP feed, check these in order:

  1. Give it five minutes. Foundry collects uploaded files about every 5 minutes. Check now on the feed’s page collects them immediately.
  2. Is the file a .csv? Hosted SFTP imports CSV files only. Anything else is rejected with a notification, “only .csv files can be imported”.
  3. Does the feed have a column mapping yet? A feed created without one holds files until you map the first one. Foundry sends a “New file waiting to be mapped” notification when it arrives.
  4. Did the upload really finish? Many SFTP programs upload under a temporary name and rename the file at the end. The supplier’s login cannot rename, so that transfer fails on their side. Ask them to switch off “upload to temporary filename”.

A file that matches none of the feed’s filename rules is not rejected. It is imported with the feed’s default mapping, which can mean it “works” but matches no rows.

Foundry never contacts the supplier. Notifications about their files come to you.

An import created duplicate products

Check whether the same part came in from two sources. Each source keeps its own list, so one physical part from two suppliers is two rows, and promoting both makes two products.

Foundry has no merge for products. Keep one, link the other supplier’s row to it from that source’s SKUs tab, and delete the product you do not want. The deleted one stays in trash for 90 days.

Stock and sync

Every product shows 0 on hand

Check Warehouses first. Stock always belongs to a warehouse, so with no warehouse there is nowhere for it to live. If you do have one, open the source’s Settings tab: only a Stock Supplier puts imported quantity into a warehouse. A Dropship Supplier’s quantity stays with the supplier.

The store shows zero, but Foundry has stock

Check three things, in this order.

  1. The channel’s sync mode. On the Channels list, look at the Sync column. A channel set to Manual sends nothing by itself. A channel set to Auto sends stock only if Inventory is switched to Push in its Sync Settings.
  2. What is reserved. A store is told what is available, which is on hand minus what open orders are holding. The Reserved column on the product’s Warehouse Stock card shows how much is held.
  3. The listing. On the product’s Channels & suppliers tab, the channel should show a Listed badge. On the channel’s SKUs tab, a red Error badge in the Listed column means the last push failed. Click it to read why.

The store did not update after a stock change

With Auto-Sync on and Inventory set to Push, Foundry sends the new quantity as soon as the stock changes. There is no timer to wait for. If the store has not changed after a minute:

  1. Open the channel’s Overview tab. Channel Activity lists each push (“Pushed qty 12 to …”) and each failure with its reason.
  2. If nothing was pushed, check the sync mode and Sync Settings as above.
  3. To send everything again, open the channel and click Push Inventory.

Two things to know about the push buttons. Push Inventory sends every field that is set to Push in Sync Settings, not only quantity, so check that table before you click. And Push All on the Channels list only covers channels set to Auto.

Stock is stuck as reserved on an order that is finished

A hold normally ends when its order does: shipping commits it and cancelling releases it. A hold goes stale when its order is Shipped, Completed, Cancelled or Refunded but the hold is still open. Age has nothing to do with it, and Foundry does not clear stale holds on a timer.

To clear them, open Orders and click Stale holds. The dialog shows what it found before it changes anything, and says how many holds will be released and how many will move stock. Stock reservations & holds explains how it decides between the two.

An order has not arrived from the store

Orders come in by webhook from BigCommerce, Shopify and WooCommerce, usually within seconds. For BigCommerce and Shopify, Foundry also checks the store every 5 minutes for anything a webhook missed, looking back three hours. To check right away, use the sync button at the top of the Orders page.

If orders from one channel never arrive, open that channel’s Overview tab. It should show an Order Sync Active card. If it shows Order Import Setup instead, order sync has never been switched on: choose the statuses to import and click Enable Order Sync.

Listing fails with “Price must be greater than 0”

The product has no selling price, usually because Price was not mapped in the import. Set Price on the product’s Details tab, save, and list again.

API keys and permissions

401 on every request

The key is missing, wrong, revoked or expired. Check, in this order:

  1. The header is Authorization: Bearer <key>. Not x-api-key, and not the bare key.
  2. The key has not expired. Keys can be created with an expiry date.
  3. The key matches the API. Keys starting fims_ are for the Partner API. Keys starting fims_sf_ are for the Storefront API. Each is refused by the other.

A key is shown once, when you create it. If you did not copy it, create a new one.

403 on one endpoint, 200 on the others

The key works but does not carry the permission that endpoint needs. A key gets its permissions one of two ways: from the role you picked when you created it, or from an explicit list of scopes, which replaces the role’s permissions entirely. Authentication & API keys lists both.

A key cannot be edited after it is created. Create a new key with the role or scopes you need, then revoke the old one. You cannot create a key that can do more than you can yourself.

A browser request to the Storefront API is blocked

Browser requests are accepted only from addresses in the channel’s Allowed Origins list. Add your storefront’s address, including https://.

I put an admin key in my frontend

Revoke it now under Settings → API Keys, then create a storefront key. An admin key reaches your whole organization. A storefront key is bound to one Headless channel: it can read that channel’s catalog, check inventory and place orders, and nothing else. It is the only kind of key that is safe in a browser.

Rate limits

429 Too Many Requests

Every 429 from either API has the same shape, with a Retry-After header saying how many seconds to wait:

{ "statusCode": 429, "message": "Rate limit exceeded", "retryAfterSeconds": 21 }

There are two reasons you can get one.

Too many requests in a minute. The Partner API allows 300 requests a minute for each key, across all endpoints. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset, so slow down as Remaining approaches zero instead of waiting for the 429. Storefront limits are per channel and are listed on the Storefront API page.

Too many requests at once. Foundry also limits how many requests it will work on at the same time for one organization or one storefront. Extra requests wait their turn for a few seconds, and only get a 429 if the wait runs out. The message reads “Too many requests in progress for this API key; retry shortly” or “Storefront is busy; retry shortly”. The fix is fewer requests in parallel, not a longer pause between them: a handful at a time is plenty.

Storefront catalog responses can be cached for 60 seconds. Honouring that removes most of the traffic that causes a 429 in the first place.

Webhooks

Deliveries are failing

Your endpoint must answer with a 2xx status within 10 seconds. Acknowledge first and do the work afterwards. A slow handler is the usual reason a correct endpoint fails.

A failed delivery is retried up to 8 times over about 2 days, with gaps that grow from 1 minute to 24 hours. Foundry sends an in-app notification after 3 failures in a row.

To see what was sent, open Settings → Webhooks and click Deliveries on the endpoint. Replay sends a failed delivery again.

My endpoint was switched off

After 5 failed attempts in a row, Foundry disables the endpoint and sends a “Webhook endpoint disabled” notification. Retries count, so an endpoint that is completely down is disabled a little over an hour after its first failure. One success resets the count.

Fix the handler, then switch the endpoint back on with the toggle on its card under Settings → Webhooks. Replay anything that failed while it was down.

Signature verification always fails

Three causes, most likely first:

  1. You are hashing the parsed body. Compute over the raw request bytes, before any JSON parsing. Re-serializing changes the bytes.
  2. You are hashing the body alone. The signed text is {t}.{rawBody}, where t comes from the X-Foundry-Signature header.
  3. You are comparing with ==. Use a constant-time comparison.

Webhook events has a working example.

The same event arrives twice

Deliveries are retried, so keep a record of each X-Foundry-Delivery-Id and skip any you have already handled. Record the id before you act on the event, so a retry cannot receive stock or post an invoice twice.

An event I expected never arrives

Check that the endpoint is subscribed to it. The events Foundry sends are listed on Webhook events. Changes made by an import do not send an event for every row: an import sends one import.completed when it finishes.

I lost my endpoint’s secret

A secret cannot be read back, only rotated. The old secret stops working straight away, so have the new one ready to deploy when you rotate, or deliveries will fail signature checks in the gap.

Undoing a mistake

I deleted something I needed

Most things go to trash first. Settings → Trash restores channels, brands, categories, warehouses, assemblies, templates and rules. Products have their own trash, on the Products page menu, with Restore by date for bringing back a whole batch.

Deleted products, orders, purchase orders and invoices are removed for good after 90 days. Everything else stays in trash until you restore it. See Trash & recovery.

An import or bulk edit overwrote good data

That is a job for Recovery, not trash. Foundry takes a snapshot before every import, price change and bulk edit, and an Owner can roll back to it under Settings → Recovery. See Trash & recovery.

I need to know who changed something

Activity history & stock timeline records each change, who made it and when.

Still stuck

Contact support. It saves a round trip if you tell us:

  • your organization’s name
  • what you expected, and what happened instead
  • the product, order, source or channel it happened on
  • for an import, the file name and roughly when it ran
  • for an API or webhook problem, the endpoint, the response you got, and the delivery id if there is one