Error updating device Twin

Sam Gomez 20 Reputation points
2023-11-21T16:06:25.2966667+00:00

I am trying to update the desired properties of an IotHub device twin and I am getting the following error: Property or Tag name should be maximum 1024 bytes. Neither the property of the tag name are bigger than 1024 bytes, I have tried updating the property via SDK and the Azure portal and got the same error. I have another device that I am updating without any issue and the only difference is that the device that is failing was created recently. Is there something else I should be checking?

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,235 questions
{count} votes

Accepted answer
  1. Sander van de Velde | MVP 34,686 Reputation points MVP
    2023-11-21T22:18:56.2566667+00:00

    Hello Sam,

    welcome to this moderated Azure community forum.

    This error is a strange one.

    I was able to replicate the error message in the Azure portal.

    The workaround seems to be to limit the property name length to 64 characters like:

    AIOC-NAE13ProgrammingAHU-2-Zone-Dat-ResetAmerescoDATAmeresco_DAT
    

    Then the body is accepted.

    I have contacted someone I know from the team.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.