I have this error TypeError: val is undefined, line: 1

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
andrea1897
Posts: 1
Joined: Sat Jul 10, 2010 8:20 am

I have this error TypeError: val is undefined, line: 1

Post by andrea1897 » Sat Jul 10, 2010 9:02 am

I solved the problem
Last edited by andrea1897 on Tue Jul 13, 2010 10:57 am, edited 1 time in total.
Tom, Tech Support
Posts: 3546
Joined: Mon May 31, 2010 4:59 pm

Re: I have this error TypeError: val is undefined, line: 1

Post by Tom, Tech Support » Tue Jul 13, 2010 9:38 am

Hello Andrea,

I tried your script and did not get the error. Are you still having this issue?
Regards,

Tom, iMacros Support
pedroccda
Posts: 1
Joined: Mon Nov 15, 2010 10:47 pm

Re: I have this error TypeError: val is undefined, line: 1

Post by pedroccda » Mon Nov 15, 2010 10:49 pm

How have you solved it?
nfranco87
Posts: 2
Joined: Tue Mar 15, 2011 7:33 pm
Location: Ciudad de Buenos Aires - Argentina

Re: I have this error TypeError: val is undefined, line: 1

Post by nfranco87 » Tue Mar 15, 2011 7:41 pm

I have the same error. Somebody can help me?
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: I have this error TypeError: val is undefined, line: 1

Post by Daniel, Tech Support » Tue Mar 15, 2011 10:26 pm

Hi,

Could you please submit your macro and tell me what line does the error happen at?
Daniel, iOpus Support
Trax
Posts: 43
Joined: Thu Sep 13, 2012 4:07 pm
Contact:

Re: I have this error TypeError: val is undefined, line: 1

Post by Trax » Mon Dec 16, 2013 6:30 pm

I'm getting this error too any ideas what it is caused by ?

After a lot of testing it seems that the error was caused by a little piece of code:

Code: Select all

iimSet("something", foo);
The problem was that foo was undefined/empty.
Post Reply