Skip to main content
 
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  >  IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

Sign in to participate Previous Next
Subject: Error 4005: Notes error: File cannot be created
Feedback Type: Problem
Product Area: Security
Technical Area: Error Message
Platform: Windows
Release: 8.5.3
Reproducible: Always

I have an Domino web application that supports both online and offline (using DOLS). An agent is designed to extract an EXCEL file temporarily to the folder where the database resides, then further read the values in the EXCEL. It works great when on-line.

But when off-line, always encounter this error - "Error 4005: Notes error: File cannot be created (C:\Program Files\Lotus iNotes\DATA\sub_0\zz\devdev\Client Table 1.xls) at line 20 in module detach of ag_LookupClientTables" (the db file path and name is zz\devdev\mydatabase.nsf), when execute the line 20, i.e., "Call nEO.ExtractFile( fileName )".

Here is code of the detatch function module:
' /* ************************************************** */
Dim detachTo As String, fileName As String
Dim nEO As NotesEmbeddedObject
detach = ""
detachTo = detachWhere

If (thisDoc.HasEmbedded) Then
' something is embedded (somewhere)
' locate the attachment by name
Set nEO = thisDoc.GetAttachment(attachmentName)
If Not(nEO Is Nothing) Then
fileName = detachTo & nEO.Source
tell ("detaching " + attachmentName + " to file system as: " + Format$(fileName))
Call nEO.ExtractFile( fileName )
detach = fileName
Else
tell ("attachment " + attachmentName + " not found, cannot load")
End If

End If
' /* ************************************************** */

The error appears when running the off-line on both XP and Windows 7 PCs. It appears that Windows doesn't allow the creation of the EXCEL file onto the PC

Any ideas to resolve this error? Thanks for any suggestions and comments.


Feedback number WEBB8XVUDJ created by Philip S Zhu on 09/06/2012

Status: Open
Comments:

Error 4005: Notes error: File canno... (Philip S Zhu 6.Sep.12)
. . It's a LotusScript agent ... (Philip S Zhu 7.Sep.12)
. . . . Solved a while ago ... (Philip S Zhu 5.Nov.12)




Printer-friendly

Search this forum


Sign In or Register

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

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 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 Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM Web Content Manager
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite