This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

User cannot check-out even though he has Edit rights

Hi,

So as the title says, I have 2 users now who cannot check-out/edit metadata a document even though if you check the permissions tab, it says that he has the Edit rights.

Another interesting bit is, after I as administrator check-out check-in the document, then he can Edit as normal. I'm guessing something doesn't refresh in the background? These are not newly created documents either, 2 weeks+ old.

Also, whenever a change happens on the document the Modified By field displays it as (M-Files Server) not the user

Any ideas what could be causing this weird problem?

Thanks, Žan

  • The last bit about M-Files Server indicates that you have some sort of automation in place that modifies the document or its metadata immediately after check in. It could be a workflow, an event handler or something managed by Compliance Kit or another add-on. Have you checked whether the version number increases with 1 or 2 when you see this happen? The problem may be related to that although I cannot see how.

    For those 2 users it might help to clear the local cache, see https://userguide.m-files.com/user-guide/latest/eng/Clear_local_cache.html

  • Hi!

    I'm sorry, this question was pointless. There were still changes to the NACL going on in the background task, and the user was trying to edit a document that this NACL applies to. But the document he was trying to edit hasn't been yet updated so when he tries to check it out it ofcourse wants to update the NACL, but he does not have the Change Permissions check mark.

    About the M-Files Server thing though, the version increments normally by 1. But we do have lots of rules going on in the background, so it's entirely possible that something messes it up.

  • Edit 1 hour after comment:

    I actually solved it now, without touching the VBScript though. I just removed the Minor Version level in the workflow configuration of Version Control Lite

    Hi! Thank you for the link, I've tried many things but due to my limited VBScript knowledge I didn't solve anything yet.

    I've found that the culprit is the property "Minor Version", which increments by 1 whenever a document is in the Editable State (version control lite). This started ha

    Below is the code set for Minor Version (the code is in the property itself and not in the workflow).

    Logic here is that Major Version increments by 1 whenever the document is Released, and Minor increments when editing in Editable State. Major Version however does not have any VBScript. 

    Option Explicit

    ' Set minor version on checkin

    ' Get Minor Version Value
    Dim minorVerValue
    minorVerValue = PropertyValues.SearchForProperty(PropertyDef.ID).TypedValue.DisplayValue

    ' Get current logged in user
    ' Dim currentUser = Vault.CurrentLoggedInUserID

    ' if document is in state "In preparation" and User is current user and version is > 1
    If (PropertyValues.SearchForProperty(39).TypedValue.GetLookupID = 422 or PropertyValues.SearchForProperty(39).TypedValue.GetLookupID = 405) and CurrentUserID <> -102 and ObjVer.Version > 1 Then

    ' Increment Minor Version by 1
    Dim nextMinorVersion
    nextMinorVersion = minorVerValue + 1

    ' Set minor version property
    Output = nextMinorVersion
    End If