ProductionForecastService.ForecastGeneration

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

var productionForecastService = Activate<ProductionForecastService>();
await productionForecastService.ForecastGeneration(
    FromJson<Location>("{\"Id\":10,\"Guid\":\"4038616b-b2cf-46eb-9c0e-5fbe6c3efbe1\",\"Name\":\"Kosore\",\"Latitude\":43.933218,\"Longitude\":16.409534,\"Country\":null,\"CountryId\":5,\"WeatherData\":null}"),
    <VALUE IS TOO BIG>,
    FromJson<ForecastLocationSettings>("{\"WeatherProvider\":1,\"LocationName\":\"Kosore\",\"InstallationYear\":2022,\"ModelPath\":\"/root/predcition/models/X_Kosore_model.keras\",\"ScalerPath\":\"/root/predcition/models/X_Kosore_scaler.gz\",\"OutputFactor\":1.0}"));

Parameters

CurrentCulture
""
CurrentUICulture
""

State

12/02/2025 08:39:00 (+8.027s) 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)

+2h 3m Processing

Server:
edh:2561946
Worker:
e6e0cd46

+18ms Enqueued

12/02/2025 06:34:53 Created