Setting up a fresh site
The order to load configuration into a new konsol site, from an empty install to a consolidated month. The data path is trial balances uploaded as CSV or Excel. Konsol defines the shape of every input, and nothing depends on an ERP connector or Airbyte.
Konsol also ships a read-only Konsol Setup page (konsol/setup.py, konsol#407) that shows which of these areas are done, partly done or not done on your site. Use it to see where you are; this page explains the order.
Each step says what it needs before it. A need marked required is enforced by konsol or the warehouse build, and the work is refused without it. A need marked preference is only a good order. The two are collected at the end.
0. Stack and install (automatic)
Installing konsol on a site (after_install, after_sync) and every bench migrate (after_migrate) create:
- the EPM roles (
EPM User,EPM Analyst,EPM Admin,Entity Accountantand the four budget roles); - the approval workflows, including the one on Build Approval;
- the ISO Currency list, with each currency's USD Reference (log10), used to catch mistyped exchange rates. It fills a reference only where it is unset, so your edit survives a migrate;
- the ClickHouse tables konsol writes to (
epm_staging.*, includingmain_accounts). On a fresh Docker site the install queues the first fill as a background job, and the configurator sets the ClickHouse target afterwards. If the target changed, the fill is queued again.
The Build Scope rows (staging, actuals, scenarios, consolidation, reporting, chart) are fixtures (hooks.py fixtures, fixtures/build_scope.json), imported on every migrate, not created by the install hooks.
Check EPM Settings points at your ClickHouse. A site that loads only trial balances does not need Skip Airbyte Sync: the build preflight no longer reads connector or Airbyte sync status (check_raw_data_available in konsol/tasks.py). It builds when claimed trial balance rows exist, and refuses with "No claimed trial balance rows" when they do not.
1. Users and roles
Create users and give each one a role:
| Job title | Role | Does |
|---|---|---|
| Close Lead | EPM Admin | Publishes the chart, approves rates, adjustments and builds, uploads trial balances in bulk, closes periods |
| Group Accountant | EPM Analyst | Drafts adjustments, rates, ownership and intercompany setup, and requests builds |
| Entity Accountant | Entity Accountant | Submits trial balances for their assigned entities only |
Limit each Entity Accountant to their entities with User Permissions on Entity. Without any User Permission a user is unrestricted. A site that wants the opposite ticks restrict_entities_by_default in EPM Settings.
Need: none. Order: preference, but every later step is role-checked, so create at least the Close Lead first.
2. Fiscal years and periods
Periods are declared, never assumed. A period exists only as a row of an EPM Fiscal Year. A trial balance, or any work, against an undeclared year or period is refused (PeriodNotDeclared, konsol/period_status.py).
Create an EPM Fiscal Year for each year you will load, choose its pattern (Monthly (12), 13 Periods (4 Weeks), 4-4-5 or Custom), and use Generate Periods. Only EPM Admin or System Manager may generate. Opening and Closing period types take trial balances only if you tick the matching check in EPM Settings → Close.
The old Period Status doctype is retired and read-only. Do not create one.
3. Group chart of accounts
Main Account list → Upload chart → Check → Load → Publish chart, then approve the chart build.
- Check reports every problem in the file at once and writes nothing.
- Load writes all rows or none. A new code becomes a Draft. An existing row is updated and keeps its status.
- Publish publishes parents before children and requests one
chartbuild.
Required columns are main_account, account_name and chart_of_accounts. One file holds one chart. For a leaf account to be published it must have account_name, chart_of_accounts, account_type, statement_section, normal_balance, time_balance and fx_method. If you leave normal_balance, time_balance or fx_method blank, konsol fills them from the type and section (apply_defaults in konsol/group_chart_model.py). A heading needs only name and chart. The rules:
- Balance sheet accounts use
closingorhistoricalandtime_balancebalance. P&L accounts useaverage(orclosing) andflow. - Only an Equity account may use
historical(konsol#239). - A code named as another row's parent is a heading. You can't post to a heading, and a heading can't carry
allow_icoris_retained_earnings. - A child must be on the same statement as its heading and in the same chart.
- At most one Published account per chart may have
is_retained_earningsset.
Need: none for the file. Trial balances are validated against the Published chart, so this comes before them (required, konsol/tb_bulk.py: chart_accounts()). An account missing from the chart is refused on submission.
4. Entities
Create an Entity for every legal entity in the group, including those that have no trial balance. Each needs its Entity Code (the code shown as data_area_id in uploads and in the group tree; konsol upper-cases it) and its Functional Currency.
Need: none. The Functional Currency is required before trial balances: every row of an upload carries a currency, and the check refuses an entity-period whose currency differs from the entity's Functional Currency, or an entity with none. It is also required before a period can be closed (assert_rates_complete in konsol/group_rates.py). Saving an entity with a currency requests a consolidation build.
5. Consolidation Group tree
Create the group's own node, with no entity, and its Reporting Currency. Consolidation reads the reporting currency and the intercompany settings from that node. Then add nodes for entities and sub-groups beneath it. The tree view shows the structure.
Need: every entity node links to an existing Entity (required). An entity can be a node of one group only (_validate_entity_in_one_node in consolidation_group.py).
6. Ownership Periods
Give every node except the root an Ownership Period: the owner node, the dates, the percentage the owner holds, and the method (full, equity or none). proportional is still in the list but is refused on save, because proportional consolidation is not implemented (konsol#429, ownership_period.py). The owner defaults to the node's tree parent. Roots take no period. An Ownership Period is submittable, and only submitted periods reach the warehouse.
Need: the Consolidation Group tree (required; the owner must be a node of the same hierarchy, owner_refusal in ownership_period.py). An entity needs a submitted period covering the month on every link up to the group. A missing link fails the build and names the entity (assert_ownership_chain_complete, konsolidat dbt_project/tests). Sign-off also reports a submitted trial balance with no covering ownership as a configuration gap (tb_without_ownership, konsol/close/signoff_gate.py).
7. Exchange rates
- Group Exchange Rate: one Closing and one Average rate per currency pair and period, entered as a quote plus its "quoted per" unit (1, 10, 100, 1,000 or 10,000), then submitted for approval. The pair is the entity's functional currency into the group's Group Reporting Currency.
- Historical Equity Rate: for accounts declared with
fx_methodhistorical. A rate is keyed by the owning group, the entity, the account and the To currency it converts into, and applies from its rate date (konsolidat#287, konsol#374). A group presenting in EUR beneath a parent presenting in USD needs a rate for each currency. Where no rate covers a period, translation falls back to the closing rate. That fallback is declared, not silent: the warn-level testassert_declared_historical_has_a_ratenames each account and period.
Need: Entities with Functional Currency and the group's Reporting Currency (required). The consolidation build stops before it deletes anything when a translated currency has no approved Closing and Average rate, or has duplicate, invalid or implausible ones (governed_rate_guard in konsolidat macros/governed_rates.sql). Closing a period is refused on the same gap. Rates are not needed to upload trial balances.
8. Intercompany
Only needed when trial balance rows carry an intercompany partner:
- Intercompany Account pairs: each account and its counterpart, published. The account must have
allow_icset in the chart. - On the group's own node: the Intercompany Difference Account and Intercompany Difference Tolerance. The account must be in the chart. The tolerance counts booking differences, and also the fx difference of a balance-sheet pair across currencies (konsol#305-W3-5). Other fx differences, such as a P&L pair across currencies, do not count (
gold_ic_reconciliation.sql). - IC Elimination Rule (rule type
unrealized_profit) and IC Balance: only for eliminating unrealised profit on intercompany inventory. Pair eliminations come from the Intercompany Account pairs.
Need: the chart (required). The partner column is optional on every row. A row on an intercompany account without a partner loads, is never eliminated, and consolidation lists it as unmatched.
9. Optional reference data
- Reporting Hierarchy: management trees over a Dimension.
- Dimension Mapping: maps an ERP's source values to canonical dimension values.
- Cash Flow Category: per-account cash flow category and line item.
None is needed for the first consolidated month.
10. Trial balances
Open Trial Balance Upload → New, attach the file, choose the Amount Basis, then Check → Load. Only the Close Lead (EPM Admin) or System Manager loads in bulk. One CSV or Excel file (first sheet) covers many entities and periods, with columns data_area_id, fiscal_year, fiscal_period, main_account, debit, credit, currency. Optional columns are description, partner_data_area_id and amount_basis. The amounts are in each entity's functional currency, and both columns are positive.
Every entity-period must declare what its amounts are: this period's movement, the year-to-date movement, or the closing balance at period end. The file's amount_basis column wins, else the upload's Amount Basis. An entity-period with neither is refused, and so is a build over an undeclared batch. The check refuses:
- an entity you can't access;
- a group node;
- a year or period that is not declared, or a period type that does not take trial balances;
- a closed or locked period;
- a period already submitted;
- an account not in the Published chart;
- a currency other than the entity's Functional Currency;
- a trial balance whose debits don't equal its credits.
The load creates one Trial Balance Submission per entity and period, in the background, and resumes without duplicates. Entity Accountants submit one at a time through Trial Balance Submission. Submitting requests a consolidation build.
Need: fiscal year (2), chart (3) and entity with Functional Currency (4), all required. The group tree, ownership and rates are not needed to upload.
11. Build
Approve the consolidation Build Approval. Submitting a trial balance or an approved rate requests it for you. The warehouse builds:
- the consolidated trial balance;
- currency translation and CTA;
- non-controlling interest;
- intercompany eliminations.
A site with only uploaded trial balances builds without any connector. Submitted trial balances count as its source data.
Need: at least one submitted trial balance, ownership (6) and rates (7), all required as shown above.
12. Close the month
Declare these in Close Settings first. None has a default, and sign-off is blocked until each is set (konsol/close/signoff_gate.py, close_policy_model.py):
- First Close Fiscal Year and First Close Fiscal Period; sign-off and period close are refused until set (konsol#303).
- Self-Approval (Blocked or Allowed with reason) and Rate Move Needing a Reason.
- CTA account and Current-year result account, and the
normal_balanceside of every Published balance-sheet heading in the chart. - A Commentary Threshold (Amount, Percent or both; When Both Are Declared says which rule applies).
- When Published intercompany pairs exist: a non-zero tolerance on the group node (step 8), or Intercompany set to "None in this group".
Then run the assertions (Assertion Run), sign off the run, and use Close Period on the EPM Fiscal Year. After that, submissions and cancellations into the period are refused (assert_open in konsol/period_status.py).
Closing needs a signed Assertion Run for periods from the first close onward (assert_period_closable), and an approved group rate for every translated currency (assert_rates_complete).
Why this order
| Must come first | Before | Kind | Because |
|---|---|---|---|
| Fiscal year (2) | Trial balances (10) | Required | An undeclared period is refused (PeriodNotDeclared) |
| Chart (3) | Trial balances (10), Intercompany (8) | Required | Rows are checked against the Published chart; IC accounts must be in it |
| Entities with Functional Currency (4) | Group tree (5), Trial balances (10) | Required | The tree links to Entities; the upload checks each row's currency |
| Group tree (5) | Ownership (6) | Required | The owner and owned are tree nodes |
| Ownership (6) | Build (11) | Required | A missing link fails the build |
| Exchange rates (7) | Build (11), Close (12) | Required | The build guard and the close gate refuse a missing rate |
| Close Settings (12): first close, Self-Approval, Rate Move, CTA and result accounts, balance-sheet heading sides, Commentary threshold | Sign-off, Close | Required | Each blocks sign-off and has no default |
| Intercompany setup (8) | Sign-off | Required when Published pairs exist | A zero group tolerance blocks sign-off unless Close Settings says "None in this group" (ic_api.tolerance_gap) |
| Intercompany setup (8) | The build that should eliminate | Preference | Without a partner or a pair nothing is eliminated, and the build refuses nothing |
| Users and roles (1) | Everything | Preference | Roles are checked at each action, so create them before you need them |
| Group tree, ownership, rates | Trial balance upload | Preference | The upload does not read them. Sign-off reports a gap if ownership is missing |
See also: Deployment and Operations Runbook.