There are at least two things that cause this error.
The examples use a Table System Varible like this:
fruitTable
Id |
Name |
Code |
1 |
Apple |
123 |
2 |
Grape |
456 |
Example1:
Invalid column name:
var result = qie.doTableLookup('2', '', 'fruitTable', 'Id', 'Type');
Example 2:
Target column cannot be the same as one of the source columns:
var result = qie.doTableLookup(['Apple', '123'], '', 'fruitTable', ['Name','Code'], 'Code');
Note: The second example also demonstrates a multi column lookup.