Missing event key property
During the creation of an Event Strategy rule, the following error is displayed: Invalid event key. Please choose from available properties.
Cause
The event strategy is created in the class that contains inherited properties only or that does not contain any properties.
![The Subscription ID property is referenced as the event key in an event strategy.](https://docs-previous.pega.com/sites/default/files/drupal/dita/out/4436/platform-helpsystem/dsm/images/event-strategy-event-key.png)
You can choose the event key only from the properties of the event strategy class, without the inherited properties. Therefore, each time you create a class for event strategies, you must create at least one property in that class to eliminate this error. Perform the following steps to create a property that you can select as the event key for your event strategy class.
Solution
- In the navigation pane of Dev Studio, click Records.
- Expand the Data Model category, and then click Property.
- Click Create.
- Specify the label, identifier, and the context of the property rule.
- Click Create and open.
- Configure the Property form to define the format and type of data that is stored in the property.
- Click Save.
Previous topic Incorrect order of events Next topic No decision data store nodes defined