Hi,
I have an agent which customizes a mail(doc) and sends its to specified address.
I get the above error in line no.18 of below code… It looks wierd for me since the the ‘doc’ is getting saved in line no.1(no error), and after that its just updated with two fields, in which addresses(No.16 line) is just a simple text address(definitely not more than 5K)
And after that I just remove that mail from Inbox folder and save it, where I get this error…!
Any idea why am getting this error…?
And could someone tell me how can I find which field has exceeded 32K programmatically(am not able to get handle of this doc by script though)
my code
some code… then… below…
-
Call doc.save(True,True)
-
getaddress = getaddresses(doc.names1)
-
Call s_LogMsg (0,"–> Forwarding email to " & Join(addresses, “,”) )
-
Set forwarddoc = New NotesDocument(db)
-
Call doc.CopyAllItems( forwarddoc, True )
-
forwarddoc.principal = doc.from(0)
-
forwarddoc.from = doc.from(0)
-
forwarddoc.SendTo = addresses
-
forwarddoc.CopyTo = “”
-
forwarddoc.Region = region
-
forwarddoc.SentList = groupname$
-
forwarddoc.originalsendto = doc.sendto
-
forwarddoc.originalcopyto = doc.copyto
-
Call forwarddoc.Send( False)
-
doc.Processed = “Yes”
-
doc.addresses = addresses
-
Call doc.RemoveFromFolder(“($Inbox)”)
-
Call doc.Save(True, True)
Cheers,
Rakesh