Domino 9 und frühere Versionen > ND6: Entwicklung

Index is not to be generated on server

<< < (4/5) > >>

Don Pasquale:
@Semeaphorus,

vielen Dank für Deine Hilfe.
Wenn ich schon das Bugfix nicht finde, würde mir zumindest
der Bug helfen. Weisst Du, wo Du das geufnden hast ?
Ciao
Don Pasquale

Semeaphoros:
Knowledgebase, ebenfalls über LDD erreichbar, suche nach der Fehlermeldung, es sind etwa 5 Einträge dazu drin

Semeaphoros:
Scheint, dass es da tatsächlich unterdessen auch einen Workaround gibt:

   Lotus Software Knowledge Base
      

Title:   
      Using Method or Property of NotesView Object Returns Error: "Index Is not to Be Generated on Server"
      
Product:
Platform(s):   Lotus Notes  >  Lotus Notes  >  6.x
      Platform Independent
Document Number:   1108323   Date:   05.06.2003



This document is based on the following :
About SPRs
SPR Number   SPR Status   SPR Fixed Release
TGOO5JVEGC      
Problem
When a LotusScript formula calls a method or property of the NotesView class obtained using the GetView method (of the NotesDatabase class), the following error message occurs:

"Notes Error:  Index is not to be generated on Server (<view/folder name>)"

This issue occurs only in cases where the view or folder accessed by the GetView method is a Personal On First Use (POFU) view/folder, and the user has created their personal version of the view/folder.   The issue occurs only when using a Notes 6 Client.  It does not occur when executed from a Notes R5 Client.

Note:  This same error can be observed in both Notes 5.x and Notes 6.x when the POFU view or folder has not been created yet by the user; this is expected behavior.  The POFU version of the view or folder cannot be created using a back-end method such as GetView.  For more information on this issue see the related document  "Opening View Programmatically Returns Error: "Index Is Not To Be Generated on Server"  (#1094072) .




This issue has been reported to Lotus Software Quality Engineering.

Workaround:
You can set the formula to loop through all of the views and folders in the database until the correct one is found (which is determined by testing for the name and checking whether the Readers field contains the user's name).

The example below uses the GetView method if it is being executed on a Notes R5 Client or Domino R5 Server; otherwise, it uses the loop workaround.  In the example the references to "POFU" should be changed to the name of the view/folder you would like to get a handle to:


If s.NotesBuildVersion<190 Then    'If running R5 then simply use GetView.
  Set pview=db.GetView("POFU")
 Else                                                            'If ND6 will do loop workaround
  Forall v In db.Views
   If v.name="POFU" And Isarray(v.readers) Then
    If v.readers(0)=s.UserName Then
     Set pview=v
     Exit Forall
    End If
   End If
  End Forall
 End If
 'now pview has handle to the Personal On First Use version of the view/folder



Related Documents:
Notes Client/Server Hang in Agent/LotusScript Getting Handle to Private-on-First-Use Folder
Document #:  1085379

Opening View Programmatically Returns Error: "Index Is Not To Be Generated on Server"
Document #:  1094072

Don Pasquale:
@Semeaphorus

Ich glaube die 5 gefunden zu haben, oder auch nicht,
denn ich verstehe nichts, gar nichts und
das liegt nicht an meinem englisch.

Aber das war auf IBM Seiten fast immer so.

Ciao
Don Pasquale

Semeaphoros:
Probiere doch mal, die Zeile mit dem GetView durch den oben empfohlenen Loop zu ersetzen:

  Forall v In db.Views
  If v.name="POFU" And Isarray(v.readers) Then
    If v.readers(0)=s.UserName Then
    Set pview=v
    Exit Forall
    End If
  End If
  End Forall

Das würde eigentlich sowohl in 5 wie in 6 auch funktionieren.

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln