#Stored Procedure#

Hi All,

Is there any data restriction in SP while retrieving a data from DB?

I am facing some sort of weird issue that When I executes SP from Appian end(Process modelling), it fails to execute intermittently . Out of 10 times, it executes at most once and remaining time it just skips the node and no data is getting saved(I am performing selection on single table and inserting onto another after manipulating few data). However When I executes from DB directly, it works fine as expected which shows that no logical issue.So How can I solve this issue?

Thanks in advance..!

Note:And also I would like to highlight that execution time of SP ranges from 40 min to 1 hour as I am dealing with huge amount of data.

  Discussion posts and replies are publicly visible

Parents
  • Hello All,

    Thank you for all your responses.

    aloks176 / coltonb - I tried setting out the timing but still it fails. Because my SP execution time varies time to time(Probably an hour to 2). So I can't set any theoretical execution time. Moreover I can't improve the performance as its already optimized.

    ashishd423 -My target table doesn't contains any indexes apart from primary key(Which is default index). And I am dealing with min of 1L of data to store onto target table. And I am not doing any complex operation . I am joining a four tables and inserting onto a new table.

    And I have few queries about SP while we call from Appian
    1)How long a SP works? Is there any restriction in time line like it works for some time(Say 20 min) and beyond the time it skips?
    2)Will there be any chances that SP can be asynchronous? I mean just triggering an SP and skipping the node.
    3)Will the SP skips the execution when sql server memory is full?

    Thanks in advance
  • Can you elaborate what exactly you are doing or trying to achieve ?
    How often are you running this model ?
    Is the store proc giving any output back to appian ?
    I hope there can be a solution out of appian for this and the load on appian could be removed.
Reply Children
No Data