Skip to content

ExecuteConsolidatedQuery silently fails: TenantIsolationLevel not propagated to ReportRuntimeSettings #11

@Giannoudis

Description

@Giannoudis

Summary

ExecuteConsolidatedQuery in report end scripts silently returns an empty DataTable
because TenantIsolationLevel defaults to None in ReportRuntimeSettings,
even when the server is configured with Consolidation or Write.

Root Cause

ReportToolSettings (v1.0.0) has no TenantIsolationLevel property.
ReportProcessor.GetRuntimeSettings never sets it, so ReportRuntimeSettings.TenantIsolationLevel
stays at the default None, triggering:

ExecuteConsolidatedQuery blocked: server TenantIsolationLevel is None (minimum required: Consolidation).

Affected Files

  • Domain.Application/ReportToolSettings.cs — missing TenantIsolationLevel property
  • Api.Core/ApiServiceFactory.csNewReportSetService does not read PayrollServerConfiguration
  • Domain.Application/ReportProcessor.csGetRuntimeSettings does not forward the level

Symptom

ExecuteConsolidatedQuery always returns an empty table in reports,
regardless of the configured TenantIsolationLevel in appsettings.json.

Version

Backend v1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions