BlockReference.DynamicPropertyNames sometimes not working

Hello.

Sometimes the node “BlockReference.DynamicPropertyNames” is working and sometimes not…
Has someone an idea why?
I use Civil3D 2023.2 and Dynamo 2.15

Working:

Not working: