Insufficient time to complete activity - Query Database smart service & Stored Procedure

Certified Associate Developer

Hi,

There is an issue i am facing with query databse smart service, Where i am executing a stored procedure which fetches data from multiple tables and insert same data to a table.

- It works if i execute the stored proc with same parameters by SSMS(SQL Server Management Studio)

- By Query Database Smart Service it sometimes gives me error - 

The amount of time allocated for the completion of an unattended activity was insufficient to allow the activity to complete.

attached screenshot for reference

Thanks 

  Discussion posts and replies are publicly visible

Parents Reply
  • Procedure is not bringing fetched data back to appian process, it immediately insert that data into a table inside the ptocedure.

    Which is confusing since you mention that the only reason you cannot use the execute stored procedure function or service is due to the size of data returned.?

    Yes because in executeStoredProcedure function there is a limit of Max rows per result set 1000 rows, In my case there are around 4000 rows.

    Lets start from the top, since you are executing a stored procedure, what happens when you use the Execute Stored Procedure Smart Service (with the "validate" parameter to "false"), which is designed for this.  What errors do you receive?

Children
No Data