3 Replies Latest reply on Jun 19, 2017 12:09 AM by Ankit Gupta RSS
    jmay Apprentice

    Invalid parameter type for service UpdatePropertyValues

    Hello,

    I am trying to implement the functionality from the following PTC article:

    https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS256872&art_lang=en&posno=7&q=add%20values%20to%20value%20stre…

     

    My code looks like this:

     

          var params = {

                infoTableName : "InfoTable",

                dataShapeName : "NamedVTQ"

            };

            var value = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);

            var prop = new Object();

            prop.name = "DailyPouchCount";

            prop.value = 29907;  //hardcoded for testing

            prop.time = endDate;      //DateTime object from input

            prop.quality = "GOOD";    

            value.AddRow(prop);

            me.UpdatePropertyValues(value);

     

    And I get the following error:

    Wrapped java.lang.Exception: Invalid parameter type for service : [UpdatePropertyValues] on <ThingName> Cause: Invalid parameter type for service : [UpdatePropertyValues] on <ThingName>


    Anyone have any idea why?


    Thank you.