Message Text
Database has duplicate foreign replica databases: variable1
Cause
Local master database might have already been attached to the foreign replica database that you are trying to attach to.
Response
Remove database replication configuration on both master and replica.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.