Script throwing error" Object required: 'API'
shiv2Sep 16 2011 — edited Sep 19 2011Hi All,
We need help in one issue. We have following script which is running fine when we ran it from script editor, but when use this as expression in import format is throwing error
Error: An error occurred importing the file.
Detail: Object required: 'API'
At line: 12
Script:
Function ME_to_LE(strField, strRecord)
ME_to_LE =API.SqlMgr.fMapItemLookup (749, "UD8", Left(strField,3))
End Function
We have created few other Scripts which are running fine and producing required result when we check them with MsgBox. But when we are using these scripts in import format it is saying: Object required: 'API'
IF I can not use API object in import script, how can I process multiple column with one script. We need to derive three-four column based on one input column and we don't want to write separate import script for each column. How and where we can write this script?
Are we missing any step? Any help will be highly appreciated. Looks I asked long question :)
Thanks,
Shivendra
Edited by: shiv2 on Sep 16, 2011 9:30 AM
Edited by: shiv2 on Sep 16, 2011 10:36 AM