Description
Creating a relationship class that is Object ID based is not supported for branch versioning.
Solution
Add Global IDs to your data and use the Global ID field as the primary key. Alternatively, run the Migrate Relationship Class tool on the Object ID-based relationship class before using the data in a branch versioning environment.