How to read/get SQL Query Output which is NUMBER
This is my Query which returns the result in Infotable.
SELECT COUNT(*) AS TotalCount
FROM dbo.ML1QualityDataTable
WHERE lineName = [[lineName]]
AND CAST(qualityCheckTimestamp AS DATE) = CAST(GETDATE() AS DATE);
Result of Query:

Now here is my service which executes the above service and get the result but here i am unable to get the result as an output. How to read this output of query from the JS service. Mydatashape contains only one field named TotalCount of infotable type.
let mergedInfotable = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape({
infoTableName: "InfoTable",
dataShapeName: "V2.TotalCount.DS"
});
let ab = Things['V2.MYSQLDatabaseController'].SQLQuery_GetTodaysEntriesCount({
lineName:'ML1'
});
let a= mergedInfotable.AddRow(ab.rows[0]);
let result=a;
logger.info(ab.rows[0]);
i get this error:-
Error executing service ComputeKey. Message :: Unable To Convert To Value Collection: Conversion Error on Field TotalCount : Unable To Convert From java.lang.Integer to INFOTABLE - See Script Error Log for more details.

