ProductionForecastService.ForecastGeneration

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

var productionForecastService = Activate<ProductionForecastService>();
await productionForecastService.ForecastGeneration(
    FromJson<Location>("{\"Id\":3,\"Guid\":\"67c24cf4-1f3f-47f9-8163-a840f3c66119\",\"Name\":\"Tarabnik\",\"Latitude\":43.606111,\"Longitude\":16.917222,\"Country\":null,\"CountryId\":5,\"WeatherData\":null}"),
    <VALUE IS TOO BIG>,
    FromJson<ForecastLocationSettings>("{\"WeatherProvider\":1,\"LocationName\":\"Tarabnik\",\"InstallationYear\":2019,\"ModelPath\":\"/root/predcition/models/X_Kosore_model.keras\",\"ScalerPath\":\"/root/predcition/models/X_Kosore_scaler.gz\",\"OutputFactor\":0.633333}"));

Parameters

CurrentCulture
""
CurrentUICulture
""

State

12/03/2025 23:54:45 (+5.113s) 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)

+3h 16m Processing

Server:
edh:2561946
Worker:
db69a40e

+16ms Enqueued

12/03/2025 20:38:19 Created