"Note Item Not Found" When Opening Database - solved

Hi

My application (for my traineeship) generates the dxl of a Notes DB, based on user input in a form. Then it creates a new database (in LotusScript) and imports the dxl-file into the new DB(also in LotusScript).

However generating the DXL and importing it into the new DB wasn’t an easy task, It works now (no more errors after having had all of them I think ;)).

BUT!

When I open the new DB for the first time, I get the ‘Note Item Not Found’-message twice.

When I open it a second time, I get it once, and from then on it’s gone.

Nothing seems wrong in the new DB… Does anyone have an explanation? I’ve searched the forum for answers; found a lot on ‘Note Item Not Found’; but no sollutions.

OK, my error is gone after opening the new DB twice, but I can 't expect users to be OK with that…

All tips, clues, … are welcome!

PS: I’m considering opening and closing the DB in the background 2 times, and using some sort of sendkey-api to hide the message for the user by sending {ENTER}. Anyone got an opinion on the this method? Is there even a way to do this?

UPDATE: I found out the message came up because I did not import an icon into the database.