Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
There’s an issue if you create a label and delete it as you might not be able to reuse the same external_id ever again. Even if you first delete the asset or relationship that the label is conected to first and then delete the label, you end up with a ghost label. With some random exceptions(say in 1 of 15 cases it’s not an issue). It feels like a cache issue, but as we’ve seen over the last half a year or so, the issue seems to persists over several months.For this example I’m using an empty dataset, I’ve created a label, tied it to an asset, deleted the asset and then deleted the label. The external id I’ve used for my label are now locked forever. I then try to create the label, if not found: Resulting in an error This is a bug across the C# and the Python SDK.
We’re in development of an API retrieving the latest values from timeseries from CDF using the C# SDK. Initially we set the code to look 200 days back (‘200d-ago’). Now, this stopped working all of a sudden this week. My first reaction was to go event further back (‘365d-ago’), but what works is using an even shorter timespan (‘30d-ago’).So question is - are we limited by a quota or have there been changes limiting this functionality lately?
When creating Labels, the “external_id” and “name” fields are switched. I’ve previously reported this for C#. It turns out the error is also found in the Python SDK:Repro stepsReplicating the bug is trivial. Consider the following code in Python:label = LabelDefinition(external_id=”label_x”, name=”x”, data_set_id=DATASET_ID)client.labels.create(label)Use the label on an asset, and CDF will display “label_x” as the label name. The two fields are somehow swithced.Persistance or display issue?Ok, so is CDF just displaying the wrong field? It’s hard to tell due to other issues around labels, but consider this: As a fix, I chose to align the “external_id” and “name“ fields, landing on the something like this.:label = LabelDefinition(external_id=”x”, name=”x”, data_set_id=DATASET_ID)client.labels.create(label)Resulting in an errorCogniteDuplicatedError: Duplicated: [{'externalId': 'x'}]The API Failed to process some items.
Already have an account? Login
Enter your 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.