I set up a merge replication between one Publisher and a subscriber[ the same tables on both] and everything seems to be working fine and there was not a single conflict in the initial setup and subscription. But problem occur when we try to download additional data to write into the database. Some files are downloaded successfully and few are giving this error. basically some files are writing without error and few are giving error. all this files have the same algorithm and tables to write to and am wondering why this problem It says
•Rowguid does not allow dbnull.value
•ForeignKeyConstraint requires the child key values to exist in the parent table
Is there anyway to know why some failed to download successfully and want to be careful to alter database. I was trying to change the rowguid to allow null, but was saying you are prevented to make changes. I have decided not to uncheck the box that says prevent to make changes to the table.
Any help will be appreciated. How can I get a error log of what is happening on tables using try and catch. The error logs in SQL server agent is only giving server info logs, but not on insert or update error logs.
Many thanks,