Server Side JavaScript when getting embedded objects

I have a notesDoccument with an XML attachment into a NotesRichTextField.When i try to get the file, i get the following message error :

Conductor XPage Error Firma.xsp: com.ibm.jscript.InterpretException: Script interpreter error, line=35, col=55: Error calling method ‘getEmbeddedObjects()’ on an object of type ‘lotus.domino.local.Item’

I look the document fields, and the field exists, it’s of RichText type, and has the XML into:

Field Name: Xml

Data Type: Rich Text

Data Length: 1530 bytes

Seq Num: 10

Dup Item ID: 0

Field Flags: SIGN SEAL

  • Memo.xml

The code(on page load):

var doc:NotesDocument=DataSourceDoc.getDocument();

if (doc.hasItem(‘XMLFirmado’)){

var rtiXMLF:NotesRichTextItem=doc.getFirstItem(‘XMLFirmado’);

if (rtiXMLF!=null){

   var vAttachsF = rtiXMLF.getEmbeddedObjects(); //HERE'S THE ERROR

}

}

Subject: Same problem here

Same problem here. It’s so frustrating!