#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
  • 0
    Certified Lead Developer
    Hi the execution time might be causing the issue here. Did you check the log, did you find anything related to timeout.

    Alternatively you can use MAX_EXECUTION_TIME = 3600000 (in milliseconds)

    But this works only for read only statements. Also this kills any query which exceeds the provided timeline.

    In your case, you need to change MySQL connect timeout to more than an hour. This should work for you.

    Hope this will help you.
Reply
  • 0
    Certified Lead Developer
    Hi the execution time might be causing the issue here. Did you check the log, did you find anything related to timeout.

    Alternatively you can use MAX_EXECUTION_TIME = 3600000 (in milliseconds)

    But this works only for read only statements. Also this kills any query which exceeds the provided timeline.

    In your case, you need to change MySQL connect timeout to more than an hour. This should work for you.

    Hope this will help you.
Children
No Data