Why I have "undefined" value time to time?

Discussions and Tech Support specific to the iMacros for Chrome extension.
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
tusiromania
Posts: 27
Joined: Tue Feb 04, 2020 11:09 pm

Why I have "undefined" value time to time?

Post by tusiromania » Wed Dec 14, 2022 4:51 pm

Hi there

I have the iMacros code bellow and I don't understand why sometime, not always {{draft18claim}} receive undefined Value.

the script is made to go to a link once at 2 loops.

Code: Select all



SET filterdraft18claim "videos/upload?filter=%5B%7B"name"%3A"VISIBILITY"%2C"value"%3A%5B"DRAFT"%5D%7D%2C%7B"name"%3A"AGE_RESTRICTION"%2C"value"%3A"NOT_AGE_RESTRICTED"%7D%2C%7B"name"%3A"HAS_COPYRIGHT_CLAIM"%2C"value"%3A"VIDEO_HAS_COPYRIGHT_CLAIM"%7D%5D&sort=%7B"columnType"%3A"date"%2C"sortOrder"%3A"DESCENDING"%7D"

SET draft18claim EVAL("var n='{{!LOOP}}'; var z; if((n%2)==1){z=\"https://studio.youtube.com/channel/{{idcanal}}/video/{{filterdraft18claim}}\";} else{z=\"javascript:window.scrollBy(0,5)\";}; z;")

URL GOTO={{draft18claim}}

Error

Code: Select all

RuntimeError: Navigation error occured while loading url http://undefined/, details: net::ERR_NAME_NOT_RESOLVED, line: 65

I am using (FCI): iMacros for CR v10.1.1 'PE', CR v105.0.5195.102 (_x64), Win10_x64. ('CR' = 'Chrome' / 'PE' = 'Personal Edition')
Post Reply