> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.stock-sync.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Ensuring Your Stock Feeds Sync Inventory Correctly

Setting up your inventory feeds correctly ensures that product quantities stay synchronized, overselling is prevented, and stock levels reflect live supplier availability. Following systematic verification steps resolves common syncing issues such as missing SKU matches, multi-location confusion, and calculation discrepancies.

|| Available on: ✔️ Update 

---

## How to Set Up and Verify Inventory Updates

Go to **App** → **Feed Settings** → **Step 2: Matching Column**

1. **Verify SKU Mapping**: Map your store's primary identifier column to **SKU** and ensure exact character matching with no missing leading zeros.
2. **Configure Quantity Field**: Map your supplier stock column to **Quantity** and select your inventory calculation method (such as Overwrite or Add/Deduct).
3. **Select Inventory Location**: Designate the specific Shopify store location under **Step 1: Feed Manager** or **Step 2: Matching Column**.
4. **Review Store Product Filters**: Check **Step 3: Filter** to confirm no active filters inadvertently exclude target variants or vendors.
5. **Run Preview & Test**: Execute a **Preview Sync** to audit proposed updates, verify results in the logs, and run the live feed.

| Always run a **Preview Sync** before executing live inventory updates to review SKU matches and quantity changes without modifying store data.

---

## Inventory Updates Smart Settings 

### 1. SKU Identifier Matching
Stock Sync relies strictly on SKU matching to identify existing store products. If SKUs do not match character-for-character, the product is skipped.

| Mapping Check | Requirement | Example Issue & Resolution |
| ---- | ---- | ---- |
| **Exact Character Match** | Values must match identically in casing and structure | `SKU-100` will not match `sku-100` if case sensitivity rules apply. |
| **Leading Zeros** | Numeric strings with leading zeros must be preserved | `11152851686` does not match `011152851686`. Ensure spreadsheet columns do not strip zeros. |
| **Whitespace & Formatting** | No extra spaces, tabs, or trailing symbols | Strip accidental spaces from CSV headers and cells. |
| **No-Header Feeds** | Map by strict column position index | Confirm the correct column index number (e.g., `1`, `2`) is selected. |

| If SKUs do not match between the supplier feed and Shopify, edit the SKU in either system so they align identically, then re-run the feed.

### 2. Quantity Update Methods & Rule Sequencing
In **Step 2: Matching Column**, the Quantity field provides calculation methods to determine how incoming data interacts with existing store stock:

| Update Method | Operational Logic | Expected Behavior & Best Practice |
| ---- | ---- | ---- |
| **Overwrite Existing Quantity** *(Recommended)* | Replaces current store inventory directly with the incoming feed value | Standard for most supplier setups; prevents inventory drift over time. |
| **Add / Deduct (+/-)** | Adds the incoming feed value to the current store inventory level | Can cause unintentionally inflated stock levels if run on recurring schedules without baseline resets. |
| **Negative Value Handling** | Converts negative source values automatically to `0` | Built-in safeguard preventing negative inventory states from breaking store checkout. |

| Rules in the Quantity field are evaluated sequentially from top to bottom; the first rule that matches a product condition applies, and all subsequent rules are skipped.

| Place highly specific quantity rules (e.g., specific ranges or thresholds) at the top of the rule list, followed by broader fallback rules. Quantities requiring no adjustment can pass through without rules.

### 3. Location Assignment Rules
Each individual feed can update only ++one inventory location++ at a time.

| Location Scenario | Configuration Rule | Risk / Consideration |
| ---- | ---- | ---- |
| **Single Store Location** | Assign feed to primary fulfillment location | Ensure Shopify location ID matches the designated warehouse. |
| **Multiple Suppliers** | Assign each supplier feed to its dedicated store location | Assigning to the wrong location causes inventory to appear missing or duplicated across fulfillment centers. |

| Confirm each supplier feed is assigned to its distinct fulfillment location to prevent one feed from overwriting inventory designated for another warehouse.

### 4. Store Product Filters & Track Quantity Settings
Filters in **Step 3: Filter** govern which store products the feed is permitted to inspect and update:

| Filter Setting | Function | Troubleshooting Action |
| ---- | ---- | ---- |
| **Track Quantity Only** | Restricts updates strictly to variants where Shopify inventory tracking is enabled | If products are not updating, verify whether **Track Quantity** is checked in Shopify admin. |
| **Vendor / Brand Filter** | Restricts updates to specific vendor names | Ensure the vendor name in Shopify matches the filter string exactly. |
| **Product Type Filter** | Restricts updates to designated product categories | Remove or adjust the filter if new category items need synchronization. |

| Disable active filters temporarily if legitimate products are being blocked from updating during sync execution.

### 5. Multi-Supplier Overlapping SKU Strategies
When two or more supplier feeds contain the exact same SKU, standard execution allows the last feed that runs to overwrite the stock. Use one of these structured configurations to handle shared items:

