Skip to main content
Solved

Syncing shipments of non-stock kits to Shopify

  • 5 October 2022
  • 3 replies
  • 132 views

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.

3 replies

Userlevel 7
Badge +3

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

Userlevel 5
Badge +3
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, Object[] 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`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()
Information: [COMMERCE]: 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, Object[] propertyValues)
   at Serilog.Core.Logger.Information(String messageTemplate, Object[] 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`1[] 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()

 
Information: [COMMERCE]: 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:
[COMMERCE]: 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, Object[] propertyValues)
   at Serilog.Core.Logger.Information(String messageTemplate, Object[] 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`1[] 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()

 
Error: [COMMERCE]: 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:
[COMMERCE]: 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, Object[] 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, Object[] propertyValues)
   at Serilog.Core.Logger.Write[T0,T1,T2](LogEventLevel level, Exception exception, String messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
   at Serilog.Core.Logger.Error[T0,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`1[] syncIDs)
   at PX.Commerce.Core.BCProcessorSingleBase`3.Process(List`1 operations, Nullable`1[] 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()

 

 
Userlevel 7
Badge +3

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

Reply