Skip to main content

I am using CogniteSdk c# to query data model from CDF.

 

When I tried to execute it, it did not return row items. Instead it just returned below result:

What is the correct way to use the DataModel in C# CogniteSdk to return rows of data as per below?

 

The C# SDK is just a wrapper around the API. You will have to process the returned instances into the output shape you want yourself.


Hi Einar,

The problem is the data is not returning and it showing null as per below example. How can i make sure it does return the data and not returning null?

 


It’s hard to say for sure. It may be a naming issue, you can see what the method returns if you parametrize it with something like `JsonElement` instead of `WellResponse`.


Hi Einar,

Thanks for the tip. After replace with JsonElement, seems like there a few layer of parent before can reach the actual parameters as below. Thanks for the help.

 

 


Reply