ERROR - IndexNumerator().AdjustInRangeByObject

StatusIDPriorityType
Open39713CriticalBug
ProfileReply
GabrieleClient

After updating to version 20.1.4
This code throws an error if the class derives from BaseObject

private void SwitchIndices(IIndexNumberSupport currentObject, IIndexNumberSupport targetObject)
{
if (currentObject == null || targetObject == null)
return;

int oldIndex = currentObject.IndexNumber;
int newIndex = targetObject.IndexNumber;

ObjectSpace.Xafari().IndexNumerator().AdjustInRangeByObject((IIndexNumberSupport)currentObject, oldIndex, newIndex);
ObjectSpace.Xafari().IndexNumerator().AdjustInRangeByObject((IIndexNumberSupport)targetObject, newIndex, oldIndex);
}
ERROR:

System.InvalidCastException: Cast from 'System.String' to 'System.Guid' is invalid.

Replies

UserDescriptionPosted On
MariyaVoytovichAgent

Hello!

Which version of Xafari are you currently using?

Regards,
Mariya
On behalf of Xafari Client Services Team

Gabriele

Xafari.Framework-20.2.3011.2258

Regards,
Gabriele

MariyaVoytovichAgent

Hello!

Thanks for reporting the issue.

Regarding the error that you reported I can say that all information submitted to our development team.
Also a relevant issue [102.224696] registered in our issue tracking system.
You may reference to this number later to find out its state.

Feel free to contact us if you have any questions.

Regards,
Mariya
On behalf of Xafari Client Services Team

Write US