ProductionForecastService.ForecastGeneration

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

02/04/2026 19:37:53 (+8.855s) Failed

An exception occurred during performance of the job.

CsvHelper.TypeConversion.TypeConverterException (edh:2128791)

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

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


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

+35m 42.905s Processing

Server:
edh:2128791
Worker:
417b6c58

+29ms Enqueued

02/04/2026 19:02:01 Created