Manage Learn to apply best practices and optimize your operations.

Invalid or Nonexistent Document Error Inserting

This tip describes how to fix the Invalid or Nonexistent Document error generated when working with subforms.

When trying to insert a subform on a form, you may receive the error "Invalid or Nonexistent Document". At first I thought I had reached some arbitrary limit on the number of subforms but I only had 4. The one thing I did notice is that I also had an embedded view.

After removing the view, the insert subform worked. I examined the view and realized that I was computing the name of the view to display. If I explicitely specified a valid Notes view name (ie: ($All)), everything worked well. I concluded that for some reason Designer wants to know the view name after inserting a certian number of subforms. Since this is a Web only form, I decided to change the formula to explicitly name of valid view for the Notes client and leave the formula untouched for the Web.

 Here is a simplified version:
@If(@ClientType="Notes";"($All)";"F_" + @If(MyVar="REGIONS"; "COUNTRY_REGIONS"; "ALL_REGIONS)) 
Hopefully this will save you some time in debugging.

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials'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 ...