An existing application/agent has started returning error messages. We’ve just performed a design refresh on the app, so I’ve determined that the error is related somehow to this, but I don’t see how.
We have a scripted LEI activity which executes an agent within the database. The agent is very simple; it opens a view within the database, opens the first (& only) document in the view, sets a field on the document to ‘Y’, and saves it:
Set db = s.currentDatabase
Set view = db.getView("Database Parameters")
Set pDoc = view.getfirstDocument
pDoc.ReadersEditorsTrigger = "Y"
Call pDoc.Save(True, True)
Since the agent is triggered by LEI, it runs on the server designated to LEI. (the database is on a separate server)
This LEI activity/agent has never had issues running in the past, but now it returns the following error message:
Notes error: You are not authorized to access the view(viewname)
The view doesn’t have any security set up around it (it’s available to all readers and above)
The LEI server is in the ACL for the database in question as a manager with full access.
There is a replica of the database on the LEI server. If I change the activity to execute the agent on the LEI server, the agent runs successfully. So it seems to be a cross-server issue. (and no, I can’t permanently change the activity to run against the LEI server copy of the database. It needs to run on the other server)
What could be causing this?