Add Device to User

Tobias6 years ago

Hey all
I would add an device to an other users . But i get the same Error

 Unique index or primary key violation: "CONSTRAINT_INDEX_A ON PUBLIC.TC_DEVICES(UNIQUEID) VALUES ('864xxxxxxxxxx', 5)"; SQL statement:
INSERT INTO tc_devices (model, category, name, uniqueId, attributes, groupId, contact, disabled, lastUpdate, phone) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23505-197] - JdbcSQLException (... < QueryBuilder:480 < DataManager:458 < BaseObjectManager:90 < ...)
Anton Tananaev6 years ago

You can't register second device with same unique id. You need to share same device. Use search if you don't know how to do it.

Tobias6 years ago

Tank you!