I am having an issue with a rule in Hazel?

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

I am having an issue with a rule in Hazel? Wed Jul 02, 2025 11:22 pm • by Linaickinson
I am having an issue with a rule in Hazel that uses a custom attribute. When a file (e.g. aa7.pdf) matches this rule, it is not processed as expected. When I check the Hazel log, I see the error:

Caught exception in rule evaluation of file aa7.pdf: [valueForUndefinedKey:]: this class does not comply with key value encoding for the key hazelcustomtoken:Rechnungs-Nr.[ #]

The custom attribute "Rechnungs-Nr." is simply an 8-digit string extracted from the file contents.
Is the above error caused by the custom attribute name containing a special character such as a dash or a period? If so, how should I rename the attribute to avoid the [valueForUndefinedKey:] error in Hazel?
Linaickinson
 
Posts: 1
Joined: Wed Jul 02, 2025 11:19 pm

Check your rule. One of the attributes got corrupted. It's the one starting with hazelcustomtoken. You will need to delete it and re-create it.
Mr_Noodle
Site Admin
 
Posts: 11938
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Open Discussion