RuntimeError: Invalid DATASOURCE_LINE value: 2, line 5 (Erro

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

RuntimeError: Invalid DATASOURCE_LINE value: 2, line 5 (Erro

by poxiel on Sat Jan 13, 2018 6:08 pm

I was working fine until one day it stopped and it gave me that warning sign

Here is following code
Code: Select all
VERSION BUILD=8970419 RECORDER=FX
TAB T=1     
SET !DATASOURCE Redbubble.csv
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
TAG POS=1 TYPE=INPUT:FILE ATTR=ID:select-image-single CONTENT={{!COL1}}
WAIT SECONDS=10
TAG POS=28 TYPE=DIV ATTR=TXT:
TAG POS=6 TYPE=LABEL FORM=ID:add-new-work ATTR=TXT:
TAG POS=38 TYPE=DIV ATTR=TXT:
TAG POS=3 TYPE=LABEL ATTR=TXT:Icons
TAG POS=1 TYPE=INPUT:RADIO FORM=ID:add-new-work ATTR=ID:tab-2-large_clothing
TAG POS=48 TYPE=DIV ATTR=TXT:
TAG POS=3 TYPE=INPUT:RANGE FORM=ID:add-new-work ATTR=* CONTENT=42
TAG POS=1 TYPE=DIV ATTR=CLASS:sp-preview-inner&&TXT:
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"sp-input" CONTENT=#000000
TAG POS=4 TYPE=DIV ATTR=TXT:Enabled
TAG POS=123 TYPE=DIV ATTR=TXT:
TAG POS=6 TYPE=INPUT:RANGE FORM=ID:add-new-work ATTR=* CONTENT=47
TAG POS=5 TYPE=BUTTON FORM=ID:add-new-work ATTR=TXT:Horizontally
TAG POS=4 TYPE=DIV ATTR=CLASS:sp-preview-inner&&TXT:
TAG POS=4 TYPE=INPUT:TEXT ATTR=CLASS:"sp-input" CONTENT=#000000
TAG POS=8 TYPE=DIV ATTR=TXT:Enabled
TAG POS=174 TYPE=DIV ATTR=TXT:
TAG POS=8 TYPE=INPUT:RANGE FORM=ID:add-new-work ATTR=* CONTENT=13
TAG POS=7 TYPE=BUTTON FORM=ID:add-new-work ATTR=TXT:Horizontally
TAG POS=6 TYPE=DIV ATTR=CLASS:sp-preview-inner&&TXT:
TAG POS=6 TYPE=INPUT:TEXT ATTR=CLASS:"sp-input" CONTENT=#000000
TAG POS=10 TYPE=DIV ATTR=TXT:Enabled
TAG POS=11 TYPE=DIV ATTR=TXT:Enabled
TAG POS=13 TYPE=DIV ATTR=TXT:Enabled
TAG POS=271 TYPE=DIV ATTR=TXT:
TAG POS=12 TYPE=INPUT:RANGE FORM=ID:add-new-work ATTR=* CONTENT=43
TAG POS=11 TYPE=BUTTON FORM=ID:add-new-work ATTR=TXT:Horizontally
TAG POS=11 TYPE=DIV ATTR=CLASS:sp-preview-inner&&TXT:
TAG POS=11 TYPE=INPUT:TEXT ATTR=CLASS:"sp-input" CONTENT=#000000
TAG POS=15 TYPE=DIV ATTR=TXT:Enabled
TAG POS=15 TYPE=DIV ATTR=TXT:Disabled
TAG POS=333 TYPE=DIV ATTR=TXT:
TAG POS=14 TYPE=INPUT:RANGE FORM=ID:add-new-work ATTR=* CONTENT=21
TAG POS=13 TYPE=DIV ATTR=TXT:Center<SP>Design:<SP>Vertically<SP>Horizontally
TAG POS=13 TYPE=BUTTON FORM=ID:add-new-work ATTR=TXT:Horizontally
TAG POS=1 TYPE=IMG ATTR=SRC:https://d3spquiph2sexc.cloudfront.net/assets/upload/blank-mug-center-3e1e199f17f15d8da8bd1ce3e5b9c4fb7b8b5b8df79a9127edcf5ecbecf9724e.png
TAG POS=13 TYPE=DIV ATTR=CLASS:sp-preview-inner&&TXT:
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:"sp-input" CONTENT=#000000
TAG POS=17 TYPE=DIV ATTR=TXT:Enabled
TAG POS=18 TYPE=DIV ATTR=TXT:Enabled
TAG POS=19 TYPE=DIV ATTR=TXT:Enabled
TAG POS=20 TYPE=DIV ATTR=TXT:Enabled
TAG POS=417 TYPE=DIV ATTR=TXT:
TAG POS=19 TYPE=INPUT:RANGE FORM=ID:add-new-work ATTR=* CONTENT=35
TAG POS=18 TYPE=BUTTON FORM=ID:add-new-work ATTR=TXT:Horizontally
TAG POS=18 TYPE=DIV ATTR=CLASS:sp-preview-inner&&TXT:
TAG POS=18 TYPE=INPUT:TEXT ATTR=CLASS:"sp-input" CONTENT=#000000
TAG POS=448 TYPE=DIV ATTR=TXT:
TAG POS=20 TYPE=INPUT:RANGE FORM=ID:add-new-work ATTR=* CONTENT=36
TAG POS=19 TYPE=BUTTON FORM=ID:add-new-work ATTR=TXT:Horizontally
TAG POS=19 TYPE=DIV ATTR=CLASS:sp-preview-inner&&TXT:
TAG POS=19 TYPE=INPUT:TEXT ATTR=CLASS:"sp-input" CONTENT=#000000
TAG POS=23 TYPE=DIV ATTR=TXT:Enabled
TAG POS=24 TYPE=DIV ATTR=TXT:Enabled
TAG POS=25 TYPE=DIV ATTR=TXT:Enabled
TAG POS=52 TYPE=I ATTR=CLASS:rb-font-icon<SP>icon-cancel-circled2&&TXT:
TAG POS=27 TYPE=DIV ATTR=TXT:Enabled
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:add-new-work ATTR=ID:work_title CONTENT={{!COL2}}
TAG POS=1 TYPE=TEXTAREA FORM=ID:add-new-work ATTR=ID:work_description_en CONTENT={{!COL3}}
TAG POS=1 TYPE=TEXTAREA FORM=ID:add-new-work ATTR=ID:work_tag_field_en CONTENT={{!COL4}}
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:add-new-work ATTR=ID:media_design CONTENT=YES
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:add-new-work ATTR=ID:media_digital CONTENT=YES
TAG POS=1 TYPE=SELECT FORM=ID:add-new-work ATTR=ID:work_default_product CONTENT=%t-shirt
TAG POS=1 TYPE=INPUT:RADIO FORM=ID:add-new-work ATTR=ID:work_safe_for_work_true
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:add-new-work ATTR=ID:rightsDeclaration CONTENT=YES
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:add-new-work ATTR=ID:submit-work
WAIT SECONDS=50
URL GOTO=https://www.redbubble.com/portfolio/images/new
poxiel
 
Posts: 1
Joined: Sat Jan 13, 2018 6:05 pm

Re: RuntimeError: Invalid DATASOURCE_LINE value: 2, line 5 (

by chivracq on Sat Jan 13, 2018 7:18 pm

poxiel wrote:I was working fine until one day it stopped and it gave me that warning sign

Here is following code
Code: Select all
VERSION BUILD=8970419 RECORDER=FX
TAB T=1     
SET !DATASOURCE Redbubble.csv
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
TAG POS=1 TYPE=INPUT:FILE ATTR=ID:select-image-single CONTENT={{!COL1}}
WAIT SECONDS=10
TAG POS=28 TYPE=DIV ATTR=TXT:
TAG POS=6 TYPE=LABEL FORM=ID:add-new-work ATTR=TXT:
TAG POS=38 TYPE=DIV ATTR=TXT:
TAG POS=3 TYPE=LABEL ATTR=TXT:Icons
TAG POS=1 TYPE=INPUT:RADIO FORM=ID:add-new-work ATTR=ID:tab-2-large_clothing
TAG POS=48 TYPE=DIV ATTR=TXT:
TAG POS=3 TYPE=INPUT:RANGE FORM=ID:add-new-work ATTR=* CONTENT=42
TAG POS=1 TYPE=DIV ATTR=CLASS:sp-preview-inner&&TXT:
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"sp-input" CONTENT=#000000
TAG POS=4 TYPE=DIV ATTR=TXT:Enabled
TAG POS=123 TYPE=DIV ATTR=TXT:
TAG POS=6 TYPE=INPUT:RANGE FORM=ID:add-new-work ATTR=* CONTENT=47
TAG POS=5 TYPE=BUTTON FORM=ID:add-new-work ATTR=TXT:Horizontally
TAG POS=4 TYPE=DIV ATTR=CLASS:sp-preview-inner&&TXT:
TAG POS=4 TYPE=INPUT:TEXT ATTR=CLASS:"sp-input" CONTENT=#000000
TAG POS=8 TYPE=DIV ATTR=TXT:Enabled
TAG POS=174 TYPE=DIV ATTR=TXT:
TAG POS=8 TYPE=INPUT:RANGE FORM=ID:add-new-work ATTR=* CONTENT=13
TAG POS=7 TYPE=BUTTON FORM=ID:add-new-work ATTR=TXT:Horizontally
TAG POS=6 TYPE=DIV ATTR=CLASS:sp-preview-inner&&TXT:
TAG POS=6 TYPE=INPUT:TEXT ATTR=CLASS:"sp-input" CONTENT=#000000
TAG POS=10 TYPE=DIV ATTR=TXT:Enabled
TAG POS=11 TYPE=DIV ATTR=TXT:Enabled
TAG POS=13 TYPE=DIV ATTR=TXT:Enabled
TAG POS=271 TYPE=DIV ATTR=TXT:
TAG POS=12 TYPE=INPUT:RANGE FORM=ID:add-new-work ATTR=* CONTENT=43
TAG POS=11 TYPE=BUTTON FORM=ID:add-new-work ATTR=TXT:Horizontally
TAG POS=11 TYPE=DIV ATTR=CLASS:sp-preview-inner&&TXT:
TAG POS=11 TYPE=INPUT:TEXT ATTR=CLASS:"sp-input" CONTENT=#000000
TAG POS=15 TYPE=DIV ATTR=TXT:Enabled
TAG POS=15 TYPE=DIV ATTR=TXT:Disabled
TAG POS=333 TYPE=DIV ATTR=TXT:
TAG POS=14 TYPE=INPUT:RANGE FORM=ID:add-new-work ATTR=* CONTENT=21
TAG POS=13 TYPE=DIV ATTR=TXT:Center<SP>Design:<SP>Vertically<SP>Horizontally
TAG POS=13 TYPE=BUTTON FORM=ID:add-new-work ATTR=TXT:Horizontally
TAG POS=1 TYPE=IMG ATTR=SRC:https://d3spquiph2sexc.cloudfront.net/assets/upload/blank-mug-center-3e1e199f17f15d8da8bd1ce3e5b9c4fb7b8b5b8df79a9127edcf5ecbecf9724e.png
TAG POS=13 TYPE=DIV ATTR=CLASS:sp-preview-inner&&TXT:
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:"sp-input" CONTENT=#000000
TAG POS=17 TYPE=DIV ATTR=TXT:Enabled
TAG POS=18 TYPE=DIV ATTR=TXT:Enabled
TAG POS=19 TYPE=DIV ATTR=TXT:Enabled
TAG POS=20 TYPE=DIV ATTR=TXT:Enabled
TAG POS=417 TYPE=DIV ATTR=TXT:
TAG POS=19 TYPE=INPUT:RANGE FORM=ID:add-new-work ATTR=* CONTENT=35
TAG POS=18 TYPE=BUTTON FORM=ID:add-new-work ATTR=TXT:Horizontally
TAG POS=18 TYPE=DIV ATTR=CLASS:sp-preview-inner&&TXT:
TAG POS=18 TYPE=INPUT:TEXT ATTR=CLASS:"sp-input" CONTENT=#000000
TAG POS=448 TYPE=DIV ATTR=TXT:
TAG POS=20 TYPE=INPUT:RANGE FORM=ID:add-new-work ATTR=* CONTENT=36
TAG POS=19 TYPE=BUTTON FORM=ID:add-new-work ATTR=TXT:Horizontally
TAG POS=19 TYPE=DIV ATTR=CLASS:sp-preview-inner&&TXT:
TAG POS=19 TYPE=INPUT:TEXT ATTR=CLASS:"sp-input" CONTENT=#000000
TAG POS=23 TYPE=DIV ATTR=TXT:Enabled
TAG POS=24 TYPE=DIV ATTR=TXT:Enabled
TAG POS=25 TYPE=DIV ATTR=TXT:Enabled
TAG POS=52 TYPE=I ATTR=CLASS:rb-font-icon<SP>icon-cancel-circled2&&TXT:
TAG POS=27 TYPE=DIV ATTR=TXT:Enabled
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:add-new-work ATTR=ID:work_title CONTENT={{!COL2}}
TAG POS=1 TYPE=TEXTAREA FORM=ID:add-new-work ATTR=ID:work_description_en CONTENT={{!COL3}}
TAG POS=1 TYPE=TEXTAREA FORM=ID:add-new-work ATTR=ID:work_tag_field_en CONTENT={{!COL4}}
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:add-new-work ATTR=ID:media_design CONTENT=YES
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:add-new-work ATTR=ID:media_digital CONTENT=YES
TAG POS=1 TYPE=SELECT FORM=ID:add-new-work ATTR=ID:work_default_product CONTENT=%t-shirt
TAG POS=1 TYPE=INPUT:RADIO FORM=ID:add-new-work ATTR=ID:work_safe_for_work_true
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:add-new-work ATTR=ID:rightsDeclaration CONTENT=YES
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:add-new-work ATTR=ID:submit-work
WAIT SECONDS=50
URL GOTO=https://www.redbubble.com/portfolio/images/new

Grrr..., try to select the "correct" Sub-Forum when you open a Thread, this one probably has nothing specific to iMacros for FF only, especially if you don't mention your FCI... (But no need to duplicate now...)
=> FCIM...! :mrgreen: (Read my Sig...)
=> iMacros for FF v8.9.7...?, FF v...?, OS...?

You posted your Runtime Error in the Thread Title which has a limited Size, so it got truncated, can you post it "fully" in your Thread...?

Site URL not (clearly) posted..., I won't go and try to find it at the end of your Script to have a look at this Site and your Script, but from what I can see from the beginning of your Script related to '!DATASOURCE' and '!DATASOURCE_LINE', it looks normal to me, Pb probably comes from your '.CSV' File...
Post your '.CSV', maybe you've got 2 empty Lines in a row..., or the Format is "wrong" with Delimiter/Separator or CharSet and with/without BOM, hum, and your "TYPE=INPUT:FILE ATTR=ID:select-image-single CONTENT={{!COL1}}" sounds like you're uploading some Image to this Site, if iMacros updated to v9.0.3, Upload Functionality is not supported anymore in v9.0.3, but if that was the case, you would get some more explicit Runtime Error related to "Upload not supported" and linked to "Line 6"... :?

You should mention as well if the 'Loop-Csv-2-Web.iim' Demo-Macro works fine or not...
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6685
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: RuntimeError: Invalid DATASOURCE_LINE value: 2, line 5 (

by techimac on Fri Jan 19, 2018 8:01 pm

may be he updated iMacros
techimac
 
Posts: 207
Joined: Fri Feb 20, 2015 2:27 pm

Re: RuntimeError: Invalid DATASOURCE_LINE value: 2, line 5 (

by chivracq on Sat Jan 20, 2018 2:07 am

techimac wrote:may be he updated iMacros

Yeah, I guess we'll never know, as there is still no Follow-up from @OP after nearly 1 week... :roll:
And that's what I meant by mentioning v9.0.3 for FF, but that's always the Pb with Users not mentioning their FCI...
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6685
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)


Return to iMacros for Firefox

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 10 guests

-->