Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
@Dilini Fernando - I see the UI getting populated with the instances now. Just noticed that it works since this afternoon.
@Dilini Fernando - Yes, I do.
@Dilini Fernando The primary issue was the sdk version. The version 7.5.1 didn’t have the method query() implemented. I guess it was included in the recent release (7.6) which i learnt from that pull request mentioned. Why I mentioned it didn’t work even after updating the sdk is kind of mystery, I suspect it could be a query formatting issue.
-- fixed--
Looks like recently this got fixed, from this PR- https://github.com/cognitedata/cognite-sdk-python/pull/1548. I have updated my SDK to the latest but still no go with fetching the data from the data model. my query looks like this query MyQuery { listCapacity { items { plant { latitude longitude name plantLocation { name } } timeSeries { dataPoints(start: 1698793200000) { value timestamp } unit metadata } } }}Using the query as such returns the below result.{'listCapacity': {'items': []}}If i use the query like how it is mentioned in the sdk docs by trimming the initial part of the query `query MyQuery {`I get the below error cognite.client.exceptions.CogniteGraphQLError: [GraphQLErrorSpec(message=Invalid syntax with offending token 'listCapacity' at line 1 column 1, locations=[{'line': 1, 'column': 1}], extensions={'classification': 'InvalidSyntax'})]
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.