I have an agent which uses db.OpenByReplicaID within a loop to open another database and transfer a file to a document in the newly-opened database. Approximately 50% of the time the OpenByReplicaID fails even though the Replica ID is correct and and the same code has worked for a previous documents in the loop which were being transferred to the same target database.
When I run the agent under the debugger I get the same intermittent results. I run the agent once and the OPenByReplicaID fails and then I run it a second time against the same document ( and therefore the same replica ID ) and it works. Each time I verified the replica ID field was correct before executing the OpenByReplicaID method.
The original database is on a 7.0.1 server whereas the target database which the agent has problems opening is still on a 6.5 server.
A possible cause for this intermittent failure is that the target database I am trying to open is quite large - approx 150,000 documents and 8 gigabytes.
Has anyone out there worked with a database of this size (or larger) and seen this type of problem?
Any other suggestions as to the probable cause?
Thanks
Trevor