I'm trying to setup a merge replication between two SQL Servers (2012 version). Some problems are solved but at least for one table I get an error when a record is updated on the Subscriber. The error message is confusing for me; it says that either there is a problem with a constraint, or the user has no permission to perform the operation. Since with other tables the replication works correctly I assume that this is not a problem with the user. And this leads to my first question: where exactly can I change agent parameters in order to log errors to a log file? Everywhere I check the agents profiles are read-only. Should I create a new profile or simply specify additional parameters in the agent's job? I actually added -Output "C:\agent.txt" -OutputVerboseLevel 3 parameters to the job but the output file was not created.
The second question is about the table that cannot be replicated back to the publisher when it was updated on the subscriber. It has three unique key constraints (one on the Id column - primary key, the second on some code column and the third on Name column). It has also a trigger that stores the previous version of a record in another table. Of course it has also [rowguid] column with unique index. On the subscriber I try to update a column that is not in unique key constraint. This causes the error mentioned above. Any ideas?
Mark