- Aug
- 47
- 2
I have written a complex script the downloads mutual fund information from fidelity.com, processes that information with TPIPE, and then outputs selected information. The script sometimes works perfectly a shown in the first instance of running it in the attached file. If I run it a second time, however, I sometimes get very strange errors such as:
TCC: D:\E-Drive\Finance\getquotes13.btm [736] Unknown command "&"]"
TCC: D:\E-Drive\Finance\getquotes13.btm [736] No expression "[7,4]"
Line 736 is the end of a large loop. There are absolutely no ampersands in the entire batch file. And [7,4] is an array reference which worked perfectly the previous time I ran the batch file.
What's more, if I continue to run the script repeatedly as shown in the attached file, these errors occur at different places. Very strange.
I thought that this might be some sort of timing problem, that is, something in the script getting ahead of itself. I therefore added a PAUSE statement to slow things down. Sometimes that helped and sometimes it didn't. Again, very strange.
The script sometimes works perfectly, as is proven by the first run in the attached file, but for the life of me I can't figure out what's causing it to fail and print spurious error message in other runs.
Any suggestions would be greatly appreciated.
Jesse Heines, TCMD users since 1998!
TCC: D:\E-Drive\Finance\getquotes13.btm [736] Unknown command "&"]"
TCC: D:\E-Drive\Finance\getquotes13.btm [736] No expression "[7,4]"
Line 736 is the end of a large loop. There are absolutely no ampersands in the entire batch file. And [7,4] is an array reference which worked perfectly the previous time I ran the batch file.
What's more, if I continue to run the script repeatedly as shown in the attached file, these errors occur at different places. Very strange.
I thought that this might be some sort of timing problem, that is, something in the script getting ahead of itself. I therefore added a PAUSE statement to slow things down. Sometimes that helped and sometimes it didn't. Again, very strange.
The script sometimes works perfectly, as is proven by the first run in the attached file, but for the life of me I can't figure out what's causing it to fail and print spurious error message in other runs.
Any suggestions would be greatly appreciated.
Jesse Heines, TCMD users since 1998!