Add Device to User

Tobias 7 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 Tananaev 7 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.

Tobias 7 years ago

Tank you!