Run-time error 55

Share your tips, tricks and favorite iMacros macros, scripts and applications for web automation in general here.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team
Post Reply
msalperen
Posts: 10
Joined: Sat Dec 24, 2005 2:00 pm

Run-time error 55

Post by msalperen » Thu Feb 02, 2006 5:08 pm

If your CMDLINE and SET lines in your macro code are not correctly ordered, you may encounter "run-time error 55 (file already open)". For example if your code is something like this:

VERSION BUILD=5010115
TAB T=1
TAB CLOSEALLOTHERS
CMDLINE !DATASOURCE Dosya.csv
SET !DATASOURCE_COLUMNS 10
SET !DATASOURCE_LINE {{line}}
CMDLINE !VAR1 x

CMDLINE !VAR2 y
CMDLINE !VAR3 z
URL GOTO=http://www.ausefulweb.org/
SIZE X=1004 Y=723

you may get the error above (runtime 55), that means, the code will try to read the cvs file that is already opened. So, if this is the case you should change your code as (the difference is signed with red colour):

VERSION BUILD=5010115
TAB T=1
TAB CLOSEALLOTHERS
SET !DATASOURCE_COLUMNS 2
SET !DATASOURCE_LINE {{line}}
CMDLINE !DATASOURCE Dosya.csv
CMDLINE !VAR1 x

CMDLINE !VAR2 y
CMDLINE !VAR3 z
URL GOTO=http://www.ausefulweb.org/
SIZE X=1004 Y=723

I hope that this information will be useful for those who encounter runtime 55 error

Cheers :)
Post Reply