What to do when every document in a view appears as a Replication Save Conflict
Category Show-n-Tell ThursdayI ran into an interesting issue yesterday after having pushed some design changes to an existing production application database.
It seems that some of the users of the application, when opening some of the views, were seeing nothing but replication conflicts, instead of normal documents. Every single entry in the view appeared as a Replication Save Conflict. The offending views differed from user to user, and the Replication Conflicts View only contained two documents. The only thing that the users who were experiencing these symptoms had in common were:
- They were all accessing the database using a Notes Client (web users were unaffected)
- Their Notes Client versions were between 6.0 and 6.5.5 (primarily 6.5.3)
My first instinct was that the issue probably had to do with the version of the Notes Client being used (and in a small way I was correct); however in my haste to solve the problem (this is a really important production application) I failed to notice the most important clue: the offending views differed from user to user. I thought that perhaps the offending views contained some design elements (shared columns) or @Formula in either the selections, column formulas, or view actions that were somehow incompatible with Notes Client versions prior to 6.5.5. Our corporate standard version is R7.0.1, and the changes had been developed, tested, and UAT using this version.
After chasing several dead-ends, and doing a bunch of searching on the web, I realized the culprit was not incompatible design elements, but in fact the client side cache. The technote that helped me figure this out (while not explicitly mentioning the symptoms our users were experiencing) can be found here. It seems that the Notes Client 6 versions (up until 6.5.5) will sometimes refuse to release a cached design element (in this case the view design note), even when the design of a database has been updated. Restarting the Notes client (and even restarting the machine) does not solve the issue.
Once I realized (about the same time that I clued into the differeing views point) that the problem had to do with the Notes Client cache, the solution became obvious.
Steps to correct this issue
- Remove the database icon from the Notes Client workspace. (Make note of it's location so you can open it later)
- Shut down the Notes Client
- Find the cache.ndk file. This can usually be found in the Notes Data directory.
- Delete cache.ndk
- Start Notes
- Open the database
That's it.
-DevinPS: To those of you may be thinking "That's it!? All this build-up for this simple solution? How anticlimactic!" -well, sometimes things aren't really that big of a deal.

The Pridelands
Chris Byrne
Show n' Tell Thursdays



Comments
Posted by Theo Heselmans At 08:55:31 AM On 08/02/2007 | - Website - |
Posted by Curt Stone At 09:57:13 AM On 08/02/2007 | - Website - |
Now that I think about it (and your point) a bit more, I think you are probably right in that removing the database icon really isn't necessary as long as cache.ndk has been removed.
Thanks.
-Devin.
Posted by Devin Olson At 09:57:22 AM On 08/02/2007 | - Website - |
Posted by Dwight Wilbanks At 02:06:21 AM On 08/03/2007 | - Website - |