Skip to main content
Solved

Syncing shipments of non-stock kits to Shopify


Forum|alt.badge.img+3

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.

Best answer by smarenich

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

View original
Did this topic help you find an answer to your question?

3 replies

smarenich
Acumatica Moderator
Forum|alt.badge.img+3
  • Acumatica Commerce Edition Team Lead
  • 227 replies
  • October 5, 2022

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


Forum|alt.badge.img+3
  • Author
  • Varsity I
  • 205 replies
  • October 5, 2022
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()

 

 

smarenich
Acumatica Moderator
Forum|alt.badge.img+3
  • Acumatica Commerce Edition Team Lead
  • 227 replies
  • Answer
  • October 5, 2022

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings