This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Oct 18, 2013, 2:07 PM
1 Posts

NotesException: Database open failed (%1)

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0
  • Role: Developer
  • Tags:
  • Replies: 1

I am running a web service from an instance of Salesforce to our client's Lotus Notes server. I am able to get hard-coded content to return, so I feel certain that the connection itself is working as intended.

However, as noted in the subject, I am running into a NotesException. This is being thrown on the last line of the code below (db and path are simply parameters I pass into the function, I am able to view records from the nsf they correspond to):

s = WebServiceBase.getCurrentSession();

Database data = s.getDatabase(db, path);

data.open();

If I try not opening the database, I get an exception that says I need to open the database. We had been developing this web service for a while without ever opening the database or knowing that this was something to concern ourselves with. Obviously something changed, but as my office is full of Salesforce devs and not LN devs, we don't know what.

Any help in tracking down the root cause of this issue would be greatly appreciated.

Jul 23, 2014, 9:57 AM
12 Posts
No Problems

We get databases on our service and have no issues. Do you not have an issue around your server or database path? We retrieve our info from a profile document e.g.

sescur = WebServiceBase.getCurrentSession();
dbcur = sescur.getCurrentDatabase();
 
 
docProfile=dbcur.getProfileDocument("frmGlobal_Profile","WebService");
 
String logSrv = docProfile.getItemValueString("txtLogServer");
String logDb = docProfile.getItemValueString("txtLogDatabase");
 
eiLog.setDblog(sescur.getDatabase(logSrv, logDb));

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal