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

Question

Question

Laserfiche.RepositoryAccess.MultiStatusException: Access denied. (9013)

asked on January 8, 2015

I am trying to update field values using RA 9.0

Any time that my program tries to save the changes to the FieldValueCollection, my program throws Error:

Laserfiche.RepositoryAccess.MultiStatusException: Access denied. (9013)
   at Laserfiche.RepositoryAccess.EntryInfo.Save()

        Try
            'Get the LF Folder object to Index
            Dim myEntry As EntryInfo = Entry.GetEntryInfo(entryID, CurSession)
            'Get the LF Field Data from entry
            Dim tempFields As FieldValueCollection = myEntry.GetFieldValues()
            'Lock the entry to edit Field Data
            myEntry.Lock(LockType.Exclusive)
            'Set Field value
            tempFields.Item(sFieldName.Trim) = sFieldData.Trim
            'Apply change to entry
            myEntry.SetFieldValues(tempFields)
            'Save changes
            myEntry.Save() ' Throws error here
            'Unlock Entry
            myEntry.Unlock()
            'Release entry object
            myEntry.Dispose()
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try

What am I doing wrong?

0 0

Answer

SELECTED ANSWER
replied on January 8, 2015

Well, there was nothing wrong with the code.  The user that the code was running as only had read access to the field it was trying to update.

1 0

Replies

replied on May 26, 2021

(1) Manually  check if that account was able to update metadata

check effective access rights of that account on the repo, template access, lfds license, feature rights are something to check for

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

Sign in to reply to this post.