How Attribute Set Works in iDempiere
An Attribute Set defines how a product is tracked across its lifecycle in iDempiere. It acts as the rule book for traceability, controlling whether lot, expiry, serial, or batch details must be captured and consistently enforced across purchasing, inventory, sales, and movements.
Position in the Overall Workflow
Attribute Sets sit between product definition and transaction execution.
In the broader flow:
- Attributes define product characteristics
- Attribute Sets define tracking rules
- Attribute Set Instances record real batch data
Without an Attribute Set, attributes exist only as descriptive data.
With an Attribute Set, attributes become enforced operational controls.
Attribute Set Configuration
Attribute Sets are configured centrally and assigned directly to products. Once assigned, they immediately influence how transactions behave.

Key configuration areas include:
- Instance Attribute
Enables batch-level tracking. When checked, the system creates a separate record for each batch. - Lot Control
Defines whether lot numbers are required, optional, or auto-generated.
Custom Lot Control rules can enforce prefixes (e.g.,COMP-) and sequence logic. - Guarantee (Expiry) Date
Controls shelf life using Guarantee Days.
This supports expiry-based picking and compliance reporting. - Mandatory Type
Determines when batch data is required (e.g., When Shipping, Always, Never).
These settings ensure traceability is enforced at the correct stage—not too early, not too late.
Linking Attributes to the Attribute Set
Attributes are added to the Attribute Set using the Attribute Use tab.
This determines which attributes appear in the batch dialog and how they behave.

Only attributes included here are visible during transactions.
This allows businesses to mix system attributes (lot, expiry) with business attributes (flavor, grade) in a single tracking structure.
How Attribute Sets Control Transactions
Once an Attribute Set is assigned to a product, users do not choose whether to follow the rules—the system enforces them automatically.
In a nutrition product flow:
- Purchase Orders may allow flexible entry
- Material Receipts require lot and expiry
- Customer Shipments enforce batch selection
- Inventory Movements preserve batch identity
The Attribute Set ensures required data is captured exactly when it matters, without interrupting upstream planning activities.
Purpose
Attribute Sets exist to protect product integrity and compliance.
They prevent inventory from moving through the system without required batch information and ensure consistent handling of regulated products.
They are essential when:
- Shelf life must be monitored
- Batch recalls must be possible
- Quality audits are required
- Regulatory compliance is mandatory
Without Attribute Sets, traceability depends on user discipline.
With Attribute Sets, traceability is system-enforced.
Key Capabilities Enabled by Attribute Sets
- Enforced batch and expiry tracking
- Automatic lot number generation
- Consistent behavior across all documents
- Reduced operational errors
- Compliance-ready inventory processes
Attribute Sets transform attributes from optional data into mandatory operational controls.
Outcome
With Attribute Sets correctly configured and assigned, iDempiere delivers:
- Reliable, enforced traceability
- Consistent batch behavior across transactions
- Automatic compliance with quality rules
- Reduced risk of data gaps or errors
Attribute Sets ensure that every batch created later follows the same rules, making traceability scalable, predictable, and production-ready.