Error Handler - HTTP module

Hi all,
I have the below scenario, sometimes I will get an error by the HTTP module (1 before the last) because and item in the CSV file doesn’t exist, I would like to add an error handler that will check on the error for the item that doesn’t exist, rerun the process excluding that SKU,
Additionally I would like to get notified what item was removed.

Thanks in advance!!



Hello Yechiel, good morning!

Error Details

Error Type: ModelValidationException
Message: Indicates an issue in the validation of a data model.
Properties:

  • Name: OrderItem.ItemIdentifier.Sku
  • Value: PC-IRNPW-STL-GRN
  • Error Code: DoesNotExist
  • Proposed HTTP Status: 400 (Bad Request)

Interpretation

  1. Data Model: The error is related to the Sku (Stock Keeping Unit) field of an order item (OrderItem).
  2. Probable Cause: The error code DoesNotExist indicates that the provided SKU (PC-IRNPW-STL-GRN) was not found in the database or system. Possible reasons:
  • The SKU was entered incorrectly.
  • The SKU is not registered in the system.
  • The SKU may have been removed or discontinued.

Suggested Actions

  • SKU Confirmation: Check if the SKU is correct and actually exists in the system.
  • SKU Registration: If the SKU is not registered, register it before trying again.
  • Log Analysis: Review the system error logs for more details about the issue.
2 Likes