GOJS SetKeyForNodeData

i have set nodeKeyProperty = ‘id’ of diagram model. when i drag and drop data into diagram model , id is automatically assigned with some unique value . in External objects dropped event , i am setting id after getting it from server . and i called this.myDiagram.model.setDataProperty(block.data,“id”,value.id); this.myDiagram.model.setKeyForNodeData(block.data,value.id);

the dropped node gets deleted. Why?

Off hand, I don’t know. But you should not be calling Model.setDataProperty. Just call Model.setKeyForNodeData.