AddStreamEntries error
Hi all,
Getting error while executing AddStreamEntries service:
JavaException: java.lang.Exception: Invalid number of values provided to AddStreamEntry
let newEntry = {
sourceType: undefined, // STRING
values: entries, // INFOTABLE
location: undefined, // LOCATION
source: undefined, // STRING
tags: undefined, // TAGS
timestamp: new Date() // DATETIME
};
// CreateInfoTableFromDataShape(infoTableName:STRING("InfoTable"), dataShapeName:STRING):INFOTABLE(StreamEntryWithValues)
let obj = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape({
infoTableName: "InfoTable",
dataShapeName: "StreamEntryWithValues"
});
obj.AddRow(newEntry);
me.AddStreamEntries({
values: obj /* INFOTABLE {"dataShape":"StreamEntryWithValues"} */
});
Thanks,
Sujith


