Discrepancy in results with old and new 'executestoredprocedure' functions

Certified Senior Developer

We are migrating from deprecated 'executestoredprocedure()' to new a!executeStoredProcedureForQuery() function to call one stored procedure. 

We have been receiving correct result with existing  executestoredprocedure() , however when we replaced with new function it's throwing below error,

"Failed to process the stored procedure result due to encountering a duplicate column label: processParametersConfigId."

Please let me know if anything needs to be changed in SQL script to use new function.

Below is code to call SP,

Below is actual Sql Query in SP,

Thanks.

  Discussion posts and replies are publicly visible