Skip to main content

Breaking change on NodeId.load_if() in Python Cognite SDK v8

  • March 24, 2026
  • 1 reply
  • 16 views

I posted it in Github, but cross-posting here too.

https://github.com/cognitedata/cognite-sdk-python/issues/2525
 

System information (please complete the following information):

  • OS: Windows11
  • Python Version: 3.12
  • SDK Version: 8.

Describe the bug

This code previously worked:

NodeId.load_if(None)

But since v8, I am getting this error:

AttributeError: type object 'NodeId' has no attribute 'load_if'. Did you mean: '_load_if'?

To Reproduce
Runnable code reproducing the error.

NodeId.load_if(None)

Expected behavior

In Cognite SDK v7 this returns None.

 

 

1 reply

Forum|alt.badge.img