Notes Ninjas Notes Ninjas
Lotus Notes hints, tips, error messages
Adding entry will cause text list to exceed 64K. Entry not added.

Hint Short Cut: Add this to your code & documentation to help you find this page.
http://www.notesninjas.com/#64k or http://www.notesninjas.com/A555F9/nn.nsf/ByAlias/64k


Lotus Notes Error: Adding entry will cause text list to exceed 64K. Entry not added. occurs when creating an array that is too large for a document.





 

One way to avoid this is to keep track of the size of the array:

 

I assue an array is size of strings + (2 * number of elements)

64k being 65536 64 * 1024 bytes   i use 64000 instead as a safety marker.

 

 

redim people(0) as string

peepcount=0

n =  "name etc"
if peepsize+Len(n) +(peepcount*2)> 6400  then '65536

   'do something else like add to another array instead

else

  peepcount=peepcount+1
Redim Preserve people(peepcount)
 people(peepcount)=n
 
 peepsize=peepsize + Len(n)
end if
 
Dim ni As notesitem
Set ni = currdoc.replaceitemvalue("ListOfPeople", people)
ni.IsSummary=False

 

 Jump to:     Notes Tips
    Lotus Notes Index 
  Register for Tips
 
    Next Lotus Notes Tip
Your company logo here?
Adam Foster
Free Cash Making Web Site
Free Revenue Earning Blog Site
 Free Revenue Earning Newsletter Site   
Free Search Pages Free Web stats
Free Contact Us page
Cheap .com domain names
 Need a website or 
   Lotus Notes
  problem solved?
Adam Foster
Lotus Notes and Domino 6 Programming Bible by Brian Benz, Rocky Oliver
Covers all the programming techniques, concepts, and languages used with Notes and Domino, as well as the many new features of Domino 6 Thoroughly examines the Notes and Domino role with Java, XML, Web services, and other IBM products and technologies Provides extensive code and examples, many geared to the needs of administrators High-profile authors, known to their audience through conferences and articles Companion Web site shows example applications from the book running on a live Domino server and provides code download.
See at: Amazon.co.uk | Amazon.com |