cancel
Showing results for 
Search instead for 
Did you mean: 

Server Busy POP in SAP

Anonymous
Not applicable
While we are the processing the data in sap during the wait stage in blue prism we are getting this POP saying Server Busy. Blue prism doesn't  throw any error it doesn't go to 'running' state. Stays stuck at 'waiting' state.  
4 REPLIES 4

Denis__Dennehy
Level 15
This is a problem with your SAP client rather than with the Blue Prism product.  The first point of call should be your SAP system owner to find out why their service is not reliable.  The Blue Prism issue that this causes is that Blue Prism is in the middle of some kind of interface interaction when the SAP system stops responding, for example it may have sent a click or read request to the SAP GUI Scripting interface and it never gets a response from SAP because SAP has stopped working.  Blue Prism just waits forever for the response. This waiting forever/hanging issue has been fixed in Blue Prism version 5.0.24 (Feb 2017) or later - where an Application Modeler timeout can be set.  So you can set that timeout to 10 minutes, after which Blue Prism will throw an exception.  Your standard process retry/cleanup logic can then restart SAP and carry on.

AmandaRoss
Level 2
I'm having the same issue right now.  I'm not sure it's that SAP is not reliable...it's that there is so much data being queried in SAP that it can take upwards of 30 minutes to query what you want to see occasionally.  The SAP report always comes up in the end and SAP does not stop working...you can see the progress bars running while it's running (although I haven't been able to get blue prism to recognize those progress bars yet).  However, after about 2 minutes, something (I think blue prism, and I think that because I only get the pop up when blue prism is kicking off the SAP report (not when I run SAP isolated) kicks off this OLE/ActiveX type pop up.  After the report finishes in SAP, blue prism is still not responsive until I manually intervene and click ""switch to"".  I even tried encapsulating this whole thing for an hour in a wait stage figuring that if it's still waiting, it will respond...not so.  I've tried worker threads (couldn't get the background object to run simultaneously to the foreground even though the thread works isolated), I've tried the timeout in the application modeler (at least on the wait stage with throwing errors) (running version 6.somthing for blue prism), I've tried adjusting wait stages, but no matter what the wait stage is the one that gets hung up.  Lastly, I looked at my application modeler (and this is odd), and I see where it has the timespan to enter the time to wait for the application to respond and the text boxes won't let me type in a timespan.  I went in the wizard and that timespan component is also not in the application modeler wizard.  Thanks

AmandaRoss
Level 2
SOLVED: A fellow developer helped me with this.  So that is definitely an SAP server busy pop up, and what's happening is that blue prism is querying SAP scripting and when SAP is running a long report, it can't respond to the scripting request hence SAP has its own timeout and throws that dialog window. Here's how I solved it.  Anything you're running that may take a long time, execute it and then launch a wait stage with a LONG wait and then check if something on the page that's running (transaction screen) disappears.  So object check exists = false.  I originally was checking the project entry text box, however, I used SAP scripting to spy that.  So, mine was failing because blue prism would lose communication with SAP and SAP would throw the server busy error as it was dedicating its resources to running my report.  I then changed the blue prism wait stage to check the execution ""clock"" at the top left using AA spy mode to see when clock check exists = false (WIN32 mode was not seeing the difference between the clock and the button in the same place on the next results page, so I couldn't use WIN32), but AA was.  So you use either an AA or WIN32 mode object check to see if the page finished processing and opened the results page (with a long, long wait), as AA and WIN32 operates independently from SAP scripting responses, and this WORKED!!!!  No more server busy errors for me.  :)    

JēkabsRutkis
Level 4
It took me too long to find this post in the Forum.    Thank You Amanda for posting the resolution on this issue.
Jekabs Rutkis [Designation] [JobTitle] [CompanyName] [City] [State] [Phone]