Skip to main content
Feb 3, 2017 5:23 PM UTC
Question

Why i got this error: Unable To Convert From java.lang.String to INFOTABLE when i try to aggregate?

This is my code taken from here:  i want to apply aggregate on infotable  obviously with my own table fields.:

var result = Resources["InfoTableFunctions"].Aggregate({

    t: "InfoTable",

    columns: "Count",

   aggregates: "MAX",

  groupByColumns: "ID,Hour"

});

Why i got this error: "Unable To Convert From java.lang.String to INFOTABLE"?

Thanks

    2 replies

    Feb 3, 2017 5:39 PM UTC

    Have you set your output/result to infotable?

    Feb 3, 2017 8:56 PM UTC

    on t: parameter you have "infotable" instead of raw infotable variable name ( if your infotable variable name it's named infotable... )