Das Notes Forum

Domino 9 und frühere Versionen => ND7: Administration & Userprobleme => Thema gestartet von: elmolino am 25.03.09 - 09:19:20

Titel: tabelle hat fehlerhaftes format
Beitrag von: elmolino am 25.03.09 - 09:19:20
"tabelle hat fehlerhaftes format" kommt in einer Handbuch DB in dem Moment wenn das Dokument angeklickt wird und geöffnet werden soll in der Ansicht.
Auf dieses Dokument kann in der DB nicht mehr zugegriffen werden.
Hat jemand eine Idee ? Bin ratlos...
Titel: Re: tabelle hat fehlerhaftes format
Beitrag von: Micha B am 25.03.09 - 09:40:56
Wie wurde das Dokument erstellt? Wurde es importiert, evt. mit einem Agenten?
Titel: Re: tabelle hat fehlerhaftes format
Beitrag von: Axel am 25.03.09 - 10:31:05
Hast du schon mal fixup und compact auf die Datenbank losgelassen?

Axel
Titel: Re: tabelle hat fehlerhaftes format
Beitrag von: mattmurphy am 26.03.10 - 10:56:46
Auch wenn der Beitrag etwas älter ist wollte ich hier mal eine Lösung dazu posten:

Wenn Ihr ein Dokument wegen Kaputter Tabelle im Richtextfeld nicht mehr aufbekommt, dann versucht einfach mal mit dem folgenden Script das Richtextfeld hin und her zu kopieren. Damit hat es bei mir unter R6 funktioniert.

   Dim session As New NotesSession
   Dim curdb As NotesDatabase
   Dim curcoll As NotesDocumentCollection
   Dim curdoc As NotesDocument
   Dim rtitemA As Variant
   Dim rtitemB As Variant
   
   Set curdb = session.CurrentDatabase
   
   Set curcoll = curdb.UnprocessedDocuments
   For i = 1 To curcoll.Count
      Set curdoc = curcoll.GetNthDocument( i )
      Set rtitemA = curdoc.GetFirstItem( "Body" )
      Set rtitemB = curdoc.CreateRichTextItem( "Body1" )
      Call rtitemB.AppendRTItem( rtitemA )
      Call rtitemA.Remove
      Set rtitemA = curdoc.CreateRichTextItem( "Body" )
      Call rtitemA.AppendRTItem( rtitemB )
      Call rtitemB.Remove
      Call curdoc.Save( True, True )
   Next