Check the spelling of your variable . In the error message you have a slash at the end of string, but in your post text you write is without a slash.. If this does no solve it, please show your values that are stored in the custom type cd.
Also, please put your code and error message as text not images