IBM Support

"Notes error: file can not be created" when attempting to archive

Technote (troubleshooting)


Problem

"Notes error: file can not be created" when attempting to archive

Symptom

The error is encountered when attempting to drag and drop an email into the archive or using the Actions >Archive Now feature. The same error is encountered when creating a new archive and attempting to archive documents to it.


Cause

A corrupted archive profile document

Resolving the problem

Delete and recreate the Archive profile document as shown:

1. In the mail file, go to the Inbox view and select select Create --> Agent.

Note: Above step will launch the IBM Domino Designer client.

2. In IBM Domino Designer, in the agent dialog box, name the agent (ex. Delete Archive Profile)

3. Make sure that "Type:" is set to Lotus Script and that "Application:" contains the name of the mailfile.

4. Click on OK to Close the dialog box.



Select and highlight Initialize from the Objects Tab> dropdown list (shown below).



5. Paste the following code in between Sub Initialize and Initialize (shown below).

Dim session As New NotesSession
Dim db As NotesDatabase
Dim profile As NotesDocument
Set db = session.CurrentDatabase
Set profile=db.GetProfileDocument("Archive profile")
Call profile.remove(True)




6. Ensure that the code is formatted properly, as shown in the screenshot above.

7. Close and save the agent

8. Open the mail file, go to the Inbox view and select the agent from the Actions menu.

****************************************************************************************************************

Related information

All-in-one Admin Tool for agent-based troubleshooting &

Document information

More support for: IBM Notes
Mail

Software version: 8.5, 8.5.1, 8.5.2, 8.5.3, 9.0

Operating system(s): Windows

Reference #: 1591562

Modified date: 29 January 2015