Problem solve Get help with specific problems with your technologies, process and projects.

CreateObject error message

I'm trying to import an RTF-File as an object in the Body-Field of a new memo. I have to use the FrontEnd-Classes, because the memo have to be sent over our Fax-Gateway. If I try to use the EmbedObject-Method via Backend, the Fax isn't sent correctly.

The Problem is that I get an error if I try to create the object in the Body-Field via Script. If I embed the Object manually via the Notes-Client, everything works correct. Even if I use CreateObject() without any parameters, I can import the object with the displayed menu.

The Function Call is :
call uidoc.CreateObject_("","","C:test.rtf")

The Error message I receive is :
"An error occured while executing a request for the object."
(It's not the orignal error, because I translated it from German to English).

What can I do?

Three possibilities I can think of for you to try (since your syntax is correct). First, the document MUST be in edit mode for the function to work properly. Second, the cursor must be in a Rich Text field when you call the method (this means that if it is not already in the correct field, you must put it there by using uidoc.GotoField("fn"). Third, because I don't know which platform you are on, ensure you are using the correct character in your path statement "/" or "\".

Hope this helps.

Dig Deeper on Domino Resources - Part 3

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...