Skip to main content

The sync fails on a useless message.

Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

@dgodsill97 do you have a Call Stack of the error? You can find it in the Trace window.


Error: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
 
 Send
  Raised At: 10/5/2022 13:26:33 Screen: SO.30.10.00    
 
 Details:
10/5/2022 13:26:33 Error:
Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

   at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.Format(String format, Objecto] args)
   at PX.Commerce.Core.BCProcessorBase`3.SetInvalidStatus(IMappedEntity obj, String connector)
   at PX.Commerce.Shopify.SPShipmentProcessor.SaveBucketExport(SPShipmentEntityBucket bucket, IMappedEntity existing, String operation)
   at PX.Commerce.Core.BCProcessorBase`3.WithTransaction(Action action)
   at PX.Commerce.Core.BCProcessorSingleBase`3.Process(SyncDirection direction, Nullable`1 syncID)
   at PX.Commerce.Core.BCProcessorBase`3.Process(Nullable`1s] syncIDs)
   at PX.Commerce.Shopify.SPConnector.Process(ConnectorOperation operation, Nullable`1i] syncIDs)
   at PX.Commerce.Core.BCSyncHistoryMaint.<>c__DisplayClass40_0.b__2(<>f__AnonymousType1`4 x)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at PX.Data.PXLongOperation.<>c__DisplayClass18_0.b__0()
Information: tCOMMERCE]: Completed
Connector: SPC, Binding: 1, Entity: SH, SyncID: 227, LocalID: 7a081ad5-c244-ed11-b7ff-0050568b4c2f, ExternID:
 
 Send
  Raised At: 10/5/2022 13:26:33 Screen: SO.30.10.00    
 
 Details:
10/5/2022 13:26:33 Information:
/COMMERCE]: Completed
Connector: SPC, Binding: 1, Entity: SH, SyncID: 227, LocalID: 7a081ad5-c244-ed11-b7ff-0050568b4c2f, ExternID:

   at Serilog.Core.Logger.Write(LogEventLevel level, Exception exception, String messageTemplate, Objectx] propertyValues)
   at Serilog.Core.Logger.Information(String messageTemplate, ObjectI] propertyValues)
   at PX.Commerce.Core.BCProcessorSingleBase`3.Process(SyncDirection direction, Nullable`1 syncID)
   at PX.Commerce.Core.BCProcessorSingleBase`3.Process(SyncDirection direction, Nullable`1`] syncIDs)
   at PX.Commerce.Core.BCProcessorSingleBase`3.Process(List`1 operations, Nullable`1n] syncIDs)
   at PX.Commerce.Core.BCProcessorBase`3.Process(Nullable`1C] syncIDs)
   at PX.Commerce.Shopify.SPConnector.Process(ConnectorOperation operation, Nullable`1t] syncIDs)
   at PX.Commerce.Core.BCSyncHistoryMaint.<>c__DisplayClass40_0.b__2(<>f__AnonymousType1`4 x)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at PX.Data.PXLongOperation.<>c__DisplayClass18_0.b__0()
   at PX.Data.PXLongOperation.PerformOperation(Object arg)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at PX.Data.PXThreadPool.RunItem(RequestItem item)
   at PX.Data.PXThreadPool.Run()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

 
Information: mCOMMERCE]: Record is saved with operation EF.
Connector: SPC, Binding: 1, Entity: SH, SyncID: 227, LocalID: 7a081ad5-c244-ed11-b7ff-0050568b4c2f, ExternID:
 
 Send
  Raised At: 10/5/2022 13:26:33 Screen: SO.30.10.00    
 
 Details:
