L
Long Nguyen
Hi,
I have a vbscript that copies data from request forms in a folder to a CSV
file. The folder has some 800 forms. Basically I use a FOR loop to go
through each item in the folder and check if the RequestType field in the
item is what I want and if so copy all 40+ fields from that item to the CSV
file.
PROBLEM:
The problem is that when the FOR loop has processed about 250 items, I keep
getting the message "system resource low or out of memory" every time it
tries to process the next item. I can not close Outlook even through Task
Manager (got the message "can not quit"). The only way to get out of this
form run is to reboot the PC (by pressing the power button;
ALTER-CNTL-DEL -Shutdown does not work).
MY ATTEMPT:
1) I have tried to close the item and set all variables used in the script
to Nothing after each cycle of the FOR loop, but it does not help.
2) I have tried to reduce the number of forms copied in one run by copying
only forms with a particular RequestType but it did not help (in this case I
still need to go through all items in the folder to check for the
RequestType field).
3) I have also tried to use Restrict method to get back only forms with one
particular RequestType but have not been able to get the code with restrict
worked yet (I have sent another post on Restrict question).
Could someone give me an idea on how to get around this performance problem.
Are 800 forms too many to process in one go?
Thanks in advance.
Long
I have a vbscript that copies data from request forms in a folder to a CSV
file. The folder has some 800 forms. Basically I use a FOR loop to go
through each item in the folder and check if the RequestType field in the
item is what I want and if so copy all 40+ fields from that item to the CSV
file.
PROBLEM:
The problem is that when the FOR loop has processed about 250 items, I keep
getting the message "system resource low or out of memory" every time it
tries to process the next item. I can not close Outlook even through Task
Manager (got the message "can not quit"). The only way to get out of this
form run is to reboot the PC (by pressing the power button;
ALTER-CNTL-DEL -Shutdown does not work).
MY ATTEMPT:
1) I have tried to close the item and set all variables used in the script
to Nothing after each cycle of the FOR loop, but it does not help.
2) I have tried to reduce the number of forms copied in one run by copying
only forms with a particular RequestType but it did not help (in this case I
still need to go through all items in the folder to check for the
RequestType field).
3) I have also tried to use Restrict method to get back only forms with one
particular RequestType but have not been able to get the code with restrict
worked yet (I have sent another post on Restrict question).
Could someone give me an idea on how to get around this performance problem.
Are 800 forms too many to process in one go?
Thanks in advance.
Long