Document.save() fails to save document?

Hi, I have a server application which needs to open and process a document in a client application. After processing the document, a call to document.save() returns false indicating that the document in the client database has failed to save. The document in the client does not appear to be open by any other application. At the same time, associated documents in the server database save successfully.

Any ideas as to why document.save() may be returning false would be welcomed.

	...

	Call instance.replaceItemValue("rpCurrentState", Me.getAction().getDestinationState().getName())

	

	'Document in the current database - saves successfully

            If Not instance.Save(True, False) Then

		Error 1008, "Could not update workflow instance"

	End If

	

            'Document in the other database - fails to save

	If Not Me.getSource().save(True, False) Then

		Error 1009, "Could not update source document"

	End If

Notes: The client and server both reside on the same server. I have local replicas of both. I have been executing the server copy from local machine because I have setup remote debugging on the server.

Notes Client: 8.01 Windows XP

Domino Server: 7.0.3FP1 Windows Server 2003

Subject: document.save() fails to save document???

I guess this is where I would start looking…

does Me.getSource actually find and return the document it’s looking for?

is there a SaveOptions field on the document that Me.getSource returns?

if this is run server side, does the server or whomever signed the agent have proper access rights in the other DB?

are there readers/authors fields on the document that Me.getSource returns?

You’ve probably already looked at these but this is where I would start.

Keith