### Instruction:

Extract the cause and effect entities from the following sentence:
The system shall generate error messages when the user attempts to enter invalid data

### Assistant:

VARIABLE: the user
CONDITION: attempts to enter invalid data
KEYWORD: when
CAUSE_1: the user attempts to enter invalid data
EFFECT_1: The system shall generate error messages

