You are viewing limited content. For full access, please sign in.

Question

Question

Need workflow to treat warning like error

asked on May 4, 2018

Hi,

I have a workflow that copies a folder from one repository to another using 'Replicate Entries'. I want to be able to catch a warning and not an error (see below). I know what the error is as I created it to test the workflow (I changed the permissions on the receiving folder). I want to be able to generate an email if this happens again,  to me this is an error rather than a warning as the workflow fails to send the documents. The try catch only seems to catch errors and not this warning so my workflow carries on as if nothing has happened.

How do I catch this warning ?

04/05/2018 14:59:12Export_Entry
(_Import)There were '1' warning(s) importing this briefcase. See Laserfiche Server briefcase log: LFBIMPORT_20180504T145912.log

0 0

Replies

replied on May 8, 2018

There is no way to convert the warning to an error at this time.

I see your point, but briefcase import could also throw non-fatal warnings (for ex, failing to create a field because the user doesn't have Manage Metadata rights wouldn't stop documents from being created). The log mentioned in the message would have more information on what actually failed.

 

0 0
replied on May 8, 2018

HI Miruna,

Thank you for your reply, I understand what you are saying.

I have created a workaround, not ideal but none the less a workaround. Every time I copy a briefcase into a repository I do a find entry to check the file is actually on the destination repository before removing it. Is there any chance that this type validation would be built into the 'replicate entry' construct in the near future. It would save having to program manual checks when moving data between repositories.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.