I have an import agent that reads a text file and creates documents in a database. In the agent, I use ComputeWithForm. When I run the agent in my local against a local database, the ComputeWithForm returns true. But when I process the same text file from a server against a database that resides in another server (not my local), ComputeWithForm returns false.
Could it be that I’m missing something in the database’s ACL for the id that I’m using on the server to run the agent? Any other ideas?
Thanks a lot for any help!
Subject: ComputeWithForm fails when running from Server
Does the server have access to everything that’s being looked up in the formulas?
Subject: RE: ComputeWithForm fails when running from Server
Right now, when I look at the ACL, the id that I use to run the agent has the following Attributes:
-
Create documents
-
Delete documents
-
Read public documents
-
Write public documents
-
Replicate or copy documents
Am I missing some setting here?
Thanks for any help!
Subject: RE: ComputeWithForm fails when running from Server
That is the access it has to that specific database. Are you looking anything up anywhere else? Is there any interaction with the file system?
Subject: RE: ComputeWithForm fails when running from Server
No, my agent runs from a server that connects to a remote server where the database resides in. I create documents in the remote server but I do not access the file system at all. I do have an Author field in the newly created document. Would that be causing the ComputeWithForm to fail? I’m really not sure what else to look at.
Thanks much!
Subject: RE: ComputeWithForm fails when running from Server
Server-to-server? Is the server the agent runs on trusted by the server where the documents are supposed to be created? Check the server doc in the address book. A server must be trusted before it can access another server.
Subject: It is fixed!
I made a big mistake in my code which was causing the problem. I had multiple instances of the db declared in different subroutines and this is what was causing the problem.
Thanks for trying to help me with this. I’ll be more cautious with my declarations next time.