ProductionForecastService.ForecastGeneration

// Id: #164794
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

02/22/2026 15:02:54 (+7.265s) Failed

An exception occurred during performance of the job.

CsvHelper.TypeConversion.TypeConverterException (edh:735781)

The conversion cannot be performed. Text: '8088495' MemberName: Timestamp MemberType: System.DateTime TypeConverter: 'CsvHelper.TypeConversion.DateTimeConverter' IReader state: ColumnCount: 0 CurrentIndex: 0 HeaderRecord: ["","Forecast"] IParser state: ByteCount: 0 CharCount: 1488 Row: 50 RawRow: 50 Count: 2 RawRecord: 8088495,

CsvHelper.TypeConversion.TypeConverterException: The conversion cannot be performed.
    Text: '8088495'
    MemberName: Timestamp
    MemberType: System.DateTime
    TypeConverter: 'CsvHelper.TypeConversion.DateTimeConverter'
IReader state:
   ColumnCount: 0
   CurrentIndex: 0
   HeaderRecord:
["","Forecast"]
IParser state:
   ByteCount: 0
   CharCount: 1488
   Row: 50
   RawRow: 50
   Count: 2
   RawRecord:
8088495,


   at CsvHelper.TypeConversion.DefaultTypeConverter.ConvertFromString(String text, IReaderRow row, MemberMapData memberMapData)
   at CsvHelper.TypeConversion.DateTimeConverter.ConvertFromString(String text, IReaderRow row, MemberMapData memberMapData)
   at lambda_method8905(Closure)
   at CsvHelper.Expressions.RecordCreator.Create[T]()
   at CsvHelper.CsvReader.GetRecords[T]()+MoveNext()
   at System.Linq.Enumerable.SelectEnumerableIterator`2.ToList()
   at EnergyDataHub.Data.Services.ProductionForecastService.RunForecastScript(ForecastLocationSettings forecastSettings, String predictorsPath)
   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)

+12m 57.477s Processing

Server:
edh:735781
Worker:
8f43d26b

+28ms Enqueued

02/22/2026 14:49:49 Created