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

Question

Question

Access Denied 9013 SDK

asked on December 15, 2014

Hi,

I have a VS project that creates a document in laserfiche.

On line 

int iEntryID = Document.Create(fi, sSeries, "VOLUMES000000", EntryNameOption.AutoRename, raSession);

 

I get:

Laserfiche.RepositoryAccess.AccessDeniedException: Access denied. [9013]
   at Laserfiche.RepositoryAccess.Entry.MakeDocFolder(String path, String volumeName, EntryType entryType, String lockToken, EntryNameOption options, Session session)
   at Laserfiche.RepositoryAccess.Document.Create(FolderInfo parentFolder, String name, String volumeName, EntryNameOption options, Session session)
   at ImportDocumentsInvenergy.Form1.button1_Click(Object sender, EventArgs e)

 

 

I try using the admin user with the same results.

If I go to the client under the same user, I can create a document in the destination folder with no problem.

I try restarting the services but still the same issue.

 

I try from the same project, to import a document to a blank document by specifying the entry id and it works fine. Always same user.

 

DocumentInfo diNewDoc = Document.GetDocumentInfo(iEntryID, raSession);
docImp.Document = diNewDoc;
docImp.ImportEdoc(sFileMime, file);

 

Any ideas?


Thanks

 

Gian 

 

0 0

Answer

SELECTED ANSWER
replied on December 15, 2014

The name of the volume ("VOLUMES000000") makes it sound like it's part of a rollover volume called "VOLUMES".  When you create the document, give it the name of the logical volume and the server will take care of assigning it to a physical volume.  When you created the document with the Laserfiche client, it wouldn't have given you the option to use the same volume.

1 0
replied on December 15, 2014

Thanks Brian,

That was it.

I changed VOLUMES000000 to VOLUMES and it works.

 

 

0 0

Replies

replied on December 15, 2014 Show version history

I would start by ensuring that "fi" is a FolderInfo object for the folder where you want the document to be created and that your user has rights to create and modify entries in that folder.  Then verify that "sSeries" is a string that only contains the document name as you want it in LF.  Finally, make sure that "VOLUMES000000" is a valid volume name and that your user has permissions to create and modify documents in it.

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

Sign in to reply to this post.