I wondered if the problem could be with the file it was trying to access itself so I changed the original macro to read the new file. If failed as well so I assumed that the problem was with the file. When I changed the original macro back to read the original file it began to generate the same error (using the same file as before). It does not throw an error on the DATASOURCE line but on the INPUT line.
Here is the original macro that no longer works:
Code: Select all
VERSION BUILD=9030808 RECORDER=FX
TAB CLOSEALLOTHERS
'SET !ERRORIGNORE YES
TAB T=1
'SET !TIMEOUT_PAGE 30
'SET !TIMEOUT_PAGE 15
SET !EXTRACT_TEST_POPUP NO
SET !DATASOURCE d:\stox17\newstocks\macrodates.txt
SET !DATASOURCE_COLUMNS 2
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:start CONTENT={{!COL1}}
TAG POS=2 TYPE=INPUT:TEXT ATTR=NAME:end CONTENT={{!COL2}}
SET !VAR1 EVAL({{!COL1}})
SET !VAR2 EVAL({{!COL2}})
SET !DATASOURCE d:\stox17\newstocks\macroparm.txt
SET !DATASOURCE_COLUMNS 2
TAG POS=3 TYPE=INPUT:TEXT ATTR=NAME:symbol CONTENT={{!COL1}}
URL GOTO=https://finance.yahoo.com/quote/{{!COL1}}/history?period1={{!VAR1}}&period2={{!VAR2}}&interval=1d&filter=history&frequency=1d
TAG POS=1 TYPE=TABLE ATTR=TXT:* EXTRACT=TXT
'ONDOWNLOAD FOLDER=d:\stox17\newstocks\ FILE={{!COL1}}.csv WAIT=YES
SAVEAS TYPE=EXTRACT FOLDER=d:\\stox17\\newstocks\\ FILE={{!COL1}}.csv
TAG POS=2 TYPE=SPAN ATTR=TXT:Download<SP>Data
WAIT SECONDS=3
TAB CLOSE
Code: Select all
"1551657600","1633737600"
element INPUT specified by NAME:start was not found, line: 10 (Error code: -921)
Thanx for any help