Number Series Setup
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② When every section has a ✓, tap Complete lesson.
0 of 10 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Mastering Number Series in Microsoft Dynamics 365 Business Central
Introduction: The Architecture of Order
In any enterprise resource planning (ERP) system, the ability to uniquely identify records is the bedrock of data integrity. Whether you are creating a new customer, issuing an invoice, or recording a journal entry, every single transaction must be traceable and sequential. In Microsoft Dynamics 365 Business Central, this functionality is handled by "Number Series." Without a structured approach to numbering, your database would quickly devolve into a chaotic collection of entries where tracking audit trails, reconciling financial statements, and managing inventory would be nearly impossible.
Number Series in Business Central act as the automated engine that assigns unique identifiers to your master data and transactional documents. Beyond simple identification, these series provide a professional structure to your business operations. They allow you to categorize documents—for example, distinguishing between domestic and international sales invoices—and provide a clear chronological history of your business activity. Understanding how to configure, manage, and extend these series is a fundamental skill for any system administrator or business analyst working within the platform.
This lesson explores the technical and functional aspects of Number Series. We will move beyond the basic setup screens to examine how these series interact with the posting process, how to handle gaps in numbering, and how to manage the complexities of multi-company or multi-departmental environments. By the end of this module, you will have the knowledge required to design a numbering architecture that supports your business growth and ensures compliance with standard accounting practices.
Not read yet
The Core Concept: How Number Series Work
At its most basic level, a Number Series in Business Central is a record containing a starting number, an ending number, and a set of rules that dictate how the next number is generated. When a user creates a new record—such as a Sales Order—the system looks at the assigned number series for that specific document type. It retrieves the "Last No. Used," increments it based on the defined logic, and assigns it to the new record.
The power of this system lies in its flexibility. You can define a series that is purely numeric, such as 10000 to 19999, or one that incorporates alphanumeric prefixes to denote specific business units or years. For instance, you might use "INV-2023-001" to signify a 2023 invoice. This level of granularity helps in reporting and filtering, as users can instantly identify the origin or context of a document simply by looking at its ID.
Key Components of a Number Series Record
When you navigate to the "No. Series" page in Business Central, you encounter several critical fields that define the behavior of the numbering:
- Code: A unique identifier for the series itself (e.g., CUST-BASE).
- Description: A human-readable explanation of what the series is used for.
- Starting No. and Ending No.: The boundaries within which the system is allowed to generate numbers.
- Warning No.: A specific number that, when reached, triggers a notification to the administrator that the series is nearing exhaustion.
- Increment-by No.: The value added to the last number. Usually, this is set to 1, but it can be higher if you need to reserve numbers for specific manual overrides.
- Last No. Used: The current high-water mark of the series.
- Allow Gaps in Nos.: A checkbox that determines whether the system enforces strict, continuous numbering or allows for breaks (often caused by deleted or aborted transactions).
Callout: The "Allow Gaps" Debate In many jurisdictions, tax authorities require strictly sequential invoice numbers with no gaps. However, in Business Central, deleting a draft document or a failed posting can sometimes create a gap in the sequence if "Allow Gaps" is enabled. Deciding whether to enable this feature is a balance between technical convenience and legal compliance. Always consult your local accounting standards before toggling this setting.
Not read yet
Setting Up Number Series: Step-by-Step
Configuring Number Series involves two distinct phases: defining the series definitions (the "Number Series" page) and assigning those series to specific document or master data types (the "No. Series Setup" or document-specific setup pages).
Step 1: Defining the Series
- Search for "No. Series" in the global search bar.
- Click "New" to create a new entry.
- Enter a unique Code and a descriptive Name.
- Navigate to the "Lines" section. This is where you define the actual range.
- Enter the "Starting No." and "Ending No."
- If you want the numbering to automatically increment, ensure the "Increment-by No." is set to 1.
- If you need to change the series annually, you can add multiple lines with different "Starting Date" values. This allows the system to automatically switch to a new format (like a new year prefix) when the date changes.
Step 2: Assigning the Series
Once the series definition exists, it must be linked to the business process. For example, to set up customer numbers:
- Go to the "Sales & Receivables Setup" page.
- Locate the "Numbering" fast tab.
- In the "Customer Nos." field, select the code you created in Step 1.
- Once selected, the system will automatically use this series whenever a new customer card is created.
Tip: Manual vs. Automatic You can allow users to manually enter their own numbers by checking the "Manual Nos." box on the Number Series line. This is useful for migrating data from legacy systems where you want to retain old IDs, but it is generally discouraged for daily transactions to prevent duplicates and data entry errors.
Not read yet
Advanced Configurations: Prefixes, Suffixes, and Date Variables
One of the most powerful features in Business Central is the ability to use dynamic formulas in your number series. Instead of just static numbers, you can embed dates into the ID.
Using Date Formulas
If you define a series like INV-2023-0001, you might worry about what happens when 2024 arrives. Instead of creating a new series manually, you can use the "Starting Date" feature within the Number Series lines. By creating multiple lines for the same Series Code with different starting dates, Business Central will automatically jump to the next line when the system date crosses the threshold.
Multi-Company Considerations
In a multi-company environment, you must be careful to keep number series distinct. If you copy a company configuration from a production environment to a sandbox, the "Last No. Used" will be copied as well. If you then start posting in the sandbox, you risk overlapping with your production numbers. Always reset your "Last No. Used" values in new environments to avoid these conflicts.
Not read yet
Technical Implementation: Extending Number Series via AL
For developers or those working with custom extensions, Number Series are managed via the NoSeriesManagement codeunit. This codeunit provides the standard interface for interacting with numbering logic.
When you create a custom table, you will often need to implement the "AssistEdit" functionality. This allows the user to click a button to select a number from a series, or let the system automatically assign one.
Example: Implementing Number Series in a Custom Table
The following code snippet demonstrates how to handle a Number Series assignment when a user initiates the creation of a new record in a custom table:
table 50100 MyTable
{
fields
{
field(1; "No."; Code[20])
{
trigger OnValidate()
begin
if "No." <> xRec."No." then begin
NoSeriesMgt.TestManual(GetNoSeriesCode());
end;
end;
}
}
procedure AssistEdit(): Boolean
var
NoSeriesMgt: Codeunit NoSeriesManagement;
begin
if NoSeriesMgt.SelectSeries(GetNoSeriesCode(), xRec."No.", "No.") then begin
NoSeriesMgt.SetSeries("No.");
exit(true);
end;
end;
local procedure GetNoSeriesCode(): Code[20]
var
SalesSetup: Record "Sales & Receivables Setup";
begin
SalesSetup.Get();
exit(SalesSetup."MyTable Nos.");
end;
}
Explanation of the Code:
NoSeriesMgt.TestManual: This checks if the user is allowed to manually enter a number. If the series is configured as "Manual," it allows the input; otherwise, it throws an error.AssistEdit: This is the standard function triggered by the "AssistEdit" button on a page. It opens the list of available series and updates the record with the next number.NoSeriesMgt.SetSeries: This is the engine that actually calculates the next number based on the series rules and updates the "Last No. Used" field.
Not read yet
Best Practices for Numbering Architecture
Establishing a robust numbering system is not just a technical task; it is a business strategy. Here are the industry-standard recommendations for managing your series effectively.
1. Avoid Meaningful Numbers
A common mistake is embedding too much information into a number. For example, creating a customer number like US-EAST-LARGE-CUST-001. If the customer moves to the West coast or shrinks in size, that ID becomes misleading. Keep your IDs as "dumb" identifiers (e.g., C-10001) and use fields like "Customer Group," "Region," or "Dimension" to store the descriptive metadata. Metadata is easy to change; primary keys are not.
2. Standardize Prefixes
While the numbers themselves should be generic, prefixes are excellent for categorization. Using SO- for Sales Orders and PO- for Purchase Orders provides immediate visual clarity when viewing documents. Ensure that these prefixes are consistent across your entire organization to prevent confusion for the accounting team.
3. Plan for Growth
When setting your "Starting No.", ensure you have enough digits to accommodate your business for the next decade. If you start at 1 and reach 99999 in six months, you will have to reconfigure your system prematurely. It is far better to start at 100000 or 1000000 to allow for long-term scalability.
4. Separate Environments
Always ensure that your production and test environments have strictly partitioned number ranges. A common pitfall is using the same series in both environments, leading to "number collisions" when data is exported or analyzed.
Warning: The Dangers of Manual Overrides Allowing users to manually override number series is the primary cause of duplicate entries and broken audit trails. Only enable manual numbering for specific, controlled scenarios, such as data migration or historical records import.
Not read yet
Common Pitfalls and Troubleshooting
Even with careful planning, issues can arise. Here is how to handle the most frequent problems encountered by administrators.
Problem: "The Number Series is Full"
If your series reaches the "Ending No.", the system will stop allowing new entries.
- Solution: Simply edit the "Ending No." on the series line to a higher value. There is no technical risk in expanding a range; the system will simply continue to increment from where it left off.
Problem: Number Gaps Appearing
Users often complain that they see gaps (e.g., invoice 1001, then 1003).
- Solution: This usually happens when a user starts to create a document, the system assigns a number, and the user then cancels or deletes the draft. If "Allow Gaps" is enabled, that number is lost. If you are in a highly regulated environment, ensure "Allow Gaps" is unchecked, though this may require more strict control over how users interact with document creation.
Problem: Changing a Series Mid-Year
If you need to change your numbering format (e.g., adding a year prefix), you do not need to create a new series code. You can use the "Starting Date" functionality to have the system automatically switch to a new format on January 1st.
| Scenario | Recommendation |
|---|---|
| New Company Setup | Start at 10000 to allow for future expansion. |
| High-Volume Transactions | Use a 7-8 digit range to ensure you don't hit limits. |
| Audit Compliance | Disable "Allow Gaps" to ensure a continuous audit trail. |
| Data Migration | Enable "Manual Nos." temporarily for the import process. |
Not read yet
Dimensions and Their Relationship to Numbering
While Number Series provide the "Who" (which document), Dimensions provide the "Where" and "Why" (which department, project, or cost center). It is important to distinguish between these two concepts.
Number Series are structural; they relate to the identity of the record. Dimensions are analytical; they relate to the content of the transaction. You should never use a Number Series to encode dimension information. For example, do not create a number series like SALES-DEPT-001 and ADMIN-DEPT-001. Instead, create one SALES-DOC series and use a "Department" Dimension to track the cost center. This keeps your numbering clean and your reporting powerful.
When you post a document, the Number Series ID is stored in the header, while the Dimensions are stored in the ledger entries. This separation allows you to filter your financial reports by Dimension without caring about the specific sequence of the document ID.
Not read yet
Maintenance and Auditing
A well-maintained numbering system requires periodic review. As part of your quarterly system maintenance, you should:
- Check for near-exhaustion: Look at your "Last No. Used" versus your "Ending No." for high-volume series.
- Verify consistency: Ensure that all document types are still mapped to their intended series, especially after a major version update or an extension deployment.
- Review "Allow Gaps": Confirm that your settings still align with your current legal and audit requirements. If your business has moved into a new territory with stricter tax laws, you may need to tighten these settings.
Auditing Numbering Integrity
To perform an audit, you can export your ledger entries (e.g., Sales Invoice Header) to Excel and sort by the "No." field. Look for breaks in the sequence. If you find gaps, check the "Cancelled Document" or "Deleted" logs to understand why those numbers were skipped. This transparency is vital for demonstrating control to auditors.
Not read yet
Summary and Key Takeaways
Number Series in Business Central are far more than just a way to label your data. They are a fundamental component of your organization's internal controls and reporting accuracy. By following the principles outlined in this lesson, you can build a system that is resilient, scalable, and audit-ready.
Key Takeaways:
- Primary Identity: Number Series are the primary mechanism for unique identification in Business Central. They must be configured carefully to ensure data integrity.
- Avoid Meaningful IDs: Keep your IDs generic (e.g., 10000) and offload descriptive data to Dimensions. This prevents your IDs from becoming obsolete as your business structure changes.
- Scalability Matters: Always plan for growth by starting your ranges high enough to last for years. Expanding a range is easy, but re-numbering an entire database is a nightmare.
- Legal Compliance: Be aware of local regulations regarding continuous numbering. Use the "Allow Gaps" setting judiciously to balance operational convenience with strict audit requirements.
- System Segmentation: Keep your production and test environments strictly separated by ensuring their number series do not overlap.
- Use Automation: Leverage the "Starting Date" field to automate annual changes in your numbering format rather than manually updating series every year.
- Consistency is King: Use standardized prefixes across different document types to make your data easily readable for both users and reporting tools.
By mastering these concepts, you ensure that your Business Central environment remains a reliable source of truth, providing the structure necessary for your company to grow with confidence. Whether you are a developer writing custom code or an administrator configuring the interface, these rules serve as the foundation for a healthy, well-ordered system.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
Spend your points to unlock exam-style practice questions
Spend points to unlock MB-800 exam-style practice questions.
Practice for MB-800