Question

MixPanel Distinct ID cannot be modified

  • 3 June 2024
  • 1 reply
  • 41 views

Badge

Setting the mixpanelDistinctId for the first time works fine, but when trying to set it again, an error occurs, indicating that the "MixPanel Distinct ID cannot be modified."

However, after clearing the mixpanelDistinctId and then setting it again, it works fine.

I'm not sure where the problem is.

 

[Purchases] - DEBUG: ℹ️ Found 1 unsynced attributes for App User ID: $RCAnonymousID:xxx
[Purchases] - DEBUG: ℹ️ Unsynced attributes: ["$mixpanelDistinctId": [SubscriberAttribute] key: $mixpanelDistinctId value: xxx setTime: 2024-06-03 03:38:51 +0000]
[Purchases] - ERROR: 😿‼️ Error when syncing subscriber attributes. Details: The operation couldn’t be completed. (RevenueCat.BackendError error 0.)
UserInfo: [:]
[Purchases] - ERROR: 😿‼️ One or more of the attributes sent could not be saved. ["$mixpanelDistinctId": "MixPanel Distinct ID cannot be modified."]

 


This post has been closed for comments

1 reply

Userlevel 4
Badge +6

Hey @DongDong945,

This sounds expected -  device identifier attributes are not able to be directly modified after they are set. This is to ensure that events generated by a particular device have a consistent identifier that is unaffected by uninstalls or reinstalls of your app. If you do need to re-set it for any reason, you can clear it and set it again as you have been doing.