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.cs — NewReportSetService does not resolve the repository
Domain.Application/ReportProcessor.cs — GetRuntimeSettings 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
Summary
ExecuteConsolidatedQueryin report end scripts silently returns an emptyDataTablebecause
RegulationShareRepositoryis null inReportRuntimeSettings.Root Cause
ReportToolSettings(v1.0.0) has noIRegulationShareRepositoryproperty.ReportProcessor.GetRuntimeSettingstherefore never setsReportRuntimeSettings.RegulationShareRepository, triggering the guard:The repository is registered in the DI container and used in
PayrunJobWorkerServiceand
PayrunPreviewService, but was not wired through the report execution path.Affected Files
Domain.Application/ReportToolSettings.cs— missingIRegulationShareRepositorypropertyApi.Core/ApiServiceFactory.cs—NewReportSetServicedoes not resolve the repositoryDomain.Application/ReportProcessor.cs—GetRuntimeSettingsdoes not forward itSymptom
Consolidation reports using
ExecuteConsolidatedQueryreturn "Report without data"despite
RegulationShareentries existing in the database.Version
Backend v1.0.0