Hello,
I am using the event activation API (POST /events), after creating it I try to activate the event and I get a 400 bad request error that the event does not exist, even though I received a response that the event was created successfully.
If I wait a few minutes between creating the event and activating the event everything is fine and works great,
Is there a time frame that the event needs to be recorded in your system before I can use it?
I would appreciate the explanation,
Thank you
Hi Natanel,
I would assume that you are creating and activating User defined event or Analytics event. It usually takes between 30 seconds and one minute in order to be able to use them after the creation of the event type.
There is a built-in event type called SystemConfigurationChanged. Some time after you create your event type (UDE for example), event of SystemConfigurationChanged type is fired. 5-6 seconds after it, you are safe to trigger (activate) your previously created UDE.
So instead of waiting for a minute, you could wait for SystemConfigurationChanged and then 6 seconds and you are ready to go. However, if many configuration changes happen one after another, this could not be the exact case. Because of some denouncing logic. So 1 minute rule is much more simple and robust to use.