GetOutline giving 'Cannot create outline entry' on first run, OK after

I have a button that creates an outline entry amongst other things.It’s a button in an email.

If you press the button in Notes 8.0.1 with Windows XP, everything is fine.

On Windows 7 / Notes 8.5.1, the FIRST time you press the button this line:

Set outlineSource = bookmarkDB.GetOutline(“OutlineName”)

is erroring out with “Creation of outline instance failed”.

The next time, you can go in and press the button, and everything works as expected.

It’s almost as if you need to refresh the bookmark db to remind Lotus Notes that you have created an outline entry?