IWindAndSolarGenerationSyncJob.Run

// Id: #47119
using EnergyDataHub.Data.Hangfire.Jobs;

var windAndSolarGenerationSyncJob = Activate<IWindAndSolarGenerationSyncJob>();
await windAndSolarGenerationSyncJob.Run();

Parameters

RecurringJobId
"IWindAndSolarGenerationSyncJob"
Time
1754245810
CurrentCulture
""
CurrentUICulture
""

State

08/03/2025 18:30:24 (+14.059s) Failed

An exception occurred during performance of the job.

CsvHelper.MissingFieldException (edh:654982)

Field at index '7' does not exist. You can ignore missing fields by setting MissingFieldFound to null. IReader state: ColumnCount: 0 CurrentIndex: 7 HeaderRecord: ["DateTime","ResolutionCode","AreaCode","AreaTypeCode","AreaName","MapCode","ProductionType","ActualGenerationOutput","ActualConsumption","UpdateTime"] IParser state: ByteCount: 0 CharCount: 14417917 Row: 129993 RawRow: 129993 Count: 7 RawRecord: 2025-08-01 23:30:00.000 PT15M 10YAT-APG------L CTY AT CTY AT Hy

CsvHelper.MissingFieldException: Field at index '7' does not exist. You can ignore missing fields by setting MissingFieldFound to null.
IReader state:
   ColumnCount: 0
   CurrentIndex: 7
   HeaderRecord:
["DateTime","ResolutionCode","AreaCode","AreaTypeCode","AreaName","MapCode","ProductionType","ActualGenerationOutput","ActualConsumption","UpdateTime"]
IParser state:
   ByteCount: 0
   CharCount: 14417917
   Row: 129993
   RawRow: 129993
   Count: 7
   RawRecord:
2025-08-01 23:30:00.000	PT15M	10YAT-APG------L	CTY	AT CTY	AT	Hy

   at CsvHelper.Configuration.ConfigurationFunctions.MissingFieldFound(MissingFieldFoundArgs args)
   at CsvHelper.CsvReader.GetField(Int32 index)
   at lambda_method25690(Closure)
   at CsvHelper.Expressions.RecordCreator.Create[T]()
   at CsvHelper.CsvReader.GetRecords[T]()+MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at EnergyDataHub.Data.Services.SftpService.LoadGenericData[DataClass,CsvMapper](String fileLocation, SftpClient client)
   at EnergyDataHub.Data.Services.SftpService.MapDataToEachArea[DataClass,CsvMapper](String remoteDirectory, List`1 dataMethods, Int32 retryCount)
   at EnergyDataHub.Data.Services.SftpService.MapDataToEachArea[DataClass,CsvMapper](String remoteDirectory, List`1 dataMethods)
   at EnergyDataHub.Data.Hangfire.Jobs.WindAndSolarGenerationSyncJob.Run()
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+7ms Processing

Server:
edh:654982
Worker:
90c6b077

+2ms Enqueued

Triggered by recurring job scheduler

08/03/2025 18:30:10 Created