IScheduledDayAheadTransferSyncJob.Run

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

var scheduledDayAheadTransferSyncJob = Activate<IScheduledDayAheadTransferSyncJob>();
await scheduledDayAheadTransferSyncJob.Run();

Parameters

CurrentCulture
""
CurrentUICulture
""
RecurringJobId
"IScheduledDayAheadTransferSyncJob"
Time
1744524908

State

04/13/2025 06:15:31 (+22.340s) Failed

An exception occurred during performance of the job.

CsvHelper.MissingFieldException (edh:1072020)

Field at index '5' does not exist. You can ignore missing fields by setting MissingFieldFound to null. IReader state: ColumnCount: 0 CurrentIndex: 5 HeaderRecord: ["DateTime(UTC)","ResolutionCode","OutAreaCode","OutAreaDisplayName","OutAreaTypeCode","OutMapCode","InAreaCode","InAreaDisplayName","InAreaTypeCode","InMapCode","DayAheadCapacity[MW]","TotalCapacity[MW]","UpdateTime(UTC)"] IParser state: ByteCount: 0 CharCount: 28644000 Row: 202117 RawRow: 202117 Count: 5 RawRecord: 2025-04-07 22:00:00 PT60M 10YRO-TEL------P Romania (RO) BZN/C

CsvHelper.MissingFieldException: Field at index '5' does not exist. You can ignore missing fields by setting MissingFieldFound to null.
IReader state:
   ColumnCount: 0
   CurrentIndex: 5
   HeaderRecord:
["DateTime(UTC)","ResolutionCode","OutAreaCode","OutAreaDisplayName","OutAreaTypeCode","OutMapCode","InAreaCode","InAreaDisplayName","InAreaTypeCode","InMapCode","DayAheadCapacity[MW]","TotalCapacity[MW]","UpdateTime(UTC)"]
IParser state:
   ByteCount: 0
   CharCount: 28644000
   Row: 202117
   RawRow: 202117
   Count: 5
   RawRecord:
2025-04-07 22:00:00	PT60M	10YRO-TEL------P	Romania (RO)	BZN/C

   at CsvHelper.Configuration.ConfigurationFunctions.MissingFieldFound(MissingFieldFoundArgs args)
   at CsvHelper.CsvReader.GetField(Int32 index)
   at lambda_method3148(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)
   at EnergyDataHub.Data.Hangfire.Jobs.TransmissionCapacitySyncJob.Run()
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+21ms Processing

Server:
edh:1072020
Worker:
eef46671

+3ms Enqueued

Triggered by recurring job scheduler

04/13/2025 06:15:08 Created