tracardi icon indicating copy to clipboard operation
tracardi copied to clipboard

Duplicated profile records (with same profile id) are created into the different month index

Open edmundchlee opened this issue 3 years ago • 3 comments

I have a problem updating the existing profile by the event. There is a profile in 071.638ee.tracardi-profile-2022-7 index already (created on July-2022) , but when i imported a new event with assign profile_id to the event without process flow applied, there is a new profile record with the same profile_id but is created on the 071.638ee.tracardi-profile-2022-8. then i can see two profile records with the same profile_id in the tracardi dashboard. the lower one is the new record on the 071.638ee.tracardi-profile-2022-8 index (elasticsearch). there is the event json i send to the track api

there is the payload of the event.

source=Entity(id='a589fe6f-76f5-4f69-9f1e-7fe0a9835bab') session=Entity(id='bf994e16-2969-4904-bf2e-bd47394bd355') metadata=EventPayloadMetadata(time=Time(insert=datetime.datetime(2022, 8, 8, 7, 12, 59, 412320)), ip=None, status=None) profile=Entity(id='1660e66b-ba4b-4a2f-9191-7970038cd507') context={} properties={} events=[EventPayload(type='import-seminar', properties={'email': '[email protected]', 'first_name': 'CHAN', 'last_name': 'SK', 'mobile': 92327164, 'seminar_name': '20200730_xxxxx, 'seminar_date': '2020-07-30 00:00:00', 'is_attended': True}, options={})] options=PayloadOptions(profile=True)

edmundchlee avatar Aug 08 '22 07:08 edmundchlee

Hello. Thank you for contributing to Tracardi. Someone will read you issue report shortly. If you happen to have development questions please join our slack comminity: https://join.slack.com/t/tracardi/shared_invite/zt-1bpf35skl-8Fr5FX5a6cji7tX18JNNDA

github-actions[bot] avatar Aug 08 '22 07:08 github-actions[bot]

I have used redis server on the tracardi api server Redis is connected. Click the button to recheck the connection.

edmundchlee avatar Aug 08 '22 07:08 edmundchlee

The issue may be caused by the cross-month index, as the exist profile has been created on July-22, and then i need to update the profile by an event on Aug-22.

edmundchlee avatar Aug 08 '22 09:08 edmundchlee