Exception EInOutError in msched.exe....

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
altquark
Newbie
Posts: 5
Joined: Thu Jan 02, 2003 8:55 pm
Location: Jacksonville, FL
Contact:

Exception EInOutError in msched.exe....

Post by altquark » Tue May 13, 2008 1:39 pm

Hi Guys

I have a bit of an urgent issue. I'm using the latest downloaded trial version of MSched - and I am running a script for a customer test. I am running several sessions (say, 5) on a terminal server - and given enough time, they will all crash except for one with an exception error. The error is "Exception EInOutError in module msched.exe at 001964B5 I/O error 32".

Please note that the sessions will all run for a certain (random) time, constantly looping - but they will eventually crash. Logging IS turned off.

I have tried using a couple of different versions of Msched - including 7.1 and the latest download, and have faced the same issue each time.

I have tried remarked out all the file I/O commands - including "Timestamp" and "Readln" (I used a fixed variable instead) and without any file read/write access, I don't get the issue.

I just tested taking out just the Timestamps (leaving the readln) - and I don't get the issue. Therefore I guess multiple writes to the same file are causing the issue with timestamp...

Code: Select all

Remark>Let>SK_DELAY=1000
Let>NewTemp=%TEMP_DIR%
Position>Temp,%NewTemp%,1,StartPos
Length>%NewTemp%,TmpLength
Let>%StartPos%=%StartPos%+5
Let>%TmpLength%=%TmpLength%-%StartPos%
MidStr>%NewTemp%,%StartPos%,%TmpLength%,%SessionNo%
WaitWindowOpen>J.D. Edwards Solution Explorer*
SetFocus>J.D. Edwards Solution Explorer*
WindowAction>1,J.D. Edwards Solution Explorer*
Press F4
Send Character/Text>002623
Press Enter
WaitWindowOpen>Enter in Sales Order (SO) - [Customer Service Inquiry]*
SetFocus>Enter in Sales Order (SO) - [Customer Service Inquiry]*
WaitPixelColor>32768,131,57,0
Press ALT
Send Character/Text>a
Release ALT
Let>Docs=0
Remark>Random>60,StartWait
Remark>Wait>%StartWait%
Label>CheckStartFile
IfFileExists>d:\msched\goforit.txt,StartSOE
Wait>5
Goto>CheckStartFile
Label>StartSOE
Wait>1
WaitWindowOpen>Enter in Sales Order (SO) - [Sales Order Header]*
SetFocus>Enter in Sales Order (SO) - [Sales Order Header]*
WaitPixelColor>32768,124,53,0
Label>GetShipto
Random>20,line
ReadLn>d:\stresstest\Shipto1114.txt,line,shipno
If>shipno=##EOF##,GetShipto
MidStr>%shipno%,1,3,CheckSHIPNO
If>CheckSHIPNO=lin,GetShipto
Let>MessageText=
ConCat>MessageText,%SessionNo%
ConCat>MessageText, - Start of Sales Order Document
TimeStamp>d:\msched\results\soe.txt,%MessageText%
Let>Docs=Docs+1
WaitPixelColor>32768,124,53,0
WaitPixelColor>16777215,640,176,20
If>WPC_RESULT=FALSE,CancelDoc
WaitPixelColor>32768,124,53,0
Label>Branch
Send Character/Text>1114
Press Tab
Press Tab
Remark>GetPixelColor>640,176,ColorResult
Remark>If>ColorResult<16777215>ShipTo
Label>BadBranch
MessageModal>Bad Branch Entered - Ending - %ColorResult%
Goto>EndAll
Label>ShipTo
Send Character/Text>%shipno%
Press Tab
Remark>GetPixelColor>326,363,ColorResult
Remark>If>ColorResult<16777215>BeginDoc
Label>BadShipTo
MessageModal>Bad Ship To Entered - Ending - %ColorResult%
Goto>EndAll
Label>BeginDoc
Send Character/Text>JONSTEST
Press Tab
Wait>1
Press Alt
Send Character/Text>o
Release Alt
WaitPixelColor>65535,743,589,0
WaitPixelColor>32768,124,53,0
Press Alt
Send Character/Text>o
Release Alt
WaitWindowOpen>Enter in Sales Order (SO) - [Sales Order Detail Revisions]*
SetFocus>Enter in Sales Order (SO) - [Sales Order Detail Revisions]*
WaitPixelColor>32768,124,53,0
Remark>Wait>1
Let>MessageText=
ConCat>MessageText,%SessionNo%
ConCat>MessageText, - Start of Sales Order Detail
TimeStamp>d:\msched\results\soe.txt,%MessageText%
Let>ItemCount=0
Label>EditLINE
Let>ItemCount=ItemCount+1
Send Character/Text>1
Press Tab
Press Tab
Label>GetItem
Random>24,line
Label>Item
ReadLn>d:\stresstest\items1114.txt,line,itemno
If>itemno=##EOF##,GetItem
MidStr>itemno,1,3,CheckITEMNO
If>CheckITEMNO=lin,GetItem
Goto>GotItem
Label>GotItem
Send Character/Text>%itemno%
Press Down
Press Shift
Press Tab
Press Tab
Release Shift
If>ItemCount=5,EndDoc
Goto>EditLINE
Label>EndDoc
WaitPixelColor>32768,124,53,0
Let>MessageText=
ConCat>MessageText,%SessionNo%
ConCat>MessageText, - End of Sales Order Detail
TimeStamp>d:\msched\results\soe.txt,%MessageText%
Wait>2
WaitPixelColor>32768,124,53,0
Press ALT
Send Character/Text>o
Release ALT
WaitWindowOpen>Enter in Sales Order (SO) - [Sales Order Header]*
SetFocus>Enter in Sales Order (SO) - [Sales Order Header]*
WaitCursorChanged>1
WaitPixelColor>16777215,750,500,0

