Join the conversations to shape a safer, more efficient, and sustainable industrial future!
Recently active
After updating the event(insight) it is getting updated in the cdf portal.Passing filter to “cdf_beta_api = "https://api.cognitedata.com/api/v1/projects/{CDF-PROJECT-NAME{/events/list"” when we try to list event based on filter all of the sudden, we are getting the older data in response.When it is called again we get the updated data in response python code snippet In line 34 we are getting updated role but in line 49 we are getting older role,when it is called again we get updated response
I was checking if i can use the query endpoint (https://api-docs.cognite.com/20230101/tag/Instances/operation/queryContent/) to query data in view using filters on a native timeseries property of that view. in both query explorer as well as data management i observed as such there was no filters supported for native timeseries type property hence wanted to confirm
Is it possible to trigger an email for a set of dynamically provided email IDs from a Cognite function? Since I don’t have a static list, I can’t integrate the Cognite function with the Extraction pipeline to use its notifications. I couldn’t find any documentation on this.If not, can we integrate a third-party library for sending emails inside a Cognite function?
Hi Hub, The recent weeks we have noticed an inconsistent authentication error with our deployed Cognite Functions. Seemingly, with no apparent reason, a function call fails with a https authentication error when trying to log into microsoft (see call log below). requests.exceptions.ConnectionError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /3b7e4170-8348-4aa4-bfae-06a3e1867469/oauth2/v2.0/token (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f8dee0070d0>: Failed to resolve 'login.microsoftonline.com' ([Errno -3] Temporary failure in name resolution)"))The error is attributed to our first client call in our code, for events in client.events()where we loop over chunks of events. Have anyone experienced something similar, and know the cause of the error? Thanks in advance.,Vetle.
first of all i created a new environment with below codes.python -m venv envenv\scripts\activatepip install poetry poetry config virtualenvs.in-project truepip install pandas numpypip install cognite-sdkpip install "cognite-sdk[pandas, geo]"pip install cognite-extractor-manageronce all above code completed. I started running cogex init.I am getting below error.cogex initEnter extractor name: csv extractorEnter description: descEnter author: --I provided the cognite login mail id in name <mail id>Which template should be loaded? simple: loads a generic template suitable for most source systems, using a simple function as the main entrypoint for the extractor. Most suitable for small and simple extractors. class: loads a generic template suitable for most source systems, using a run method on a class as the main entrypoint for the extractor. Most suitable for slightly bigger and more complicated extractors. rest: loads a template for extrac
Just wondering how I can access the File Annotations using the SQL statement (transformation) alike the Cognite Python SDK method: client.annotations.list(annotation_filter, limit=-1).
When we deploy Data Model using GraphQL then we can put some comments like documentation giving relevant info. This is helpful for people who look into Data Model’s graphql in web application. However, when we deploy using toolkit via yaml files the generated Data Model’s GraphQL do not have comments. Though we can add comment by editing in UI but that has to be done manually. Is there any way to have documentation in generated Data Model’s GraphQL when we deploy yaml files using toolkit?
I usesthe scripts below with replacing the my_sdk with my generated sdk, which was generated by Pygen, and show me this error “ my client object has no attribute 'config' ”. My scipts are my_sdk.config import global_config; global_config.validate_retrieve = Falseand my_sdk.config.global_config.validate_retrieve = FalseAny guidance?
I am trying to deploy data model using CDF toolkit in my azure devops pipeline. So I checked the following page: https://docs.cognite.com/cdf/deploy/cdf_toolkit/guides/cicd/ado_setup However, I see this message in top which says that its still in alpha stage. We need this deployment to be done in our prod environments so what is current recommended approach. Also let me know when this feature is expected to be available.
I was trying to use cognite hosted extractor api for creating kafka connection using scram512 authentication type, but it seems to be failing to connect with below error Could not connect to broker(s): Kafka error, Could not connect to broker: Connection error: all retries failed: Retry exceeded deadline. Source: Sasl handshake failed: API error: UnsupportedSaslMechanism
Hello Team,I looking for supported list of data type which we can insert in raw table.
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?
Hi,The user is listed as UNKNOWN when the annotation is done manually from “Data explorer”. This is problematic as we need to be able to track who made the changes.Here is an annotation I added manually:And this is what I see from the API. I am able to identify the creating_app which is data explorer, but I need to know the user as well or at least some way to track which credentials made the change. UNKNOWN is not good enough.I’ve also notices that for our automated annotations this field does not work as expected. These are all made by the same user/credentials, but for some reason the are all different and it looks like the “creating_user” field is mapped to the “job_id” you get when sending a request to the API rather than the user that made the request. I don’t know about others, but we at least need to be able to track which users/credentials created the annotations, which batch job uploaded the annotation is not relevant to us at all.job.7445037198441218job.5162020989972303job.5
I created a small configuration using “cdf modules init for the cdf_process_industry_extension_full” data model and tried to deploy. No changes to the configuration at this point have been made. I do intend to extend the data model.Deploying results with the following error:Deploying 1 spaces to CDF...Deploying 36 containers to CDF...Deploying 36 views to CDF...WARNING [LOW]: Resource(s) already exist(s), skipping creation. ← Note they shouldn’t aready exist???Deploying 1 data models to CDF... ERROR (ResourceCreationError): Failed to create resource(s). Error: One or more views do not exist: 'Gemini_sp_enterprise_process_industry_full:WorleySB360ImageAnnotation/v1','Gemini_sp_enterprise_process_industry_full:WorleySBAnnotation/v1', ← All three related to Annotation??'Gemini_sp_enterprise_process_industry_full:WorleySBDiagramAnnotation/v1'. | code: 400 | X-Request-ID: 536ccf9d-05cb-932c-b032-2fc57fd77a4f | cluster: az-eastus-1The API Failed to process some items.Successful (2xx):
I'm trying to run the Cognite DB Extractor via CMD window (as administrator, as local user...) but I get always this error (see log):requests.exceptions.SSLError: HTTPSConnectionPool(host='datamosaix-prod.us.auth0.com', port=443): Max retries exceeded with url: /oauth/token (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')))[1288] Failed to execute script '__main__' due to unhandled exception!I think this is because a proxy server is being used to access the internet from this VM. However, I'm using the same VM as the PI extractor and that is running fine (I had to do some settings in the PiExtractor.exe.config file in the bin folder of PI extractor as documented)I have set the following windows environment variables (This worked on the OPC UA extractor VM):HTTP_PROXYHTTPS_PROXYALL_PROXYI have installed root CA certificate of Proxy (ZSCALER) for local user account, for comp
HiI am developing a data model that will contain a single view with many properties (approx. 150). The number of properties will probably also increase over time. To model this, I have tried splitting the data in two containers and mapping the properties in the view to both containers. However, now that I am testing it I am experiencing performance issues. I have now tested the model with 3 million instances and all queries time out.I am therefore wondering if there are any recommended/tested approaches for dealing with wide tables in data modeling that will make it more efficient.The data model mostly contains normal properties (string, float, int) and 4 direct relation properties. I have created three indexes on one of the containers on properties that I need to filter on in queries.In addition, the view implements the CogniteDescribable and CogniteSourceable concepts from the core model.Thank you!
We are working on making our contextualization efforts more efficient. One of our key initiatives is to extract all tags from P&IDs to build a clean dataset that we can then match against asset hierarchies, helping us identify gaps on both sides. Additionally, we aim to minimize the need to revisit P&IDs whenever new patterns emerge that don’t align with the current contextualization process.For our initial approach, we tested extracting all tags from P&IDs to create a comprehensive list. We are aware that Cognite provides an API feature to extract tags based on predefined entity patterns. However, we are looking for a solution that allows us to extract all tags—without requiring predefined patterns.We have tested multimodal LLMs for this purpose, and they have shown promising results. Our questions are:Does Cognite offer any built-in functionality that supports extracting all tags from P&IDs without predefined patterns? If not, is there a cost-efficient approach to ach
The question came up around succession planning.So, if we have a user that has created a lot of Charts or Canvas’s what happens to those when that user is longer a part of the Cognite project/our company? The answer that we got from our Cognite project team is that these are orphaned. Do we have a way to re-assign them to another user? I am just looking to see if we have a better way to handle this process so that we don’t lose any of the work that has been put into the Canvas or the Charts.
I want to upload instances using CDF Toolkit. For example, data model I can get dump yaml from existing data model using toolkit like following:cdf dump datamodelI want to get the dump yaml of instances from my existing space and data model which I can use it to later deploy using toolkit to different space or env. I checked the doc here: https://docs.cognite.com/cdf/deploy/cdf_toolkit/references/resource_library#nodesBut creating yaml file manually would be too hard. I have also tried to get dump yaml using python sdk but that dump yaml looks incomplete to be used for deployment.
I figured out how to add a slider to my Chart, but how do I move or delete it?
In order to identify a 3D model and revision both a model ID and revision ID are needed (e.g. for display in Reveal). Looking at the Core Data Model, I can see the revision ID is available in CogniteCADRevision, but I don’t see where the model ID is present (was expecting it in CogniteCADModel).
We wanted to use view filter to implement a new view in a datamodel with a subset of data. we wanted to filter on a property with external id “WELL” we tried this in a few models, and we get only 70 instances, but when we try to query instances with same filter in transformations sql query, graphql query or rest api endpoint for filtering instances we get 71.even in data modeling ui, when same filter is applied on original model, it shows 71 instances but one fo them shows up as empty UPDATE:the one that was missing in data model UI is because that well instance doesn’t exist in that space (only 70 wella in that right space). but when we query the same data model instances from rest api , it gives that well from different space as well (71 wells). it gives well instance along with WELL type from other space which actually does not exist
I am trying to deploy a function to CDF using the deploy-functions-oidc repo in Github. It works perfectly fine for other functions, but for functions using the “requests” library i get the following error during pre-commit: “Library stubs not installed for requests. Hint: “python3 -m pip install types-requests”. I have included both requests and types-requests in the requirement.txt file. Anyone experienced the same issue?
I want to use node JS express as my back server to get data from cognite refer to theirhttps://developer.cognite.com/sdks/js/for the backend:import { ConfidentialClientApplication } from "@azure/msal-node";import { CogniteClient } from "@cognite/sdk";async function quickstart() { const pca = new ConfidentialClientApplication({ auth: { clientId: 'YOUR CLIENT ID', clientSecret: 'YOUR CLIENT SECRET', authority: 'INSERT AUTHORITY HERE' } }); async function getToken() { var response = await pca.acquireTokenByClientCredential({ scopes: ['INSERT SCOPE HERE'], skipCache: true, }); return response.accessToken; } const client = new CogniteClient({ appId: 'Cognite SDK samples', baseUrl: 'YOUR BASE URL', project: 'YOUR CDF PROJECT NAME', getToken: getToken }); const assets = await client.assets.list(); console.log(assets);}quickstart();What is the authority and how can I find my authority?
Lets say I have 3 views called myAssetType & myAssetLocation & myAssetProduct. All the 3 views implement CogniteDescribable from CDM.The view myAssetProduct also has an additional property called asset. Next, we ingest data into all the 3 views as shown below.View - myAssetTypeexternalId name descriptionMotorId Motor A motorView - myAssetLocationexternalId name descriptionLocationId OfficeA Location of the officeView - myAssetProductexternalId name description assetProductId Water Water from motor MotorOnce the data is ingested as above, we should ideally only see specific data in these views, but the data shown in these views are as follows:View - myAssetTypeexternalId name descriptionMotorId Motor A motorLocationId OfficeA Location of the officeProductId Water Water from motorView - myAssetLocationexternalId name descriptionMotorId Motor A motorLocationId OfficeA