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

Question

Question

Import document to a folder with Filter expression

asked on October 13, 2015

When trying to import/create/move a document to a folder having a filter expression, an error is generated " Operation not allowed, because performing it would cause the entry to become hidden from you".

 

Noting that I cannot set the “Bypass Filter Expression” privilege to the user since the he will be able to view all documents in all folders having a filter expression.

 

Any Advice ?

1 0

Replies

replied on October 13, 2015

Can you clarify the use case? What is folder filter expression that restricts the user from seeing some entries? If it's metadata based, can the user first make sure the metadata is properly set on the entry prior to moving it into the folder? As for importing or creating new documents, perhaps have the "Always show metadata dialog" option for new documents selected.

0 0
replied on April 5, 2016

I am facing a similar problem, can you please advise?

I am importing a document into a folder having many child folders. The parent folder has a filter expression. I implemented a filter expression on the parent folder that controls access to the child folder. This filter expression works fine for documents already in the child folder however, when importing files, that will end up in the child folder, I get the error " Operation not allowed, because performing it would cause the entry to become hidden from you".

I want to note that the type of file imported agrees with the filter expression in the sense that the filter expression allows the person to see this type of file only.

Thank you.

 

replied on April 7, 2016

Hi Alexander,

I am facing the same issue and my scenario is quite close to the original post.

I am importing a document into a folder having many child folders. The parent folder has a filter expression. I implemented a filter expression on the parent folder that controls access to the child folder. This filter expression works fine for documents already in the child folder however, when importing files, that will end up in the child folder, I get the error " Operation not allowed, because performing it would cause the entry to become hidden from you".

I want to note that the type of file imported agrees with the filter expression in the sense that the filter expression allows the person to see this type of file only and that the person importing the document has the right to create documents and folders.

Thank you.

0 0
replied on April 22, 2016

I received from LF support the following reply:

 

This is as expected because when you try to create a document with field values assigned, actually the document will first be created, and then the template/fields are assigned. The error pops up in the first step. 

This behavior cannot be modified since the actions to create the document and to set fields value are two different steps. LF Server processes the creation step and check the Folder Filter Expression, then it gives the warn. If LF Server don't check the Folder Filter Expression, user might not set the fields correctly during the creation, that might be a disaster.

A workaround is to create the document from other location, apply the template and fields, and then move the document to that folder.

 

Alternatively, you can use the following expression:

Entry.Creator = context ('username') OR (IS_GROUP_MEMBER('YourGroup') = 1 AND ( entry.type='folder' OR entryprop."YourFieldName" = 'YourValue'))

 

Which will allow the users to see the documents created by themselves.

 

You can also setup workflow to verify/correct/enforce/etc the related business restrictions.

 

Hope this could help.

 

Best regards,

 

Ignacio PdeA

BMB sal

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

Sign in to reply to this post.