---
title: Rule 296 Generate UPCs
description: Rule, UPC, automatic, generation, product variants
---

[Skip to content](https://support.paragon-erp.com/rule-296-generate-upcs#main-content)

English

Show submenu for translations

[![paragon logo-1.png\]](https://support.paragon-erp.com/hs-fs/hubfs/paragon%20logo-1.png?width=240&height=75&name=paragon%20logo-1.png)](https://support.paragon-erp.com/?hsLang=en)

- [New Ticket](https://share-eu1.hsforms.com/1PiwaZCxTRpabuHVnQxGeXQc751y)
- [Tickets](https://help.paragon-erp.com/tickets)
- [Knowledge Base](https://support.paragon-erp.com/)
- [Sign out](https://20488534.hs-sites.com/_hcms/mem/logout)

Open main navigation

Close main navigation

- [New Ticket](https://share-eu1.hsforms.com/1PiwaZCxTRpabuHVnQxGeXQc751y)
- [Tickets](https://help.paragon-erp.com/tickets)
- [Knowledge Base](https://support.paragon-erp.com/)
- [Sign out](https://20488534.hs-sites.com/_hcms/mem/logout)
- English
  
  Show submenu for translations
- [Go to website](https://www.paragon-erp.com/)

[Go to website](https://www.paragon-erp.com/?hsLang=en)

 Welcome! Search our Knowledge Base.

- There are no suggestions because the search field is empty.

1. [ParagonERP](https://support.paragon-erp.com/?hsLang=en)
2. [Release Notes & Rules](https://support.paragon-erp.com/release-notes-rules?hsLang=en)
3. [Rules](https://support.paragon-erp.com/release-notes-rules?hsLang=en#rules)

May 7, 2026

# Rule 296 Generate UPCs

### **Introduction**

ParagonERP offers an option to generate UPCs automatically. This is particularly helpful if your merchandise uses product variants, for example style/color/size. A separate UPC may be required for each SKU (stock keeping unit), and this task can be daunting unless you can generate your UPCs automatically.

This article explains how to set up your system to use rule 296, and how it will work during product creation.

#### **What is rule 296?**

This rule works in tandem with [rule 333](https://support.paragon-erp.com/rule-333-create-product-variants?hsLang=en). It handles the generation of all UPC's for eligible products. The UPC (universal product code) is a 12-digit number that is broken down as follows:

- (GS1 Company Prefix - MFG Product Code - Check Digit)
- GS1 Company Prefix: 6 digit code provided by GS1
- Product Code: 5 digit code that will be sequenced by 1 every time a UPC is generated
- Check Digit (Security digit that will be calculated on the fly by the rule.

The rule keeps track of the last UPC generated using attributes within myCompany.

### Prerequisites

The GS1 prefix is an attribute in myCompany. Enter your 5-digit mfg company product in the **GS1 prefix** field provided in myCompany. Enter the last UPC product code used in the **upc product code** field provided.

![](https://support.paragon-erp.com/hs-fs/hubfs/Screenshot%202026-03-23%20103842-png.png?width=670&height=124&name=Screenshot%202026-03-23%20103842-png.png)

 

If you do not see these attributes in myCompany, add them to your list of [attributes. ](https://support.paragon-erp.com/what-are-attributes-and-attribute-values?hsLang=en)Then, you can add these attributes to myCompany.

Ask your system administrator or contact ParagonERP to set up the **296 rule** in your system.

 

### **Step-by-step process**

#### Step 1:

Once you have all of your product variants entered in ParagonERP, your system administrator will press the **run now **button on the line for **UPC generation** in **settings, rules engine, rules.**

**![](https://support.paragon-erp.com/hs-fs/hubfs/undefined-Mar-23-2026-02-47-18-4357-PM.png?width=670&height=147&name=undefined-Mar-23-2026-02-47-18-4357-PM.png)**

The **run now **command will show a screen asking you to confirm that you want to proceed.

![](https://support.paragon-erp.com/hs-fs/hubfs/undefined-Mar-23-2026-02-50-06-9289-PM.png?width=670&height=240&name=undefined-Mar-23-2026-02-50-06-9289-PM.png)

Click the **accept **button to continue.

#### **Step 2:**

The rule checks all products for the **UPC product **attribute, looking for active products that have this attribute checked off.

The rule checks if the product already has an existing UPC value. If no value exists, it will then assign a UPC to this product as follows:

- UPC is assigned using the following structure: GS1 Prefix - UPC Product Code - Check Digit. EX: 123456000018
- GS1 Prefix is taken from myCompany attribute “GS1 Prefix”
- Product Code is taken from myCompany attribute “UPC Product Code”
- Check digit is calculated using formula shown above

Every time a UPC is generated, the **UPC product code **attribute in **myCompany **is sequenced by 1. If the **UPC product code **reaches 99999, the rule will stop and provide you with a notification stating that there are no UPC codes available. The rule will send a warning message to the email address that is set up in myCompany when there are only 1000 UPCs left. This will give you time to purchase a new GS1 prefix number and restart the UPC product code number sequence.

### Replace GS1 Prefix

When you are ready to move on to the new GS1 number, to go **settings/rules engine/rules **and click on **run now** for this rule:

![](https://support.paragon-erp.com/hs-fs/hubfs/undefined-Mar-23-2026-02-56-50-0008-PM.png?width=182&height=78&name=undefined-Mar-23-2026-02-56-50-0008-PM.png)

You can only run this rule if you have reached the maximum number of UPC codes for the existing GS1 prefix.

(When you start to use ParagonERP for the first time, if you have a *test GS1 prefix *with test UPC's, you will have to edit the screen in myCompany and set the *UPC product code *to 99999 in order to use the **replace GS1 prefix **option.)

When you click on **run now **for the **replace GS1 prefix **you will see this modal:

![](https://support.paragon-erp.com/hs-fs/hubfs/undefined-Mar-23-2026-03-01-27-5588-PM.png?width=459&height=295&name=undefined-Mar-23-2026-03-01-27-5588-PM.png)

Enter the new GS1 number. This will reset the UPC # to 0, so that the next UPC # will be 1.

The GS1 prefix must be valid. If the GS1 prefix is too short, a yellow toaster will appear. If the GS1 prefix has already been used, you will see a red toaster.

The previous GS1 prefix will be transferred to another attribute, called Old GS1 prefix. All previous values of Old GS1 prefixes are saved in this attribute and used for verification when a new GS1 number is entered.

 

*NOTE: If you already have UPC #’s from your previous ERP, after activating the new GS1 prefix, you can enter the last UPC # used in the UPC Product Code attribute in My Company so that your next UPC # will follow the sequence.*

 

### **Related articles**

The following article explains how rules are used in ParagonERP.

[What are rules?](https://support.paragon-erp.com/what-are-rules?hsLang=en)

### **Next steps**

Now that you have rule 296 available to you, whenever you add new product variants to your system, you can go back into **settings/rules engine/rules **and click on **run now **for the line **UPC generation**. The rule will provide UPCs for any active products that are missing a UPC and that have the **UPC product **attribute checked off.

 

- [Paragon Basics](https://support.paragon-erp.com/paragon-basics?hsLang=en#main-content)

    - [Paragon Modules & Features](https://support.paragon-erp.com/paragon-basics?hsLang=en#paragon-modules-features)
    - [Basic use Paragon](https://support.paragon-erp.com/paragon-basics?hsLang=en#basic-use-paragon)
    - [Advanced use Paragon](https://support.paragon-erp.com/paragon-basics?hsLang=en#advanced-use-paragon)
    - [Paragon policies](https://support.paragon-erp.com/paragon-basics?hsLang=en#paragon-policies)
    - [Customer](https://support.paragon-erp.com/paragon-basics?hsLang=en#customer)
- [Configuring Paragon](https://support.paragon-erp.com/configuring-paragon?hsLang=en#main-content)

    - [Basic Settings](https://support.paragon-erp.com/configuring-paragon?hsLang=en#basic-settings)
    - [Advanced Settings](https://support.paragon-erp.com/configuring-paragon?hsLang=en#advanced-settings)
    - [My Company Settings](https://support.paragon-erp.com/configuring-paragon?hsLang=en#my-company-settings)
    - [User Management & Access](https://support.paragon-erp.com/configuring-paragon?hsLang=en#user-management-access)
    - [Import & Export](https://support.paragon-erp.com/configuring-paragon?hsLang=en#import-export)
    - [Attributes](https://support.paragon-erp.com/configuring-paragon?hsLang=en#attributes)
    - [PDF Templates](https://support.paragon-erp.com/configuring-paragon?hsLang=en#pdf-templates)
    - [Configuring - Aloha](https://support.paragon-erp.com/configuring-paragon?hsLang=en#configuring-aloha)
    - [Product](https://support.paragon-erp.com/configuring-paragon?hsLang=en#product)
    - [Associations](https://support.paragon-erp.com/configuring-paragon?hsLang=en#associations)
- [Purchase](https://support.paragon-erp.com/purchase?hsLang=en#main-content)

    - [Vendor & Product](https://support.paragon-erp.com/purchase?hsLang=en#vendor-product)
    - [Purchase Order](https://support.paragon-erp.com/purchase?hsLang=en#purchase-order)
    - [In Transit & Receiving](https://support.paragon-erp.com/purchase?hsLang=en#in-transit-receiving)
    - [Vendor Invoicing](https://support.paragon-erp.com/purchase?hsLang=en#vendor-invoicing)
- [Manufacturing](https://support.paragon-erp.com/manufacturing?hsLang=en#main-content)

    - [Work Orders](https://support.paragon-erp.com/manufacturing?hsLang=en#work-orders)
    - [Bill of Materials](https://support.paragon-erp.com/manufacturing?hsLang=en#bill-of-materials)
    - [material](https://support.paragon-erp.com/manufacturing?hsLang=en#material)
- [Inventory](https://support.paragon-erp.com/inventory?hsLang=en#main-content)

    - [Warehouse Management](https://support.paragon-erp.com/inventory?hsLang=en#warehouse-management)
    - [Inventory Adjustment](https://support.paragon-erp.com/inventory?hsLang=en#inventory-adjustment)
    - [Inventory Value](https://support.paragon-erp.com/inventory?hsLang=en#inventory-value)
    - [Inventory Transfer](https://support.paragon-erp.com/inventory?hsLang=en#inventory-transfer)
    - [Picking](https://support.paragon-erp.com/inventory?hsLang=en#picking)
    - [Packing](https://support.paragon-erp.com/inventory?hsLang=en#packing)
- [Sales](https://support.paragon-erp.com/sales?hsLang=en#main-content)

    - [Sales Order](https://support.paragon-erp.com/sales?hsLang=en#sales-order)
    - [Reservations](https://support.paragon-erp.com/sales?hsLang=en#reservations)
    - [Returns](https://support.paragon-erp.com/sales?hsLang=en#returns)
    - [Invoicing](https://support.paragon-erp.com/sales?hsLang=en#invoicing)
- [Finance](https://support.paragon-erp.com/finance?hsLang=en#main-content)

    - [Financial Settings](https://support.paragon-erp.com/finance?hsLang=en#financial-settings)
    - [GL Mapping](https://support.paragon-erp.com/finance?hsLang=en#gl-mapping)
    - [Journal Entries](https://support.paragon-erp.com/finance?hsLang=en#journal-entries)
- [Reports](https://support.paragon-erp.com/reports?hsLang=en#main-content)

    - [Financial Reporting](https://support.paragon-erp.com/reports?hsLang=en#financial-reporting)
    - [WIGO](https://support.paragon-erp.com/reports?hsLang=en#wigo)
- [Integrations](https://support.paragon-erp.com/integrations?hsLang=en#main-content)

    - [QuickBooks](https://support.paragon-erp.com/integrations?hsLang=en#quickbooks)
    - [Minox](https://support.paragon-erp.com/integrations?hsLang=en#minox)
    - [Shopify](https://support.paragon-erp.com/integrations?hsLang=en#shopify)
    - [2Ship](https://support.paragon-erp.com/integrations?hsLang=en#2ship)
    - [Mobile](https://support.paragon-erp.com/integrations?hsLang=en#mobile)
    - [Google](https://support.paragon-erp.com/integrations?hsLang=en#google)
- [Release Notes & Rules](https://support.paragon-erp.com/release-notes-rules?hsLang=en#main-content)

    - [Rules](https://support.paragon-erp.com/release-notes-rules?hsLang=en#rules)
    - [Release Notes](https://support.paragon-erp.com/release-notes-rules?hsLang=en#release-notes)
- [Transactions](https://support.paragon-erp.com/transactions?hsLang=en#main-content)

    - [Receive Payment](https://support.paragon-erp.com/transactions?hsLang=en#receive-payment)
    - [Transaction Basics](https://support.paragon-erp.com/transactions?hsLang=en#transaction-basics)
    - [Sales Order](https://support.paragon-erp.com/transactions?hsLang=en#sales-order)
    - [Make Payment](https://support.paragon-erp.com/transactions?hsLang=en#make-payment)
    - [Credit](https://support.paragon-erp.com/transactions?hsLang=en#credit)
    - [Invoice](https://support.paragon-erp.com/transactions?hsLang=en#invoice)

[![Logo for ParagonERP](https://support.paragon-erp.com/hs-fs/hubfs/paragon%20logo.png?width=401&height=126&name=paragon%20logo.png "Logo for ParagonERP")](https://www.paragon-erp.com?hsLang=en)

We do our utmost to share all relevant information for our customers here. Still missing the answer to a question? Then please contact support.

<https://www.linkedin.com/company/paragonerp/posts/?feedView=all>

Copyright © 2026, ParagonERP