We have multiple virtual entities connected to SQL Server tables via the SQL Server Connector, and we have been successfully updating records for a number of months.
Following a recent solution update from Microsoft to the Microsoft.Xrm.DataProvider.Connector.Plugin, we can't update a record if we reference a boolean field in the JSON (using Xrm.WebApi.updateRecord from javascript) - the MS plugin throws an error:
"Object of type 'System.String' cannot be converted to type 'System.Nullable`1[System.Boolean]'"
If we update without the boolean field, it works correctly.
Sample code:
var record = {};
var newRecordId = "<GUID HERE>";
record.exampleBoolean = true;
record.exampleText = "Test Text";
var updateResult = await Xrm.WebApi.updateRecord("new_virtualentity", newRecordId, record);
Anybody else experiencing this or know of a workaround? (Ticket has been raised with MS)