WaitPixelColor>32768,124,53,0
Let>MessageText=
ConCat>MessageText,%SessionNo%
ConCat>MessageText, - End of Sales Order Document
TimeStamp>d:\msched\results\soe.txt,%MessageText%
Label>NextSOE
If>Docs=500,EndAll
Wait>1
Goto>StartSOE
Label>CancelDoc
Press ALT
Send Character/Text>c
Release ALT
Goto>StartSOE
Label>EndAll
Jon Steel
Oracle EnterpriseOne Technical Specialist
erpSOURCING LLC
http://www.erpsourcing.com
(904) 382 5701

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue May 13, 2008 2:59 pm

Hi Jon,

Error code 32 means "The process cannot access the file because it is being used by another process."

So either something else has a lock on the file, or your script is still doing something to it and you're not waiting until that process has finished. Something like that. What line does the error occur on? That'll give us more clues.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

altquark
Newbie
Posts: 5
Joined: Thu Jan 02, 2003 8:55 pm
Location: Jacksonville, FL
Contact:

Post by altquark » Tue May 13, 2008 9:33 pm

actually I solved the issue earlier. Very simple.

In my script I was constantly "timestamping" to a file. The problem was that I was running a stress test, and a number of processes were "timestamping" to the same file.

So, instead, I changed the file as follows :

Code: Select all

Remark>Let>SK_DELAY=1000
Let>NewTemp=%TEMP_DIR%
Position>Temp,%NewTemp%,1,StartPos
Length>%NewTemp%,TmpLength
Let>%StartPos%=%StartPos%+5
Let>%TmpLength%=%TmpLength%-%StartPos%
MidStr>%NewTemp%,%StartPos%,%TmpLength%,%SessionNo%

Let>statpath=d:\msched\results\soe
ConCat>statpath,%SessionNo%
ConCat>statpath,.txt
now I can timestamp to {statpath} because each file has {sessionno} and is therefore unique ! Problem solved !

Thanks for the help though !
Jon Steel
Oracle EnterpriseOne Technical Specialist
erpSOURCING LLC
http://www.erpsourcing.com
(904) 382 5701

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Exception EInOutError in msched.exe....

Post by JRL » Wed Sep 06, 2023 2:58 pm

Searching for "Einouterror" gave me two results on the forum. The other result was not very detailed so I'm tacking information onto this one.

My error is "Exception EInOutError in module: 'program name' at 0058BOA1,I/O error 53" which is different than anything I found on the forum.

What I want to pass along is a site to retrieve this error information.
http://delphi-techie.faithweb.com/rich_text_4.html

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts