After update from 5.5.0 to 5.7.0. We have error: XML parsing: line 126, character 12, unexpected end of input, source: Core .Net SqlClient Data Provider, data: , stackTrace: at ServiceStack.OrmLite.OrmLiteExecFilter.<>c__DisplayClass6_01.<Exec>b__0(Task1 t) in C:\BuildAgent\work\27e4cc16641be8c0\src\ServiceStack.OrmLite\OrmLiteExecFilter.cs:line 121
Here is our code:
public async Task UpdateBatch(XElement data)
{
var result = await Db.SqlScalarAsync(“EXEC Pr_Update_Inventory_Tracking @xmlData”, new { xmlData = data.ToString() });
return result == 1;
}
It’s normal xml string, you can preview it in this link: https://pastebin.com/Hg3sp5Dr
Please note that with this data, in v5.5.0, we don’t get error. Our storeprocedure have a xml parameter like that: PROCEDURE [dbo].[Pr_Update_Inventory_Tracking] @xmlData XML = NULL