I write a stored procedure for selecting data from one table and display them separately as following:
Select name as Order_Contact where order_id=’’ and contact_type=1
Select name as Other_Contact where order_id=’’ and contact_type=2
Some orders have only one contact type, but others have both. The stored procedure run correctly in database, but it fails in WM.
The steps that I do in WM:
- Call this stored procedure.
- Add set two result sets, Order and Other.
- Assign Order_Contact to Order result set and Other_Contact to Other result set.
- Run the flow with an order id that has only order contact type, I get the exception “The column name Other_Contact is not valid”.
Is there any condition in result set page?