Error 21043

Message

Possible error messages:

Without Resource Bundle (default)
  • Multiple keys are not supported for hasLogRecords: {ENTITY_NAME}
With Resource Bundle
  • Multiple keys are not supported for hasLogRecords: {ENTITY_NAME}
Domain Persistence.PersistenceException
Number 21043
Label MULTIPLE_KEYS_NOT_SUPPORTED
Applicable Platform(s) iOS, Android, BlackBerry, Windows Mobile

Cause

Log records for entities with composite keys are not supported (??verify this is correct). MBOs should have either a surrogate key or a SYNCKEY.

Action

Do not use select ${entityAlias}.hasLogRecords for local entities in query object. Mobile entities can only have one primary key, either surrogate key or SYNCKEY. Local entities can have a single primary key or a composite primary key.