Fix OPAL-2181: ORecordDuplicatedException when creating a view