Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Script throwing error" Object required: 'API'

shiv2Sep 16 2011 — edited Sep 19 2011
Hi 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

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 17 2011
Added on Sep 16 2011
4 comments
273 views