Can't move document to shared private on first use folder

I have a agent use PutAllInFolder function to put documents in a shared private on first use folder. Looks like it works well to most of users, but recently two new users who has just got access to this database can’t use the function. The error message is like below:

Can’t move document to shared private on first use folder

I check their database ACL, they have sufficient authority. I even write a agent using ui functions to open the folder in workspace. It also works fine. The user can open that view. Why the error still send out?

Subject: Solution to: Can’t move document to shared private on first use folder

I had to deal with same problem couple of times.

Private Folders On First Use (and folders) users instances cannot be generated programatically (as calling methods on NotesView object representing pofu view raises error), they can only be builded in UI context when user opens POFU view.

If you use them in your application you have to ensure that pofu view is generated for current user before making any operations with it in code (like putting documents in a shared private on first use folder).

I have used two solutions:

  1. Build POFU folder/view Before using them in code by embedding in form that users will have to open before calling you operation (PutAllInFolder) – a dirty way

2.Catch the Error in code (“Can’t move document to Shared Private On First Use Folder”) display pofu folder to user and repeat your operation once again (PutAllInFolder) – the operation should execute successfully as POFU private version was generated after displaying to user.

This approach works for well designed application – you can link your recall in action such “refresh”, “search” or “clear”

http:\smart.biz.pl

Subject: Can’t move document to shared private on first use folder

The problem may be that they don’t have the private version of the folder yet – all the code sees is the shared design note, and users can’t put documents into that.

Subject: RE: Can’t move document to shared private on first use folder

Could you please give me some advice on how to solve the problem? thanks in advance

Subject: RE: Can’t move document to shared private on first use folder

I am having the same problem as Jasmine.Jasmine, did you fix it? could you give me some advice?

Thanks