Forum Discussion

3 Replies

  • Curtis Ho's avatar
    Curtis Ho
    Copper Contributor

    it works when I put the device name instead of GUID() 

     

    But in the next setup when I copy and paste the JSON Code, it trigger below errors

     

    • Marc Mercuri's avatar
      Marc Mercuri
      Icon for Microsoft rankMicrosoft

      For the IoT sample, you need to update the database first. Specifically, modify the ExternalID in the database for the User you set up for the device, changing the ExternalID value to the identifier sent from IoT Hub for the device.

       

      You then put this in the stored procedure and you should see the values that you would expect.

    • Curtis Ho's avatar
      Curtis Ho
      Copper Contributor

      Here is the Error Message
      {
      "message": "Invalid type. Expected Object but got Array.",
      "lineNumber": 0,
      "linePosition": 0,
      "path": "",
      "schemaId": "#",
      "errorType": "type",
      "childErrors": []
      }
      ]

Resources