Skip to main content

Troubleshooting

Symptom-based guide. Container names are those in docker-compose.yml (konsolidat_backend, konsolidat_worker, konsolidat_scheduler, konsolidat_clickhouse, konsolidat_mariadb, konsolidat_caddy).

Excel add-in​

SymptomCauseFix
#NAME? on every K. cellThe add-in did not load, or Excel on the web could not fetch functions.json cross-originOpen the task pane: its Instructions & testing panel logs associate=no or names=no. Re-sideload the manifest; for Excel on the web the server must send a CORS header on functions.json
#N/A with "Not logged in"No tokenSign in on the Konsolidat task pane; the token (X-Konsolidat-Token) lasts 8 hours
Cells go #N/A after a working sessionToken expiredSign in again
#N/A with "No trial balance for …"An actuals read of a period that has no trial balance (konsol#401)Submit the trial balance for that entity and period, or read another period
#VALUE!The add-in or the server refused the cell; the cell message names it (Invalid year, a malformed dimensions argument, an undeclared dimension, "Unknown request key", an undeclared period, no access to the entity)Fix the argument; check the Messages panel
#VALUE! with "takes at most … arguments"A formula written before konsol#287, with two dimension argumentsRewrite it with one dimensions argument; see Rewriting formulas
Value 0 where you expect dataThe period is loaded but has no rows for that account, scenario or dimensions, or a budget has no amountCheck the account, the dimensions filter, the Dataset's default measure, and that the build ran
K.EPMSAVE shows #N/AThe server refused the write: locked cycle (423), stale cell (409), an undeclared budget dimension: the cell message says which. No write access to the entity, account or dimension shows "Not logged in" (HTTP 403)Check the Budget Cycle status, the dimensions names and your Budget role
Period 13 or CLS failsThe year does not declare period 13Add the closing period on the EPM Fiscal Year and Generate Periods
Slow sheetMany distinct (dataset, measure, dimensions, scenario, layer) groupsEach group is one query; reduce the variety per sheet

API​

SymptomCauseFix
401Not logged inPOST /api/method/login, or send the add-in token
403Role gate (frappe.only_for) or entity scopeCheck the user's roles and User Permissions on Entity
403 on a GET from the Deskfrappe.xcall defaults to POST; GET-only methods refuse itCall with GET
417 / ValidationError naming periodsUndeclared period tokenUse a period the EPM Fiscal Year declares
423 LockedBudget Cycle is lockedUnlock the cycle or write to an open one
409 Conflict on budget_cell_savebase_modified is staleRe-read the cell; the response carries the current value and timestamp
Batch size N exceeds maximum of 2000Too many itemsSplit the request
A GET that writes "did nothing"Frappe rolls back a GETWrites must be POST (methods=["POST"])
null in a batch responsePer-item validation errorRead the errors array

dbt builds​

dbt runs inside the Frappe image. Do not install it on the host.

SymptomCauseFix
Build Approval stays Pending ReviewNobody approved it, or a stuck one blocks the scopeApprove from the record's Actions menu; the 15-minute reaper releases stuck Approved/Running rows
assert_staging_not_stale fails with LAGGINGA reference table was missed by the latest reconcile_allRead the Error Log for the failed sync, fix the cause, run reconcile_all
... EMPTIEDThe watermark promises rows the table lacks (wiped ClickHouse, restore in the wrong order)Run reconcile_all, rebuild
... NO_RECONCILE_RUNNo reconcile has run since the run-id column appearedRun reconcile_all
Governed-rate pre-hook failsA translated currency has no Group Exchange Rate for the periodCreate and approve the rate
Governed-chart guard failsThe chart is not published, or an account lacks fx_methodPublish the chart
Models build against nothing on a fresh sitedbt ran before bench migrate wrote the reference tablesdocker compose --profile setup run --rm configurator, then dbt_init
Manual build needed—docker compose --profile setup run --rm dbt_init (append dbt arguments to scope it: dbt_init run --select gold_trial_balance+); see the Operations Runbook
Full rebuild neededSchema changedocker compose --profile setup run --rm dbt_init build --full-refresh (a schema-changing Build Approval does this itself)

ClickHouse​

SymptomCauseFix
Container unhealthyStartup failuredocker logs konsolidat_clickhouse
Port 8123 not reachable from another hostPorts bind to 127.0.0.1 by defaultSet CLICKHOUSE_BIND only if you mean to expose it
Table doesn't existModels not builtRun a build
Disk fullUncapped logs before konsolidat 302250a, or data growthLogs are capped at 3 × 100 MB per container; check sizes with SELECT database, formatReadableSize(sum(bytes_on_disk)) FROM system.parts WHERE active GROUP BY database
Write-through table empty after restoreReference tables are not in the backupreconcile_all rewrites them from konsol
epm_raw empty after restorebackup.sh skips epm_rawRebuild from the Trial Balance Submissions (konsol PR #381)

Frappe / konsol​

SymptomCauseFix
New code, old behaviourdocker compose up -d does not migrate./deploy.sh, or run the configurator (bench migrate)
deploy.sh refuses to start.env pins FRAPPE_BRANCH=version-15Back up, delete the line or set version-16, re-run
Background job never runsWorker not running or on old codedocker compose ps; docker restart konsolidat_worker
/app/... linkFrappe v16 Desk is at /deskOld URLs redirect; update bookmarks
API returns HTMLWrong path/api/method/konsol.api.<method>
"Not permitted" on EPM SettingsNeeds System Manager / EPM AdminGrant the role
Sign-off throws after an upgradeMigrate not run (new Close Settings fields)bench migrate inside konsolidat_backend

Close app​

SymptomCauseFix
"No close role"User has none of EPM Admin, EPM Analyst, Entity Accountant, EPM UserAssign a role
Entity missing from Trial balancesNo Ownership Period covers the period, or no User PermissionCreate the Ownership Period; grant the permission
Sign-off blockedA blocking gap: missing TB, no rate, draft IC Balance with a rule, undeclared tolerance, Red checksEach gap is listed with its fix on the Sign-off screen
Period shows "Re-sign needed"An approval after sign-off changed the fingerprinted numbersRun Checks and sign again
Remind refusedNobody holds a User Permission on the entityGive the accountant a User Permission on Entity
Rate missing for a currencyEntity has no functional currency, or no rate approvedSet the currency on the Entity; approve the rate

Airbyte (optional)​

SymptomCauseFix
D365 sync returns 401Expired client secretUpdate it on the Connector and re-provision
Destination errorWrong host or databaseDestination is epm_raw at the pinned 172.30.0.10:8123 (scripts/setup-airbyte.sh)
Sync stuck RunningTimeout on a large entityUse incremental sync; check Connector Health

Common patterns​

"It was working yesterday"​

  1. docker compose ps — every container healthy?
  2. curl http://localhost:8069/api/method/konsol.api.health
  3. Connector Health list and sync_watermark — anything LAGGING?
  4. Was the last Build Approval approved and did it finish?

"Numbers look wrong"​

  1. Is the period signed off, and has anything changed since (Audit trail)?
  2. Query epm_gold directly to separate an API problem from a data problem.
  3. Period token: month, P07, Q1, FY, CLS?
  4. Dataset and measure: which default measure does the Dataset declare?
  5. Run Checks: which assertion is Red, and which rows?

Getting help​