ProductionForecastService.ForecastGeneration

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

01/22/2026 09:11:07 (+1m 47.059s) Failed

An exception occurred during performance of the job.

CsvHelper.TypeConversion.TypeConverterException (edh:1037804)

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

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


   at CsvHelper.TypeConversion.DefaultTypeConverter.ConvertFromString(String text, IReaderRow row, MemberMapData memberMapData)
   at CsvHelper.TypeConversion.DateTimeConverter.ConvertFromString(String text, IReaderRow row, MemberMapData memberMapData)
   at lambda_method13460(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)

+1h 19m Processing

Server:
edh:1037804
Worker:
413c4599

+25ms Enqueued

01/22/2026 07:50:18 Created