GetOutlineEntry fails with 'CannotCreateOutline entry'

Hi,I have this line of code working fine in Notes 8.0.1:

Set outlineSource = bookmarkDB.GetOutline(“OutlineName”)

In Notes 8.5.1 in Windows 7 it gives the error:

“Cannot create outline entry”.

This is very confusing for two reasons:

  1. The function is called ‘GetOutlineEntry’. Not ‘CreateOutlineEntry’.

Why is it trying to Create the outline entry?

  1. The outline entry DOES exist and HAS already been created, for example, if you access the relevant database using the Designer Client, the outline entry has been created?

So, why does GetOutlineEntry actually seem to do a ‘CreateOutlineEntry’ ? And why can’t it see the outline that has already been created?

We had a workaround (exit notes, re-run and works the second time), but we want it to work for first time so we can automate the process.