Das Notes Forum

Domino 9 und frühere Versionen => ND8: Entwicklung => Thema gestartet von: Sonja Schiffer am 22.03.12 - 17:04:50

Titel: Bug in 8.5.3 OLEObject.Activate: Ungültiges oder nicht vorhandenes Dokument
Beitrag von: Sonja Schiffer am 22.03.12 - 17:04:50
Hallo zusammen,
ich melde das Problem, da ich durch googeln selbst nichts gefunden hatte und so jemand anderem vielleicht helfen kann, etwas Zeit zu sparen. Außerdem hab ich die Hoffnung, falls andere das Problem auch haben und bei der IBM melden, dass der Bug schneller behoben wird.

Problem tritt im Lotus Notes 8.5.3 Client auf, im 8.5.2er und ich weiß nicht wie vielen vorherigen hat es immer funktioniert.
Ein OLE Object (getestet mit Microsoft Office Word und Powerpoint) ist in einer Maske als Embedded Object (Create->Object: Oject from a file ...) vorhanden und wird über einen Dialog geholt und aktiviert. Beim OLEObject.Activate kommt die Fehlermeldung:
Notes-Fehler: Ungültiges oder nicht vorhandenes Dokument (OLEObjectName)  

Code-Example:                                                    
   Dim uiws As New NotesUIWorkspace                                        
   Dim s As New NotesSession                                              
   Dim doc As NotesDocument                                                
   Dim var As Variant                                                      
   Dim oleObject As NotesEmbeddedObject                                    
   Dim oleHandle As Variant                          

   Set db = s.CurrentDatabase                                              
   Set doc = db.CreateDocument()                                          
   Call uiws.DialogBox("DialogEmbeddedObject",True,True,True,False,False,False,,doc,True,True) '//Maske mit einem Embedded OLE Object
   var = doc.EmbeddedObjects                                              
   Forall o In var                                                        
   If Lcase(o.Name) = "embeddedObjectName"  Then                        
      Set oleObject = o
   End If                                                                  
   End Forall                                                              
   Set oleHandle = oleObject.Activate(True)  '//Notes-Fehler: Ungültiges oder nicht vorhandenes Dokument (OLEObjectName)

Ich habe bei der IBM einen PMR eingestellt, das Problem ist bereits bekannt wird aber vorerst nicht gefixt.
PMR in short:
      Lotus Notes 8.5.3, Invalid or nonexistent document at OLEObject.Activate
      A OLEObject is embedded in a mask. Object is fetched with a dialog and activated.
      Then the following failure message is shown: "Invalid or nonexistent document"
  
Folgende Antwort habe ich dazu erhalten:
      Error "Invalid or nonexistant" document using OLE objects
      Found this as SPR # BHUY8P3JV6 - Using Ole Objects With Notes 8.5.3 Can Result In "Invalid Or Nonexistant Document" Errors
      Status = No Plans To Fix in this Codestream & 854 Deferral Candidate for Team Triage Review          
                                                                        
      There is no technote.                                            
      An APAR doc was published: http://www-01.ibm.com/support/docview.wss?uid=swg1LO65725        
                                                                        
      Only solution at this moment is following workaround:            
      - Do not use embedded object, rather just detach edit, save and reattach a file to the document.                                
                                                                        
      Added PMR to SPR to increase weight. Increased weight and if other clients apply for it to be fixed sooner might influence re-evaluating current "not to fix in this codestream" status, but is no guarantee !    

Naja die Antwort wollte ich eigendlich nicht bekommen...Bin allerdings erst die 2. die das Problem gemeldet hat.
Also wenn irgendjemand das Problem auch hat, dann meldet es doch bitte auch an die IBM und bezieht Euch am besten gleich auf den entsprechneden SPR.