Skip to content

ExecuteConsolidatedQuery silently fails: RegulationShareRepository not propagated to ReportRuntimeSettings #10

@Giannoudis

Description

@Giannoudis

Summary

ExecuteConsolidatedQuery in report end scripts silently returns an empty DataTable
because RegulationShareRepository is null in ReportRuntimeSettings.

Root Cause

ReportToolSettings (v1.0.0) has no IRegulationShareRepository property.
ReportProcessor.GetRuntimeSettings therefore never sets
ReportRuntimeSettings.RegulationShareRepository, triggering the guard:

ExecuteConsolidatedQuery: RegulationShareRepository not configured — returning empty table.

The repository is registered in the DI container and used in PayrunJobWorkerService
and PayrunPreviewService, but was not wired through the report execution path.

Affected Files

  • Domain.Application/ReportToolSettings.cs — missing IRegulationShareRepository property
  • Api.Core/ApiServiceFactory.csNewReportSetService does not resolve the repository
  • Domain.Application/ReportProcessor.csGetRuntimeSettings does not forward it

Symptom

Consolidation reports using ExecuteConsolidatedQuery return "Report without data"
despite RegulationShare entries existing in the database.

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