Everything about Domino, PHP and other programming languages

Overflow in mailbox

Cor Eigenhuis  October 17 2013 08:47:46
After upgrading one of our customers to Domino and Notes 9, some user were getting overflow errors in their mailbox. The first user reported an overflow error when trying to delete a memo. It turned out the error was returned when trying to determine the current version of Notes. In the code below, the error was returned on the line in bold.

' Determine version number using @Version because it backwards compat to r3
v
= Evaluate( |@Version| )
versionNumber
= Format(v(0), "Fixed")

If
( versionNumber < 177 ) Then
     
Goto preRNext        ' skip SD check
End
If


Since nobody in the company uses R3 anymore, the code could be omitted, which fixed the error.

However, soon other users reported the same overflow error, but on different occasions. Not everybody experienced this overflow error, only people who used the embedded browser (for previewing pdf in another database). The error was reproducible. All were traceable back to various lines with the Format function. In the mailtemplate these statements can easily be replaced by the Cint function.

By replacing the versionNumber line, the error was resolved:

versionNumber = Cint(v(0))

Image:Overflow in mailbox

    Bookmark and Share