To avoid such problems, you must follow one of the following rules for using sequences with shared and group-configured tables:
The best practice while working with group or shared tables is to always use a shared sequence to generate any field values to be used as a foreign key.
For more information on managing sequences and multi-tenant tables with groups, see
Managing access to tables with groups.