Skip to main content
Solved

Handling Errors and Responses in Projection Action for Array Input

  • May 18, 2025
  • 1 reply
  • 20 views

Forum|alt.badge.img+4
  • Do Gooder (Partner)
  • 6 replies

Hi,

I have implemented a new Projection action intended for use in an integration scenario, where the action accepts an array as its input parameter. During execution, if an error occurs while processing an individual node within the array, the entire execution halts.

I would like to modify this behavior so that:

  • The execution continues for the remaining nodes despite encountering errors, and

  • The details of any failed nodes are captured and returned to the user.

To achieve this, I reviewed the implementation approach used in Core, specifically how similar logic is handled. Based on that analysis, the general steps seem to be:

  1. Defining the action in the corresponding .projection or .fragment file

  2. Implementing the logic in a Function (rather than a Procedure) to allow returning a result structure that includes both successful and failed nodes

An example I referenced is the InventoryPartInStockList.fragment, which follows this pattern.

.projection/.fragment file

 

.plsvc file

 

I have followed the same steps in my implementation. However, during code generation, I encountered an issue: the generator does not recognize the function and instead generates a corresponding Procedure, which leads to an error.

 

 

 

Could you please advise on how to ensure the code generator correctly recognizes the action as a Function, or suggest an alternative approach to enable non-blocking processing of array nodes with error reporting?

Product Version: 23R2

Thank you in advance,

Nija

Best answer by nija.nt

Actions can be defined with a return type.

 

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

1 reply

Forum|alt.badge.img+4
  • Author
  • Do Gooder (Partner)
  • 6 replies
  • Answer
  • May 19, 2025

Actions can be defined with a return type.

 


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