Skip to content

Getting DocumentAlreadyExistsException on initial conversion, no PK the cause? #5

@davidmichaelkarr

Description

@davidmichaelkarr

I've barely gotten started learning about Couchbase (very familiar with Oracle). I need to convert an Oracle DB to Couchbase, so this seems appropriate.

After I got all my jars and parameters set up, in addition to creating a user with the same name as the bucket (this tool was apparently written with 4.x in mind, and I'm using 5.x, which doesn't have passwords on buckets), when I finally got it running, I saw exceptions like the following:

SEVERE: Error processing row. key: xxxxxxxx
com.couchbase.client.java.error.DocumentAlreadyExistsException
	at com.couchbase.client.java.CouchbaseAsyncBucket$13.call(CouchbaseAsyncBucket.java:470)
	at com.couchbase.client.java.CouchbaseAsyncBucket$13.call(CouchbaseAsyncBucket.java:454)

Looking through the tool documentation, I see that it says it uses the PK of the table. Unfortunately, I have a situation where most of my tables don't have a PK defined. I have a feeling this error is because of that. What is a reasonable path forward to resolving this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions