Skip to main content
August 5, 2021
Question

Stored Procedure Function not returning any data

  • August 5, 2021
  • 4 replies
  • 0 views

Hello, 

I am using executestoredprocedure() function to get the data, but when i am executing the expression rule it is not returning any data.

a!localVariables(
local!result: executestoredprocedure(
dataSourceName: cons!dataSource,
procedureName: cons!storedProc,
inputs:{
name:"user_id",
value:"ankita12"
}
), local!result
)

    4 replies

    namratak0001
    August 5, 2021

    Hi [mention:37640185bf1045bf9719535ecf850e86:e9ed411860ed4f2ba0265705b8793d05]

    Please try below code:

    a!localVariables(
    local!result: executestoredprocedure(
    dataSourceName: cons!dataSource,
    procedureName: cons!storedProc,
    inputs:{
    {
    name:"user_id",
    value:"ankita12"
    }
    }
    ),
    index(local!result,"result",{})
    )

    peter.lewis
    Employee
    August 5, 2021

    Can you provide more information? What troubleshooting steps did you try? is the stored procedure executing but just not returning the results or is it not even executing? What happens if you run this as a smart service in a process modle?

    August 9, 2021

    Hi [mention:6b9f80ff18f9420082d13ef2d5121d56:e9ed411860ed4f2ba0265705b8793d05],

    Issue has been resolved, i have defined wrong column name.

    Regards,

    Ankita Singh

    danny.verb
    August 5, 2021

    Also take a look at this community discussion regarding which functions are allowed by MariaDB