Q

"Cannot remove Notes document when instantiated by notesuidocument"

"Cannot remove Notes document when instituted by notes"

I get the above error message even though the Notes document is not instituted by a ui document. I have a view action which collects all documents based on a condition and deletes all the response documents if any for the document.

 ------------------------------------ set call = view(key, true) if not collc.ount = 0 then set doc = collage '''''''''''Collect all responses Set coll2 = doc responses '''''''''''Remove all responses call coll2.removeall(true) '''''''''''Remove the main doc call doc.re move(true) ''''This is where I end up with the above error end if


Try to destroy the coll2 object first. You can only delete an object when all other objects within the scope of the top level object are destroyed. So if you inserted before your call to remove doc it should work.

This was first published in April 2002

Dig deeper on Domino Resources - Part 2

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.uk

Close