Skip to main content
Question

How to prevent duplicate Global Alternate IDs on the stock item profile

  • Nov 30, 2026 9:49 AM UTC
  • 3 replies
  • 37 views
  • Translate All

Forum|alt.badge.img

Hi everyone, 

Anyone with a clue on how to prevent stock items from having duplicate Global Alternate IDs on the Cross Reference tab.

3 replies

Forum|alt.badge.img+4
  • Captain II
  • Nov 30, 2026 10:20 AM UTC

​@lorach 

According to the Acumatica documentation, the system does not verify the uniqueness of Alternate IDs across the system by default.

Please refer to the attached screenshot from the official documentation (Item Cross-References → Using Alternate IDs).

If you need to prevent duplicate Global Alternate IDs, this may require a customization.

https://beacon.acumatica.com/r/Inventory-Management-Guide/Managing-Item-Cross-References/Item-Cross-References#using-alternate-ids

Hope this helps!

Translate

mohammadnawaz51
Varsity I
Forum|alt.badge.img+8

Acumatica does not enforce Global Alternate ID uniqueness across different stock items by default. To prevent duplicates from being saved, I would recommend a validation customization. Acumatica’s documentation explicitly states that the system does not verify the uniqueness of alternate IDs. Here, Global means the reference is not tied to a specific customer or vendorhttps://beacon.acumatica.com/r/Inventory-Management-Guide/Managing-Item-Cross-References/Item-Cross-References#using-alternate-ids

 

Customization:

Add validation to the item cross-reference records (INItemXRef) with the following rule:
1. Apply the check when Alternate Type = Global.
2. Check whether the same Alternate ID already exists as a Global cross-reference against a different Inventory ID.
3. If a match exists, prevent saving and display the conflicting item, for example:
   Global Alternate ID “ABC123” is already assigned to inventory item “ITEM001”. Please enter a unique value.

Translate

Steve Milner
Varsity III
Forum|alt.badge.img+8
  • Varsity III
  • Nov 30, 2026 4:54 PM UTC

My replies are created in part with the help of proprietary AI, built with my AI skills, curated and maintained myself. Most replies are tested on local instances before they go up, and all are reviewed before posted.

@lorach Saikrishna and mohammadnawaz51 are right that this takes a customization. It can be a small one, because Acumatica already has the check in its code. It just isn't switched on.

The check sits behind a feature called Cross-Reference Uniqueness, which is hidden on Enable/Disable Features (CS100000). We found it in every build we checked from 2024 R2 through 2026 R2, hidden in all of them. The doc line Saikrishna quoted is accurate for anything you can turn on from the UI. When the feature is on, Stock Items and Non-Stock Items won't save an alternate ID that another item already has with the same Alternate Type and Vendor/Customer. The error names the other item: "The record cannot be saved because the alternate ID specified for the selected item is already assigned to another inventory item (ITEM001). Please specify another alternate ID." It's the rule mohammadnawaz51 laid out, already written.

Here's an idea we haven't tested. A graph extension that inherits Acumatica's CrossReferenceUniqueness<InventoryItemMaint> and returns true from IsActive should switch the check on without the hidden feature. Acumatica's own stock item extension is built the same way, except its IsActive looks at the feature.

There are two catches. The check covers every alternate type, so barcodes and customer and vendor part numbers get the same rule, not just Global. It also won't clean up duplicates you already have. Once it's on, a change to one of those existing rows won't save, so find and fix them first. Try it in a sandbox before it goes near production.

Translate