Error during rule evaluation

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Error during rule evaluation Mon Apr 17, 2023 2:38 am • by Rivederlestelle
Good morning,
I would have another question about a recurring error that has been happening to me lately.
I have a rule whose main condition is "If kind is PDF" followed by more conditions.
Every day (a couple of times a day) I get an error from Hazel saying
"Error during rule evaluation
Received error while trying to evaluate rules (name of rule) on file (name of file.jpg)"
.
Why do I get an error on a .jpg file (I also get the same error for an mp4 file) when my main condition is that the rule is executed only on PDF files?
All the files that return an error are files saved from the whatsapp application.
This error doesn't bother me at all... it's just a personal curiosity

this is my rule
https://www.dropbox.com/s/cbwasve2xc812m2/Regla%20ullastres.pdf?dl=0

and this is the error
https://www.dropbox.com/s/grykuyoxua02p9p/Error.pdf?dl=0
Rivederlestelle
 
Posts: 11
Joined: Thu Jan 12, 2023 4:44 am

Re: Error during rule evaluation Mon Apr 17, 2023 3:49 am • by Mr_Noodle
Can you check the logs? Go to Help-View Logs and search for any errors for those files.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Error during rule evaluation Mon Apr 17, 2023 4:43 am • by Rivederlestelle
Thanks for answering.
This is the error log



2023-04-16 22:27:15.220 hazelworker[75138] [Error] Error during rule evaluation: Received error while trying to evaluate rule Recibos Ullastres on file WhatsApp Image 2023-03-17 at 08.48.12.jpeg
2023-04-16 22:27:15.220 hazelworker[75138] Error while matching rule Recibos Ullastres against file /Users/andrea/Downloads/WhatsApp Image 2023-03-17 at 08.48.12.jpeg: Could not retrieve metadata for file: /Users/andrea/Downloads/WhatsApp Image 2023-03-17 at 08.48.12.jpeg
2023-04-16 22:27:15.220 hazelworker[75138] ###Arch: arm64
2023-04-16 22:27:15.220 hazelworker[75138] ###main load address: 0x104110000
2023-04-16 22:27:15.220 hazelworker[75138] ###Hazel Core load address: 0x104320000
2023-04-16 22:27:15.220 hazelworker[75138] ###Noodle load address: 0x104618000
2023-04-16 22:27:15.220 hazelworker[75138] ###CK load address: 0x104214000
2023-04-16 22:27:15.220 hazelworker[75138] (
0 CoreFoundation 0x000000019128719c __exceptionPreprocess + 176
1 libobjc.A.dylib 0x0000000190da64d4 objc_exception_throw + 60
2 HazelCore 0x000000010432fe2c hasNSRecords + 15748
3 HazelCore 0x000000010432cd10 hasNSRecords + 3176
4 HazelCore 0x000000010436e944 _isDateValue + 22288
5 Foundation 0x000000019221a410 -[NSCustomPredicateOperator performPrimitiveOperationUsingObject:andObject:] + 868
6 Foundation 0x000000019218b8d4 -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 324
7 HazelCore 0x0000000104366058 hazelKindFromUTI + 2740
8 HazelCore 0x00000001043694c4 _isDateValue + 656
9 HazelCore 0x000000010436965c _isDateValue + 1064
10 HazelCore 0x0000000104367ae4 hazelKindFromUTI + 9536
11 HazelCore 0x000000010436af9c _isDateValue + 7528
12 HazelCore 0x0000000104349c5c errorFromOSAScriptErrorDict + 64288
13 hazelworker 0x0000000104118ef8 hazelworker + 36600
14 hazelworker 0x000000010411b388 hazelworker + 45960
15 hazelworker 0x000000010411cf8c hazelworker + 53132
16 dyld 0x0000000190dd7f28 start + 2236
)
2023-04-16 22:27:15.743 hazelworker[75138] File type not supported: {(
"public.item",
"public.data",
"com.noodlesoft.hazel.rules"
)}
2023-04-16 22:27:15.747 hazelworker[75138] File type not supported: {(
"public.heic",
"public.item",
"public.image",
"public.heif-standard",
"public.data",
"public.content"
)}
Rivederlestelle
 
Posts: 11
Joined: Thu Jan 12, 2023 4:44 am

Re: Error during rule evaluation Tue Apr 18, 2023 2:09 pm • by Mr_Noodle
It appears that the file is not indexed by Spotlight. Make sure that the location is not in Spotlight's privacy settings and that files in it are being indexed.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Error during rule evaluation Wed Apr 19, 2023 3:05 am • by Rivederlestelle
No, Spotlight does not have restrictions in the privacy tab, but it is curious that this happens in all WhatsApp files.
It is not the first time that the files imported from there create problems for me, so much so that sometimes the graphic edition programs do not even recognize them. Thanks for your help.
Rivederlestelle
 
Posts: 11
Joined: Thu Jan 12, 2023 4:44 am

Re: Error during rule evaluation Wed Apr 19, 2023 9:06 am • by Mr_Noodle
If you select the files in Finder and do "Get Info", do you see extra information under "More info"?
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Error during rule evaluation Thu Apr 20, 2023 4:55 am • by Rivederlestelle
Yes, I can see more information, but I suspect that something is wrong with the files that I download directly from WhatsApp. As I told you, they always give me a problem if I have to import them into certain editing programs.
Don't waste more time with my question, it's a minor problem and thank God I don't download many files from WhatsApp.
Thanks as always for your help.
Rivederlestelle
 
Posts: 11
Joined: Thu Jan 12, 2023 4:44 am


Return to Support