You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Source iModel changes, after first transformation, includes deleted DisplayStyle3D element and added DisplayStyle3D element with the same properties as the first one.
onExportElement function remaps target DisplayStyle3D element. So now it points to newly added DisplayStyle3D (Id: 2 in source iModel).
When transformer reaches point where it deletes elements it deletes DisplayStyle3D element in target.
Then transformer calls finalizeTransformation and tries to update DisplayStyle3D element in target, because it has pending references (excludedElements in jsonProperties). It fails to update that element because it is deleted in target element
To Reproduce
Create empty iModel. Add DisplayStyle3d element that has excludedElements in jsonProperties.
Run transformation
Delete DisplayStyle3d element and add new DisplayStyle3d element with the same properties as first one (I think same code should be enough) in source iModel
Run transformation to trigger processChanges
Transformer crashes with 'error updating element: missing id'
Expected behavior
It shouldn't crash
Maybe transformer should create new element (with different id and federationGuid) instead of remapping that element
Desktop (please complete the applicable information):
OS: Windows
@itwin/imodel-transformer 0.1.2
iTwin.js Version 3.6.1
The text was updated successfully, but these errors were encountered:
Describe the bug
Source iModel changes, after first transformation, includes deleted DisplayStyle3D element and added DisplayStyle3D element with the same properties as the first one.
onExportElement function remaps target DisplayStyle3D element. So now it points to newly added DisplayStyle3D (Id: 2 in source iModel).
When transformer reaches point where it deletes elements it deletes DisplayStyle3D element in target.
Then transformer calls finalizeTransformation and tries to update DisplayStyle3D element in target, because it has pending references (excludedElements in jsonProperties). It fails to update that element because it is deleted in target element
To Reproduce
Expected behavior
Desktop (please complete the applicable information):
OS: Windows
@itwin/imodel-transformer 0.1.2
iTwin.js Version 3.6.1
The text was updated successfully, but these errors were encountered: