Data Import Order
When importing data from templates or external systems, follow this order to ensure proper referential integrity:
Phase 1: Setup & Configuration
- Payroll Setup – Configure system-wide settings first
- Number Series – Set up all number series for automatic numbering
- Departments – Create organizational departments
- Positions – Create position codes with default settings
Phase 2: Pay, Deduction & Benefit Codes (PDB)
- Pay Codes – Create pay code master records
- Pay Code Groups – Create groupings and assign pay codes to groups
- Pay Code Posting Groups – Set up GL account mappings for pay codes
- Pay Code Posting Setup – Link pay codes to posting groups
- Deductions – Create deduction master records
- Deduction Groups – Create groupings and assign deductions to groups
- Deduction Posting Groups – Set up GL account mappings for deductions
- Deduction Posting Setup – Link deductions to posting groups
- Benefits – Create benefit master records
- Benefit Groups – Create groupings and assign benefits to groups
- Benefit Posting Groups – Set up GL account mappings for benefits
- Benefit Posting Setup – Link benefits to posting groups
Phase 3: Payroll Calculation Rules
- Processing Functions – Define calculation functions with codeunit IDs
- Processing Parameters – Configure parameters for each processing function
- Payroll Ruleset Headers – Create ruleset templates
- Payroll Ruleset Lines – Define calculation steps and priorities within rulesets
Phase 4: Employee Data
- Employees (Base BC) – Create or verify employee master records exist
- Employee Positions – Assign employees to positions and departments
- Employee Allowances – Configure tax allowances per employee (if applicable)
- Employee Deposits – Set up bank accounts with priorities for each employee
- Employee PDB Assignments – Override default pay/deduction/benefit assignments per employee
Phase 5: Pay Schedules & Templates (Optional)
- Pay Schedules – Define pay cycle frequencies (weekly, bi-weekly, monthly)
- Pay Batch Templates – Create reusable templates for recurring payroll batches
Phase 6: Transactional Data
- Time Entries – Import historical or current time entries (if using time tracking)
- Approved Time Entries – Import pre-approved time entries
- YTD Values – Import year-to-date values for mid-year implementations
- Income Tax Worksheets – Import historical tax calculation data
Import Considerations
Critical Dependencies:
- ⚠️ Pay Codes must exist before Pay Code Groups can assign members
- ⚠️ Posting Groups must exist before Posting Setup can create mappings
- ⚠️ Processing Functions must exist before Ruleset Lines can reference them
- ⚠️ Positions must exist before Employee Positions can assign them
- ⚠️ Employees must exist before any employee-specific records (deposits, positions, allowances)
Recommended Import Method:
- Use Configuration Packages in Business Central for bulk imports
- Validate each phase before proceeding to the next
- Test with a small subset of records before full import
- Always backup before importing large datasets
Post-Import Validation:
- Verify all posting setup records have GL accounts assigned
- Check that all employees have valid positions and departments
- Confirm all employee deposits have priorities set correctly
- Test a sample pay batch calculation with imported data
- Review Payroll Log for any setup warnings or errors