ProductionForecastService.ForecastGeneration

// Id: #129004
using EnergyDataHub.Data.Services;

var productionForecastService = Activate<ProductionForecastService>();
await productionForecastService.ForecastGeneration(
    FromJson<Location>("{\"Id\":1,\"Guid\":\"9b78cdd4-8dd4-49ba-a1f4-c8e90a9a2285\",\"Name\":\"Babindub\",\"Latitude\":44.096917,\"Longitude\":15.34175,\"Country\":null,\"CountryId\":5,\"WeatherData\":null}"),
    <VALUE IS TOO BIG>,
    FromJson<ForecastLocationSettings>("{\"WeatherProvider\":1,\"LocationName\":\"Babindub\",\"InstallationYear\":2019,\"ModelPath\":\"/root/predcition/models/X_Kosore_model.keras\",\"ScalerPath\":\"/root/predcition/models/X_Kosore_scaler.gz\",\"OutputFactor\":2.97}"));

Parameters

CurrentCulture
""
CurrentUICulture
""

State

12/01/2025 05:10:18 (+7.217s) Failed

An exception occurred during performance of the job.

System.InvalidOperationException (edh:2561946)

Sequence contains no matching element

System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.ThrowHelper.ThrowNoMatchException()
   at EnergyDataHub.Data.Services.XProductionForecastStorageService.SaveProductionForecast(List`1 forecasts, Location location, ForecastLocationSettings forecastSettings)
   at EnergyDataHub.Data.Services.ProductionForecastService.Forecast(Location location, IPredictionInput weatherForecastDto, ForecastLocationSettings forecastSettings, IProductionForecastStorageService storageService)
   at EnergyDataHub.Data.Services.ProductionForecastService.ForecastGeneration(Location location, XWeatherResponse weatherForecastDto, ForecastLocationSettings forecastSettings)
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+54m 8.632s Processing

Server:
edh:2561946
Worker:
466db011

+19ms Enqueued

12/01/2025 04:16:02 Created