When defining both data-model time-series nodes and DatapointSubscriptions on those nodes, cdf publish fails, because the data being subscribed to does not yet exist in CDF.
This means we have to first push the .node.yaml files, allow the CI/CD pipeline to run, and then push the subscriptions. This does not work however because the moment both changes exist in dev at the same time, and we move it over to the next branch, the project won’t deploy.
Does the toolkit somehow support defining data-model time-series and subscriptions on those time-series on the same deployment, or can it be implemented that nodes are published before subscriptions are made?
╭─ Deploy summary (dry run) ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ │
│ Resource Would create Would update Would delete Unchanged Skipped Total Able to deploy │
│ ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│ timeseries subscriptions 1 0 0 0 0 1 Yes │
│ data sets 0 0 0 1 0 1 Yes │
│ nodes 10 0 0 0 0 10 Yes │
│ functions 1 0 1 0 0 2 Yes │
│ function schedules 0 0 0 1 0 1 Yes │
│ │
│ All 12 0 1 2 0 15 Yes │
│ │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
cdf deploy
╭─ Setting up deploy operation ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Target project: 'abp-greenfield-sandbox' │
│ Toolkit version: 0.8.89 │
│ Build path: build/ │
│ │
│ Processed build directory: │
│ ✓ 4 resource directories │
│ ✓ 14 resource files │
│ │
│ Plan: │
│ ✓ 5 resource types to deploy │
│ ✓ 14 resource files to deploy │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Deploying timeseries subscriptions to CDF ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% -:--:--
ERROR (ResourceCreationError): Failed to create timeseries subscriptions due to API error: Request failed with status code 400: Time series not found.
The request body and response has been written to deploy_logs_2026-06-04/2026-06-04T12_52_39.366690+00_00.json for debugging purposes.
Check the
documentation
Ask the
Community
Take a look
at
Academy
Cognite
Status
Page
Contact
Cognite Support
