Invalid data source type for RecordRefresh operation (Error 2168)

The data source type (XML, for example) specified with the DataSourceType property is invalid for the refresh operation.