We could get the above error while trying to set value for a field using XPathNavigator. The reason could be that the field has the nil attribute set
Most of the fields with the exception of String Type uses nil to indicate “no value”.
So before we could set the value for those fields, we need to remove the nil attribute from it.
We could use the below code for that.
XPathNavigator node= MainDataSource.CreateNavigator()