SK SKYVVA Documentation

8. Operation Auto switch

This chapter applies to the SKYVVA V3 REST connector module v2.3.6 for SAP PI/PO. Set Operation to Skyvva Autoswitch to select a loading operation per message. This helps when volumes vary and the sender can track the outcome separately from the SAP PI/PO response.

8.1 What Auto switch needs

Use a channel where the SKYVVA module can authenticate and read the selected interface. The module counts root records in the input and compares the count with the resolved thresholds. A nested invoice with many item positions counts as one root record.

8.2 How Auto switch routes a message

Root recordsOperation selected
Up to and including Integrate Max SizeIntegrate
Above Integrate Max Size, up to and including Integrate Max Batch SizeSkyvva Batch
Above Integrate Max Batch SizeSkyvva Bulk

These thresholds choose among the SKYVVA operations. Salesforce Bulk requires a separately configured channel operation and payload shaped for the target object.

ThresholdChannel parameterInterface fieldConnector fallback
Integrate Max SizeAutoswitchIntegrateMaxSizeIntegrate_Max_Size__c200
Integrate Max Batch SizeAutoswitchBatchMaxSizeIntegrate_Batch_Max_Size__c5000

The channel parameter takes precedence. The older channel names are SforceIntegrateMaxSize and SforceIntegrateMaxBatchSize. With neither channel name available, the module uses the interface field or its fallback. Keep the Batch threshold higher than the Integrate threshold.

8.3 Response and monitoring

Choose Integrate Synchronous when the sender needs the processing result in the same exchange. With Auto switch, check the SAP PI/PO audit log for the resolved thresholds and record count, then verify the business outcome in SKYVVA or the relevant Salesforce jobs.

8.4 Choosing the thresholds

Use 200 and 5000 as starting values when the interface has no established thresholds. In a test environment, try representative record widths, nesting, mappings, and target automation around both boundaries. Confirm which path ran and adjust the thresholds to keep each path within a tested operating range.

8.5 Record count and package size

The thresholds choose the operation. Batch or Bulk package settings control the size of the resulting baskets or datasets. See Skyvva Batch and Skyvva Bulk for their separate controls.

When Auto switch selects Integrate in v2.3.6, the module can split between root records using the interface's Processing Package Size (Number_of_Records_Per_Batch__c). The module sends split requests synchronously and does not return individual business responses to SAP PI/PO. Transfer Package Size does not control this v2.3.6 split. With Processing Package Size unset, the Integrate branch sends a single request.

8.6 If a message still hits a limit

A small record count can still produce a large payload. Lowering a threshold can change the chosen operation, but it cannot divide one oversized root record. Reduce that record at the source or redesign the interface so items can be sent as separate records.

For certain CPU-limit errors returned by the v2.3.6 split Integrate path, the module can retry with smaller groups and escalate to Batch. Use the audit and staging results to see what happened. Size the initial request using tested data instead of relying on retries to recover every limit failure.

8.7 Checklist

☐ The module can authenticate and read the selected interface. ☐ Both effective thresholds are confirmed in the SAP PI/PO audit log. ☐ The tested record counts include both boundaries and a representative large record. ☐ Any expected split uses Processing Package Size on the interface. ☐ SAP PI/PO receipt and the final processing result are checked separately.

Open this article in the interactive viewer →