Skip to main content

Troubleshooting

Symptom-based debugging guide for Konsolidat.

Excel / VBA Issues​

SymptomCauseFix
All EPM cells show 0Cache empty, not refreshedPress Ctrl+Shift+R
EPM cells show 0 after refreshNo data for the queried dimensionsVerify entity, year, period, account exist in ClickHouse
#VALUE! error in EPM cellWrong parameter typesEntity and account must be strings (in quotes); year must be numeric
#NAME? errorVBA module not loadedImport OpenEPM.bas via Alt+F11 → File → Import
"Compile error: User-defined type not defined"Missing VBA referenceAdd Microsoft Scripting Runtime and Microsoft XML, v6.0 in Tools → References
Refresh does nothingNo EPM formulas foundCheck cells contain =EPM(, =EPM_BUDGET(, etc. (exact prefix match)
"Object variable or With block not set"Cache not initializedClose and reopen the workbook, or run EPM_ClearCache
Login prompt keeps appearingSession expired or auth failedCheck Frappe credentials; verify Frappe is running on the configured URL
"Run-time error '429'"XMLHTTP object creation failedEnsure Microsoft XML, v6.0 reference is enabled
Ctrl+Shift+R doesn't workKey binding not activeClose/reopen workbook (binding is set in Workbook_Open)
Slow refresh (>30s)Large number of unique query groupsReduce variation in measure/scenario/period combos; use period ranges

Diagnostics​

Run EPM_Debug (Alt+F8 → EPM_Debug) to test:

  1. Cache initialization
  2. HTTP object creation
  3. Health endpoint connectivity
  4. Formula scanning
  5. Test batch query

Enable detailed logging with EPM_ToggleLog — check the _EPM_Log sheet for HTTP request/response details.

API Issues​

SymptomCauseFix
401 UnauthorizedNot logged inCall POST /api/method/login first
403 ForbiddenUser lacks permissionCheck Frappe user roles
Invalid scenario: XTypo in scenario nameUse exactly: actuals, budget, or variance
Measure X not allowed for scenario YWrong measure/scenario comboCheck allowed measures
Batch size N exceeds maximum of 2000Too many itemsSplit into multiple requests
ClickHouse query timeoutQuery took >30sCheck ClickHouse health; optimize query dimensions
ClickHouse connection failedClickHouse unreachableVerify ClickHouse is running; check EPM Settings
Empty values array (all zeros)No matching dataQuery ClickHouse directly to verify data exists
null values in responsePer-item validation errorCheck the errors array in the response

Direct ClickHouse Verification​

# Check if data exists for a specific query
curl "http://localhost:8123/?query=SELECT+count(*)+FROM+epm_gold.gold_trial_balance+WHERE+data_area_id='USMF'+AND+fiscal_year=2024+AND+fiscal_period=5"

dbt Issues​

SymptomCauseFix
dbt debug failsBad profiles.ymlCheck ~/.dbt/profiles.yml — host, port, user, password
Database epm_gold does not existInit SQL not runRun clickhouse/init-db.sql manually or restart the Docker container
Seed load failsColumn type mismatchCheck dbt_project.yml column_types config for the seed
Model build fails with ClickHouse errorSQL syntax issueCheck ClickHouse-specific syntax; use adapter macros
Test failures on fresh buildExpected — data-dependentwarn-severity tests may fail without D365 data; error-severity tests should pass
Compilation Error: 'ref' not foundMissing dependencyRun dbt deps to install packages
Runtime Error: relation does not existUpstream model not builtRun dbt build (not just dbt run --select one_model)

Rebuilding from Scratch​

dbt build --full-refresh # Drop all tables and rebuild

ClickHouse Issues​

SymptomCauseFix
Container unhealthyStartup failuredocker logs konsolidat_clickhouse
Port 8123 not respondingContainer not runningdocker compose up -d
"Code: 60. DB::Exception: Table doesn't exist"Tables not createdRun dbt build to create models
Slow queriesLarge table scansCheck ORDER BY keys match query filters
Disk fullData growthCheck sizes with SELECT database, formatReadableSize(sum(bytes_on_disk)) FROM system.parts WHERE active GROUP BY database

Frappe Issues​

SymptomCauseFix
bench start failsPort 8069 in useKill the process: fuser -k 8069/tcp
"konsol app not installed"App not linkedbench --site your-site install-app konsol
EPM Settings not foundDocType not createdRun bench migrate
API returns HTML instead of JSONWrong URL formatUse /api/method/konsol.api.endpoint, not /konsol/api/endpoint
"Not permitted" on EPM SettingsUser lacks System Manager roleGrant the role in Frappe user settings

Airbyte Issues​

SymptomCauseFix
D365 sync returns 401Expired client secretRotate secret in Azure AD, update Airbyte source
Empty sync — 0 recordscross_company not enabledCheck stream settings in Airbyte
Sync stuck at "Running"Timeout on large entityIncrease timeout; switch to incremental sync
ClickHouse destination errorWrong credentialsVerify host, port, database in destination config

Pipeline (Task Pane) Issues​

SymptomCauseFix
Task pane shows blankFrappe not running at manifest URLStart Frappe on http://localhost:8069
Login fails in task paneCORS or cookie issueCheck browser console; verify same-origin setup
Pipeline status stuck on "Queued"Background worker not runningCheck bench start includes workers
"Trigger Pipeline" does nothingPipeline Run doctype missingRun bench migrate

Common Patterns​

"It was working yesterday"​

  1. Check ClickHouse: docker ps → healthy?
  2. Check Frappe: curl http://localhost:8069/api/method/konsol.api.health
  3. Check data freshness: When was the last Airbyte sync?
  4. Check dbt: Was dbt build run after the latest sync?

"Numbers look wrong"​

  1. Query ClickHouse directly to isolate API vs data issues
  2. Check the period — is it 1-12 (month) or a range code (Q1, FY)?
  3. Check the measure — is it the right one for the scenario?
  4. Check dimensions — are cost_center/department filters narrowing results unexpectedly?
  5. Run dbt tests: dbt test — any failures?

Getting Help​