Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
6 replies
Subscribers
9 subscribers
Views
7703 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Null pointer Exception -Execute Stored Procedure
nellurus
over 8 years ago
Hi All,
I am trying to use "Execute Stored Procedure" smart service to invoke a stored procedure in the DB.
But when i try to execute the process it gives me following error alert.
"There is a problem with task “Execute Stored Procedure” in the process “TestProcessModel”. java.lang.NullPointerException"
Here are the values that i am passing to the smart service.
Data Source Name="jdbc/MSFT_RSU"
Procedure Name=="sp_ListBooks"
title_search="fun"
total_cost=0
resultSet1 (this is of type cdt to this and saving into the same for output from smart service)
But when we try to user alternate approach, specified
= with(
local!spResult: fn!executestoredprocedure( "jdbc/MSFT_RSU",
"sp_ListBooks",
{
{
name: "title_search",
value: "Fun"
}
}
...
OriginalPostID-253249
Discussion posts and replies are publicly visible
Parents
0
harrys
over 8 years ago
On a related topic, in my experience, the resultSet1 parameter can only be used in SQL Server when the stored procedure uses the SET NOCOUNT ON command. This suppresses the count that may result from operations in the stored procedure (e.g., "1 row affected"), which can throw off Appian and return no results for resultSet1.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
harrys
over 8 years ago
On a related topic, in my experience, the resultSet1 parameter can only be used in SQL Server when the stored procedure uses the SET NOCOUNT ON command. This suppresses the count that may result from operations in the stored procedure (e.g., "1 row affected"), which can throw off Appian and return no results for resultSet1.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data