1# Distributed Data Object Changelog 2 3## c1.data_object.1 setSessionId Behavior Change 4 5**Access Level** 6 7Public API 8 9**Reason for Change** 10 11The change is made to solve invalid data synchronization. 12 13**Change Impact** 14 15This change is a non-compatible change. In cross-device migration, after **setSessionId** is called for the distributed data object of the source device, data will not be automatically synchronized to the target device. 16 17**Start API Level** 18 199 20 21**Change Since** 22 23OpenHarmony SDK 5.0.0.21 24 25**Key API/Component Changes** 26 27setSessionId/**data_object** 28 29**Adaptation Guide** 30 31In cross-device migration development, after **setSessionId()** is called for a distributed data object on the source device, call **save()** to save data to the target device. 32 33```ts 34let dataObject = distributedDataObject.create(context, source); 35dataObject.setSessionId(sessionId); 36dataObject.save (wantParam.targetDevice as string); // Call save() to save data to the target device. 37``` 38 39For details, see [Using Distributed Data Objects in Cross-Device Migration](../../../application-dev/database/data-sync-of-distributed-data-object.md#using-distributed-data-objects-in-cross-device-migration). 40