Question Details

No question body available.

Tags

java griddb

Answers (1)

Accepted Answer Available
Accepted Answer
March 26, 2026 Score: 1 Rep: 64 Quality: High Completeness: 80%

I ran into the same error while testing GridDB, and in my case it was caused by duplicate row keys.

The exception:

[145023:JCILLEGALPARAMETER] Row key already exists

usually means that a row with the same key is already in the container.

In your loop, the logic itself is fine, but the problem can happen if you run the program more than once. For example, on the first run it inserts IDs 1–5, but on the next run it tries to insert the same IDs again, which causes the duplicate key error.

I initially thought put() would just overwrite the existing row, but that doesn’t always happen depending on how the container is configured.

What worked for me was either:

  • clearing the container before running the loop again, or

  • making sure I’m using new/unique IDs each time

For quick testing, I just removed existing rows or recreated the container, and the loop worked without issues.

So the issue isn’t really the loop, but that the same keys are being inserted again.