R0Wi-DEV / workflow_ocr

This is a Nextcloud Workflow App which enables you to process files via OCR on serverside.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error setting up the flow

Edzilla2000 opened this issue · comments

Hello,
If I try to set up a flow where the OCR happens on create/update with mime type "PDF", I get a "the given regular expression is invalid" error:
image

Thanks for reporting this error. I also observed this error a few weeks ago during testing (see #32 (comment)).

This error is caused by a bug in the Nextcloud workflow engine. Therefore, @R0Wi reported this issue already to the Nextcloud server repository (see nextcloud/server#23666). We hope that this bug in the Nextcloud workflow engine will be fixed soon.

To get the OCR processing done, you can use the following temporary workaround. Replace the matches operator with the is operator and everything should work out fine.

Thanks @Edzilla2000 and @bahnwaerter . Closing this sice this seems to be a problem inside NC core itself. Feel free to reopen if we can help somehow.

I have the same problem, even if I select "is" instead of "matches".

Unfortunately i cannot reproduce this issue (see attached screen video). Which version of Nextcloud do you use? And are you configuring "personal flows" (like me in the video) or "administration flows" (Settings -> Administration -> Flow) ?

simplescreenrecorder-2020-12-31_15.17.07.mp4

Ah the option "when" was hard to see because it automatic opens the "file type" option.