| Strategy | Required Configuration | Operational Rule & Prerequisite |
| ---- | ---- | ---- |
| **Overwrite + Add/Deduct** | Feed 1 set to **Overwrite existing quantity**; Feed 2 set to **Add/Deduct with existing quantity (+)** | ++Every SKU in Feed 2 must also exist in Feed 1++. Use filters to restrict Feed 2 exclusively to overlapping SKUs. |
| **Highest Quantity Method** | Enable the **Keep Highest Quantity** setting across feeds | Automatically retains the highest single quantity value among feeds without adding them together. |
| **Location Separation** *(Safest)* | Assign each feed to an independent Shopify location | Shopify aggregates fulfillment stock automatically across locations, avoiding data collision entirely. |

### 6. Missing Products & Out-of-Stock Strategies
When items are discontinued or temporarily omitted from a supplier's feed, they risk remaining in stock inside your store catalog.

| Scenario | Feature Setting | Result in Store |
| ---- | ---- | ---- |
| **Item Missing in Supplier Feed** | Enable **Out-of-Stock Strategy** | Automatically sets the store variant quantity to `0`. |
| **Discontinued Supplier Lines** | Link an **Auto Clear Discontinued** Remove Feed | Sets store product quantity to `0` and archives or deletes obsolete items. |

### 7. Shopify Admin Display vs. Stock Tags
If an item has inventory greater than `0` but the `Stock` tag is missing in the Shopify product editor:

| Shopify Admin can display cached product data; a tag successfully applied via the API may not appear immediately in the admin product editor.

| Filter your Shopify Products list by the `Stock` tag or check via API to verify if the tag exists on the backend.

| When contacting support, compare one SKU displaying the tag against one SKU missing it, and provide sample SKUs and screenshots to distinguish admin caching from sync errors.

### 8. Feed Audit Logs & Sync Verification
Stock Sync provides detailed activity records to verify exact data transformations:

| Log Type | Purpose | How to Verify |
| ---- | ---- | ---- |
| **Preview Sync** | Test run without altering store inventory | Review matched SKUs and incoming quantity calculations before live syncing. |
| **Activity Log** | Comprehensive feed execution history | Check execution status, run times, skipped items, and error codes. |
| **Change Log** | Field-by-field audit trail | Compare before-and-after quantities for specific SKUs to confirm successful updates. |

---

## Key Rules & Technical Details

- **Strict SKU Identity**: Leading zeros, hyphens, and whitespace must match identically between feed files and Shopify SKUs.
- **Single-Location Rule**: A feed profile updates exactly one Shopify location per execution.
- **Rule Hierarchy**: Quantity field smart rules execute strictly top-to-bottom; an earlier matching rule prevents subsequent rules from executing.
- **Real-Time Feed Initialization**: Real-time feeds only capture and sync quantity changes that occur after feed is activated. Use a Shopify Store feed requiring the Stock Sync app for initial baseline synchronization.

||| Critical warning: Using the Add/Deduct (+/-) method on a recurring scheduled feed will continuously increase or decrease inventory on every execution unless the baseline quantity is reset by an Overwrite feed.

---

## Troubleshooting Steps

* **Issue**: SKUs exist in the feed but are completely skipped → **Solution**: Compare the feed SKU against the Shopify SKU in a text editor to confirm there are no leading/trailing spaces or stripped leading zeros.
* **Issue**: Inventory quantities are continually inflating or multiplying → **Solution**: Go to **Matching Column (Step 2)** and change the Quantity method from **Add/Deduct (+/-)** to **Overwrite existing quantity**.
* **Issue**: Quantities are updated in the feed log but missing on the storefront → **Solution**: Verify the assigned location in your feed settings. Confirm that your Shopify theme and checkout are configured to fulfill inventory from that specific location.
* **Issue**: Discontinued products remain available for sale → **Solution**: Enable the **Out-of-Stock Strategy** in your Update Feed to set missing feed items to `0` stock, or set up an **Auto Clear Discontinued** feed.
* **Issue**: Feed fails to run on schedule → **Solution**: Open feed settings to ensure the feed is toggled to **Enabled**, verify automated schedule frequencies, and confirm connection credentials under **Step 1: Feed Manager**.

---

## Good Articles to Continue

* [Matching Column (Step 2) Overview](https://help.stock-sync.com/en/category/matching-column-hc3vlq/) → Comprehensive guide on mapping quantity fields, setting formulas, and configuring smart rules.
* [Auto Clear Discontinued Products Setup](https://help.stock-sync.com/en/article/automatically-remove-or-archive-product-when-not-found-in-update-feed-auto-clear-discontinued-1en0o8i/) → How to automatically set out-of-stock items to zero and archive missing catalog items.
* [Store Product Filter Setup](https://help.stock-sync.com/en/article/store-product-filter-1uqbxfq/) → Configure filters to isolate specific vendors, tags, or inventory-tracked items.