Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

PreviousPrevious NextNext

Database has not been opened yet - LotusScript error
Andre Guirard 31.May.08 09:27 AM Lotus Notes
Domino Designer 7.0.2 All Platforms


This error occurs when you try to use a NotesDatabase object in ways that require it to be "open," and it is not open at that time. The IsOpen property will tell you whether the database is open. See the description of IsOpen for a list of properties that are available when the database is not open.

If you get the NotesDatabase handle from a NotesDBDirectory object or from NotesSession.AddressBooks, it is not open until you call the Open method on it. But if you get the object in another way, for instance using New NotesDatabase, the database is normally opened at the same time.

So, the cause of the problem is the line of code that creates the NotesDatabase object. However, the error doesn't occur until later on, when you try to use the object in a way that requires it to be open.

Dim dbLookup As New NotesDatabase(dbThis.Server, "resc\lookup.nsf") ' problem here: database doesn't exist.
Set view = dbLookup.GetView("Keywords") ' error occurs here.

Possible causes of the problem are:
  • There is no such database at the path you specified.
  • The ID running the code doesn't have access to open the database.
  • The database file is damaged somehow and can't be opened.
  • ...

Use the LotusScript debugger, or insert some debugging output statements, to see the exact values of the strings you're passing as arguments. Make sure they have the values you expect. If the values are correct, try to open the application manually, from the Notes client menus, using the exact same server name, filepath and Notes userID as was used by the code. The resulting error message should tell the cause of the failure.




Database has not been open yet (B Dali 31.May.08)
. . Database has not been opened yet - ... (Andre Guirard 31.May.08)
. . . . RE: Database has not been opened ye... (B Dali 31.May.08)
. . . . . . RE: Database has not been opened ye... (Harkpabst Melia... 31.May.08)
. . RE: Database has not been open yet (Navneet N Panpa... 2.Jun.08)
. . . . RE: Database has not been open yet (Stan Rogers 2.Jun.08)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite