Azure Function App Erro

Jayashri Goddanti 45 Reputation points
2024-04-29T15:01:13.56+00:00

Hi Everyone,

I am currently working as a newcomer in the realm of Azure Digital Twins. I am reaching out to seek your expertise on a particular issue I've encountered. In my current project, I am utilizing TwinCAT3 to establish connectivity with Azure IoT Hub, employing MQTT and JSON functionalities. I am pleased to say that I have successfully managed to transmit data into the Azure IoT Hub. However, I have encountered a challenge in the subsequent step of my process. I have developed a function app with the intention of facilitating the transfer of data from the IoT Hub to Azure Digital Twins. Regrettably, I have encountered an error message stating: 'Error in ingest function: Cannot access child value on Newtonsoft.Json.Linq.JValue.' as shown in the image. Kindly help me with this. I have already contacted Azure regarding this but they say that it needs to be in the form of JSON for this message to go and I also checked from the twincat side that it is JSON. Not sure where I am going wrong. I am using the C# function app sdk for this. Thanks.Picture11

t11

Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
231 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,088 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,200 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sander van de Velde | MVP 32,891 Reputation points MVP
    2024-04-29T15:16:31.81+00:00

    Hello @Jayashri Goddanti ,

    welcome to this moderated Azure community forum.

    The body you get in the Azure Function is a BASE64 version of that JSON string seen in the IoT Explorer preview.

    Please decode the body BASE64 string to JSON using the programming language (like C#) you use (every language has libraries for BASE64).

    You can check this decoding with websites like this.


    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.

    1 person found this answer helpful.

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.