In order to overcome this issue, please try to add the following line of code right after the modification of the data source.
DataSources.Get(“DATASOURCENAME”).Load();Furthermore, please let me know which version of Ranorex you are using.
I'm looking forward to your post.
Sincerely,
Matthias