Is that in VBA code please? However, I have tested to use VBA code to add "cdm158" on my trace. It is OK.
It is likely the digital state has been added. Closing/re-opening ProcessBook or disconnecting/re-connecting to the PI Server manually will probably resolve the issue. This error should generally only occur when digital sets have been edited in some way. The PI SDK cache is stale relative to the change and making a new connection will refresh the cache.