Issue with Hazel and Applescript

Hi guys,
I have been using Hazel in connection with an Applescript, which I posted below. The script is part of a rule that renames a file triggered by certain key words and then moves it into subfolders and then is supposed to use the applescript to move the file as attachment into omnifocus (it is a modification of the script that MacSparky posted and that is listed in your example scripts). Until recently, this script worked fine, but now I get error messages with the following log entries.
Can anyone help and tell me what is wrong and possibly point me in the right direction?
Thank you very much in advance!
Best
Nick
********
Script:
tell application "Finder" to set file_name to (name of theFile)
tell application "OmniFocus"
set task_title to "review - " & file_name
tell default document
set NewTask to make new inbox task with properties {name:task_title}
tell the note of NewTask
make new file attachment with properties {file name:theFile, embedded:true}
end tell
end tell
end tell
******
Log Entries:
2017-11-02 15:31:39.210 hazelworker[4275] boardt_new doc 2017-10-13 15.29.00.pdf: Rule boardt matched.
2017-11-02 15:31:39.211 hazelworker[4275] [File Event] File moved: boardt_new doc 2017-10-13 15.29.00.pdf moved from folder /Users/d050281/Documents/OneDrive - SAP SE/inbox to folder /Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board.
2017-11-02 15:31:39.213 hazelworker[4275] [File Event] File renamed: /Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board/boardt_new doc 2017-10-13 15.29.00.pdf renamed to /Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board/2017-11-02_boardt_new doc 2017-10-13 15.29.00.pdf.
2017-11-02 15:31:39.259 hazelworker[4275] [Error] AppleScript failed: Error executing AppleScript on file /Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board/2017-11-02_boardt_new doc 2017-10-13 15.29.00.pdf.
2017-11-02 15:31:39.259 hazelworker[4275] OSAScript error: {
NSLocalizedDescription = "Finder got an error: Can\U2019t get alias \"/Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board/2017-11-02_boardt_new doc 2017-10-13 15.29.00.pdf\".";
NSLocalizedFailureReason = "Can\U2019t get alias \"/Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board/2017-11-02_boardt_new doc 2017-10-13 15.29.00.pdf\".";
OSAScriptErrorAppAddressKey = "<NSAppleEventDescriptor: [0x0,31031 \"Finder\"]>";
OSAScriptErrorAppNameKey = Finder;
OSAScriptErrorBriefMessageKey = "Can\U2019t get alias \"/Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board/2017-11-02_boardt_new doc 2017-10-13 15.29.00.pdf\".";
OSAScriptErrorMessageKey = "Finder got an error: Can\U2019t get alias \"/Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board/2017-11-02_boardt_new doc 2017-10-13 15.29.00.pdf\".";
OSAScriptErrorNumberKey = "-1728";
OSAScriptErrorRangeKey = "NSRange: {0, 0}";
}
I have been using Hazel in connection with an Applescript, which I posted below. The script is part of a rule that renames a file triggered by certain key words and then moves it into subfolders and then is supposed to use the applescript to move the file as attachment into omnifocus (it is a modification of the script that MacSparky posted and that is listed in your example scripts). Until recently, this script worked fine, but now I get error messages with the following log entries.
Can anyone help and tell me what is wrong and possibly point me in the right direction?
Thank you very much in advance!
Best
Nick
********
Script:
tell application "Finder" to set file_name to (name of theFile)
tell application "OmniFocus"
set task_title to "review - " & file_name
tell default document
set NewTask to make new inbox task with properties {name:task_title}
tell the note of NewTask
make new file attachment with properties {file name:theFile, embedded:true}
end tell
end tell
end tell
******
Log Entries:
2017-11-02 15:31:39.210 hazelworker[4275] boardt_new doc 2017-10-13 15.29.00.pdf: Rule boardt matched.
2017-11-02 15:31:39.211 hazelworker[4275] [File Event] File moved: boardt_new doc 2017-10-13 15.29.00.pdf moved from folder /Users/d050281/Documents/OneDrive - SAP SE/inbox to folder /Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board.
2017-11-02 15:31:39.213 hazelworker[4275] [File Event] File renamed: /Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board/boardt_new doc 2017-10-13 15.29.00.pdf renamed to /Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board/2017-11-02_boardt_new doc 2017-10-13 15.29.00.pdf.
2017-11-02 15:31:39.259 hazelworker[4275] [Error] AppleScript failed: Error executing AppleScript on file /Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board/2017-11-02_boardt_new doc 2017-10-13 15.29.00.pdf.
2017-11-02 15:31:39.259 hazelworker[4275] OSAScript error: {
NSLocalizedDescription = "Finder got an error: Can\U2019t get alias \"/Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board/2017-11-02_boardt_new doc 2017-10-13 15.29.00.pdf\".";
NSLocalizedFailureReason = "Can\U2019t get alias \"/Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board/2017-11-02_boardt_new doc 2017-10-13 15.29.00.pdf\".";
OSAScriptErrorAppAddressKey = "<NSAppleEventDescriptor: [0x0,31031 \"Finder\"]>";
OSAScriptErrorAppNameKey = Finder;
OSAScriptErrorBriefMessageKey = "Can\U2019t get alias \"/Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board/2017-11-02_boardt_new doc 2017-10-13 15.29.00.pdf\".";
OSAScriptErrorMessageKey = "Finder got an error: Can\U2019t get alias \"/Users/d050281/Documents/OneDrive - SAP SE/gcd/05_board/2017-11-02_boardt_new doc 2017-10-13 15.29.00.pdf\".";
OSAScriptErrorNumberKey = "-1728";
OSAScriptErrorRangeKey = "NSRange: {0, 0}";
}