1.2 Configuration Packages & RapidStart Worksheets
Key Takeaways
- RapidStart Services utilizes Configuration Packages to stage, validate, and commit legacy data into Business Central tables via structured Excel templates.
- Configuration Worksheets organize migration projects hierarchically into Areas, Groups, and Tables while tracking real-time record counts and promoted entities.
- Calculated FlowFields (e.g., Customer Balance) and system-managed fields (SystemId, Timestamp) must be excluded from packages to avoid fatal import errors.
- The Validate Field setting executes AL OnValidate triggers to enforce relational integrity, verifying foreign keys and code formatting during staging and application.
- Data migration packages must be imported in a strict four-tier dependency sequence: Foundation Setup, Posting Architecture, Master Data, and Transactional Openings.
1.2 Configuration Packages & RapidStart Worksheets
Quick Summary: RapidStart Services provides the core data migration and bulk configuration engine in Dynamics 365 Business Central. Consultants organize data migration using the Configuration Worksheet (structured by functional Areas, Groups, and Tables) and build Configuration Packages to export and import data via Microsoft Excel templates. When configuring tables, calculated FlowFields and system-managed metadata fields must be excluded. Data moves through an intermediate staging area where validation errors are diagnosed and resolved in the Config. Package Errors window before records are committed into live application tables.
RapidStart Services Architecture & Core Terminology
In Dynamics 365 Business Central, bulk data onboarding and setup replication are governed by RapidStart Services. RapidStart provides an auditable, two-stage data ingestion pipeline:
- Staging / Intermediate Layer: Legacy data imported from external sources (typically Microsoft Excel workbooks) is loaded into staging tables (
Config. Package RecordandConfig. Package Data). At this stage, no live application tables or ledgers are modified. - Validation & Application Layer: The staged data is validated against Business Central business logic. Once all schema, data type, and relational integrity constraints pass, the data is "applied" to the live operational tables.
This architecture ensures that corrupt, unvalidated, or structurally incomplete legacy records cannot directly breach the operational database.
The Configuration Worksheet: Planning & Project Scoping
The Configuration Worksheet (Alt+Q -> type Configuration Worksheet) provides a hierarchical project management interface for planning and monitoring data migration across the entire ERP deployment.
Configuration Worksheet Hierarchy:
Line Type: Area -> [FINANCE] (Functional Domain)
Line Type: Group -> [GENERAL LEDGER] (Functional Subsystem)
Line Type: Table -> Table ID 15: G/L Account (Database Table Entity)
Line Type: Table -> Table ID 98: General Ledger Setup
Line Types in the Worksheet
- Area: Defines the broad functional domain (e.g., Financials, Sales, Purchasing, Inventory, Fixed Assets). Used strictly for grouping and visual hierarchy.
- Group: Establishes a logical subsystem under an Area (e.g., Receivables, Payables, Cost Accounting).
- Table: Represents an actual Business Central database table, referenced by its unique integer Table ID (e.g., Table 15
G/L Account, Table 18Customer, Table 23Vendor, Table 27Item, Table 92Customer Posting Group).
Key Worksheet Columns & Operational Metrics
- Table ID & Table Caption: Identifies the underlying database table.
- No. of Records: Queries the database in real time to display the total count of existing records in that table. This metric allows consultants to immediately confirm whether a table is currently empty or already populated.
- Promoted Table: A boolean flag designating critical path tables that should appear highlighted and prioritized during package compilation.
- Package Code: Identifies which Configuration Package currently manages the table.
- Assigned User ID: Enables project managers to assign specific functional tables to designated team members for data cleansing and sign-off.
Configuration Package Definition & Table Selection
A Configuration Package (Alt+Q -> type Configuration Packages) is the actual deployment artifact that bundles selected tables, field mapping rules, filtering parameters, and data payloads.
When a consultant adds tables to a Configuration Package Card, fine-grained field and validation controls must be established under the Tables subpage:
UI Navigation Path:
Tell Me (Alt+Q) -> Configuration Packages -> Open Package Card -> Tables FastTab -> Action: Table -> Fields
Field Selection & Excluding Invalid Field Types
Selecting Table -> Fields opens the Config. Package Field List. By default, Business Central selects every field in the table. However, consultants must explicitly deselect specific field types to avoid fatal import failures:
- FlowFields (Calculated Fields): Fields such as
Balance (LCY)on Table 18 (Customer) orNet Changeon Table 15 (G/L Account) do not exist as stored data columns in SQL. They are dynamically calculated at runtime by querying underlying ledger tables (e.g., Detailed Customer Ledger Entries). Attempting to import values into a FlowField triggers a validation failure because calculated fields are strictly read-only. - FlowFilters: Dynamic runtime filtering parameters (such as
Date FilterorGlobal Dimension 1 Filter) used in FlowField calculation formulas. They do not store data and must be excluded. - System-Managed Metadata Fields: Internal system columns maintained exclusively by the platform kernel, including
SystemId,SystemCreatedAt,SystemCreatedBy,SystemModifiedAt,SystemModifiedBy, andtimestamp. These fields cannot be manually updated or written via RapidStart.
Table Filters
Under Table -> Filters, consultants can define export filter criteria. For example, when exporting existing Customer master records to build a migration template, adding the filter Blocked = No prevents inactive or obsolete legacy accounts from being extracted into the workbook.
Field Validation Rules: The "Validate Field" Toggle
On the Config. Package Field List, every field has an Include Field checkbox and a Validate Field checkbox:
- Include Field: Determines whether the field is exported to the Excel template and parsed during import.
- Validate Field: Controls whether the Business Central application server executes the AL
OnValidatetrigger code when data is imported into that field.- When Enabled (Standard Best Practice): Business Central enforces business logic rules, verifies that referenced foreign keys exist in parent tables (e.g., verifying that a
Customer Posting Groupentered in the customer record actually exists in Table 92), and formats strings. - When Disabled (Bypass): The data is inserted directly into the table without executing validation code. While this can expedite processing or permit temporary ingestion of non-standard codes, it bypasses database integrity checks and can cause corrupt foreign key relationships. It should only be disabled under strict, exceptional circumstances.
- When Enabled (Standard Best Practice): Business Central enforces business logic rules, verifies that referenced foreign keys exist in parent tables (e.g., verifying that a
Processing Rules & Processing Codeunits
Under Table -> Processing Rules, consultants can assign custom AL processing codeunits. This enables custom data transformations, conditional record generation, or automated assignment of default dimensions during the package application phase.
The RapidStart Data Migration Lifecycle: Step-by-Step
The end-to-end execution of a Configuration Package follows a disciplined five-stage lifecycle:
RapidStart Execution Pipeline:
[1. Define Package & Tables]
│
▼
[2. Export to Excel Template]
│ (Populate cleansed legacy data)
▼
[3. Import from Excel]
│ (Loads data into Staging Tables)
▼
[4. Validate & Diagnose] ──► [Config. Package Errors Window]
│ (Fix in staging or re-import)
▼ (0 Errors)
[5. Apply Package] ──► [Live Business Central Tables]
Stage 1: Exporting the Excel Template
On the Configuration Package Card, selecting Package -> Export to Excel generates an .xlsx workbook. Each table included in the package becomes an individual worksheet tab named after the Table ID and Caption. The workbook incorporates built-in schema definitions:
- Column headers contain field captions, technical field IDs, data types (e.g.,
Text[50],Code[20],Decimal,Boolean), and maximum field lengths. - Primary Key fields are marked with an asterisk (
*) to indicate that they are mandatory unique identifiers.
Stage 2: Data Cleansing & Excel Guidelines
When populating the Excel template, consultants must adhere to strict formatting conventions:
- Do Not Modify Sheet Names or Headers: Renaming worksheet tabs, deleting technical header rows, or reordering columns can cause the import parser to reject the file.
- Leading Zeros in Code Fields: Account numbers, postal codes, and customer codes with leading zeros (e.g.,
00123) must be formatted as Text in Excel. If formatted as General/Number, Excel strips the leading zeros, creating invalid master codes. - Case Sensitivity on Code Fields: Values in
Codefields are automatically converted to uppercase by Business Central, but referenced foreign keys must match existing setup codes exactly. - Date Formats: Dates must conform to standard ISO formats (
YYYY-MM-DD) or the regional settings of the Business Central user account.
Stage 3: Importing from Excel into Staging
Selecting Package -> Import from Excel reads the populated workbook into Business Central. The records are placed into intermediate staging tables. At this stage, the No. of Package Records column reflects the imported row count, while live database tables remain completely untouched.
Stage 4: Error Diagnosis in the Package Errors Window
Upon import, Business Central automatically executes schema and type validation. If errors occur, the No. of Package Errors column highlights the total error count in red text.
Drilling into the error count opens the Config. Package Errors window, which provides comprehensive diagnostic data:
- Field Caption: Pinpoints the exact field that failed validation.
- Invalid Value: Displays the rejected text or number from the Excel cell.
- Error Text: Provides the exact AL error message (e.g., "The field Customer Posting Group of table Customer contains a value (RETAIL) that cannot be found in the related table (Customer Posting Group).").
Consultants have two options for resolving errors:
- Direct In-App Staging Correction: Open the Config. Package Records subpage, correct the invalid value directly in the grid, and select Validate.
- Template Correction & Re-Import: Correct the source Excel spreadsheet and re-import the file. Business Central updates the existing staged records based on primary key matching.
Stage 5: Applying the Package
Once the error count reaches zero, the consultant selects Apply Package (or Apply Data for an individual table). Business Central commits the staged records into the live database tables, creating operational records.
Relational Data Migration Sequencing & Dependency Tiers
Because Business Central rigorously enforces relational database integrity during validation, importing tables out of order results in cascading validation failures. Data migration must proceed through four sequential tiers:
| Tier | Migration Category | Representative Table IDs | Dependency Rationale |
|---|---|---|---|
| Tier 1: Foundation Setup | System parameters, units, currencies, and codes | Table 4 Currency<br/>Table 10 Country/Region<br/>Table 204 Unit of Measure<br/>Table 308 No. Series<br/>Table 3 Payment Terms | Must exist before any financial setup or master data can reference currency codes, postal addresses, or payment conditions. |
| Tier 2: Posting & Accounting Infrastructure | Chart of Accounts and posting matrices | Table 15 G/L Account<br/>Table 92 Customer Posting Group<br/>Table 93 Vendor Posting Group<br/>Table 252 General Posting Setup<br/>Table 352 Default Dimension | Master data (Customers, Vendors, Items) cannot be validated without valid G/L accounts and posting groups assigned to them. |
| Tier 3: Master Data | Core business entities | Table 18 Customer<br/>Table 23 Vendor<br/>Table 27 Item<br/>Table 14 Location<br/>Table 5600 Fixed Asset | Master entities require Tier 1 codes and Tier 2 posting groups. They must be fully established before transactional opening journals can be created. |
| Tier 4: Transactional Openings | Opening balances and unposted journals | Table 81 Gen. Journal Line<br/>Table 83 Item Journal Line<br/>Table 5621 FA Journal Line | Journals reference Master Data (Customer No., Item No.) and Posting Groups. They represent the final stage of data migration. |
[!WARNING] Circular Dependency Pitfall: In some implementations, circular dependencies emerge (for example, a Customer record requires an assigned Salesperson/Purchaser code, while the Salesperson requires a User or G/L Account). In such scenarios, consultants import the primary entity with non-mandatory fields blank, import the secondary entity, and execute a second update package to populate the cross-referenced fields.
When preparing a Configuration Package to import new Customer master records (Table 18), which type of field must be excluded from the package fields to prevent import failures?
In what sequence should data migration packages be imported and applied into Dynamics 365 Business Central to avoid relational integrity and foreign key validation errors?
After importing data from an Excel spreadsheet into a Configuration Package, a consultant notices that the 'No. of Package Errors' column displays 14 errors. What is the correct procedure to investigate and resolve these errors?