Do you have any question about this error?
Message type: E = Error
Message class: ESH_OM_OBJ_MODEL_RP2 - Object Model Repository (2)
Message number: 704
Message text: Cardinality "&3" does not fit to foreign key definitions
Not all key fields of node &v2& of object type &v1& are specified in the
foreign key definition of the composition or at least one foreign key
definition has the join-operator =.
Thus maybe the cardinality "&v3&" may not make sense.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
In the modeler for search and analytics adjust the cardinality or the
foreign key definition.
When importing data adjust the target cardinality or the foreign key
definition.
Error message extract from SAP system. Copyright SAP SE.
ESH_OM_OBJ_MODEL_RP2704
- Cardinality "&3" does not fit to foreign key definitions ?The SAP error message ESH_OM_OBJ_MODEL_RP2704 indicates a problem with the cardinality of a relationship in the object model, specifically related to foreign key definitions. This error typically arises in the context of the SAP Enterprise Search or SAP HANA modeling, where the relationships between different entities (or tables) are defined.
Cause:
The error message suggests that there is a mismatch between the expected cardinality of a relationship and the actual cardinality defined in the foreign key constraints. Cardinality refers to the number of instances of one entity that can or must be associated with instances of another entity. The common cardinalities are:
If the cardinality defined in the object model does not match the foreign key definitions in the database schema, this error will be triggered.
To resolve this error, you can follow these steps:
Check Foreign Key Definitions: Review the foreign key constraints in the database tables involved. Ensure that they are correctly defined according to the intended relationships.
Review Object Model Configuration: Check the object model configuration in the SAP system. Ensure that the cardinality defined in the object model matches the foreign key definitions. You may need to adjust the cardinality settings in the object model.
Adjust Cardinality: If the foreign key definitions are correct, you may need to adjust the cardinality in the object model to align with the foreign key constraints. This may involve changing the relationship type from one-to-many to many-to-one, or vice versa.
Rebuild or Refresh the Model: After making changes, you may need to rebuild or refresh the object model to ensure that the changes take effect.
Test the Changes: After making the necessary adjustments, test the changes to ensure that the error no longer occurs and that the relationships function as expected.
By following these steps, you should be able to identify the cause of the error and implement a solution to resolve it.
Get instant SAP help. Start your 7-day free trial now.
ESH_OM_OBJ_MODEL_RP2703
Cardinality "&3" does not fit to foreign key definitions
What causes this issue? Not all key fields of node &v2& of object type &v1& are specified in the foreign key definition of the associ...
ESH_OM_OBJ_MODEL_RP2702
Cardinality "&3" does not fit to foreign key definitions
What causes this issue? Not all key fields of node &v2& of object type &v1& are specified in the foreign key definition of the associ...
ESH_OM_OBJ_MODEL_RP2705
Cardinality "&3" does not fit to foreign key definitions
What causes this issue? Not all key fields of node &v2& of object type &v1& are specified in the foreign key definition of the associ...
ESH_OM_OBJ_MODEL_RP2706
Semantic object type is not specified - No navigation possible
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.