10/5/2022 13:26:33 Information:
eCOMMERCE]: Record is saved with operation EF.
Connector: SPC, Binding: 1, Entity: SH, SyncID: 227, LocalID: 7a081ad5-c244-ed11-b7ff-0050568b4c2f, ExternID:

   at Serilog.Core.Logger.Write(LogEventLevel level, Exception exception, String messageTemplate, Objectr] propertyValues)
   at Serilog.Core.Logger.Information(String messageTemplate, Objecte] propertyValues)
   at PX.Commerce.Core.BCProcessorBase`3.UpdateStatus(IMappedEntity mapped, String operation, String message)
   at PX.Commerce.Core.BCProcessorSingleBase`3.Process(SyncDirection direction, Nullable`1 syncID)
   at PX.Commerce.Core.BCProcessorSingleBase`3.Process(SyncDirection direction, Nullable`1>] syncIDs)
   at PX.Commerce.Core.BCProcessorSingleBase`3.Process(List`1 operations, Nullable`1D] syncIDs)
   at PX.Commerce.Core.BCProcessorBase`3.Process(Nullable`1r] syncIDs)
   at PX.Commerce.Shopify.SPConnector.Process(ConnectorOperation operation, Nullable`1c] syncIDs)
   at PX.Commerce.Core.BCSyncHistoryMaint.<>c__DisplayClass40_0.b__2(<>f__AnonymousType1`4 x)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at PX.Data.PXLongOperation.<>c__DisplayClass18_0.b__0()
   at PX.Data.PXLongOperation.PerformOperation(Object arg)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at PX.Data.PXThreadPool.RunItem(RequestItem item)
   at PX.Data.PXThreadPool.Run()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

 
Error: hCOMMERCE]: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
Connector: SPC, Binding: 1, Entity: SH, SyncID: 227, LocalID: , ExternID:
System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
 
 Send
  Raised At: 10/5/2022 13:26:32 Screen: SO.30.10.00    
 
 Details:
10/5/2022 13:26:32 Error:
cCOMMERCE]: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
Connector: SPC, Binding: 1, Entity: SH, SyncID: 227, LocalID: , ExternID:
System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

   at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.Format(String format, Objects] args)
   at PX.Commerce.Core.BCProcessorBase`3.SetInvalidStatus(IMappedEntity obj, String connector)
   at PX.Commerce.Shopify.SPShipmentProcessor.SaveBucketExport(SPShipmentEntityBucket bucket, IMappedEntity existing, String operation)
   at PX.Commerce.Core.BCProcessorBase`3.WithTransaction(Action action)
   at PX.Commerce.Core.BCProcessorSingleBase`3.Process(SyncDirection direction, Nullable`1 syncID)

Stack trace from event:
   at Serilog.Core.Logger.Write(LogEventLevel level, Exception exception, String messageTemplate, Objectb] propertyValues)
   at Serilog.Core.Logger.WritelT0,T1,T2](LogEventLevel level, Exception exception, String messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
   at Serilog.Core.Logger.ErrorLT0,T1,T2](Exception exception, String messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
   at PX.Commerce.Core.BCConnectorBase`1.LogError(BCLogScope scope, Exception ex)
   at PX.Commerce.Core.BCProcessorBase`3.Log(Nullable`1 syncID, SyncDirection direction, Exception error)
   at PX.Commerce.Core.BCProcessorSingleBase`3.Process(SyncDirection direction, Nullable`1 syncID)
   at PX.Commerce.Core.BCProcessorSingleBase`3.Process(SyncDirection direction, Nullable`1i] syncIDs)
   at PX.Commerce.Core.BCProcessorSingleBase`3.Process(List`1 operations, Nullable`1s] syncIDs)
   at PX.Commerce.Core.BCProcessorBase`3.Process(Nullable`1 ] syncIDs)
   at PX.Commerce.Shopify.SPConnector.Process(ConnectorOperation operation, Nullable`1 ] syncIDs)
   at PX.Commerce.Core.BCSyncHistoryMaint.<>c__DisplayClass40_0.b__2(<>f__AnonymousType1`4 x)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at PX.Data.PXLongOperation.<>c__DisplayClass18_0.b__0()
   at PX.Data.PXLongOperation.PerformOperation(Object arg)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at PX.Data.PXThreadPool.RunItem(RequestItem item)
   at PX.Data.PXThreadPool.Run()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

 

 

@dgodsill97 it seems to be a bug, please create a support request, so our support team can check it.


Reply