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
Web Services Platform Architecture: Soap, WSDL, WS-Policy, WS-Addressing, WS-Bpel, WS-Reliable Messaging and More by Francisco Curbera, Frank Leymann, Tony Storey, Donald Ferguson, Sanjiva Weerawarana
Other books claim to present the complete Web services platform architecture, but this is the first one I've seen that really does. The authors have been intimately involved in the creation of the architecture. Who better to write this book?
See at: Amazon.co.uk | Amazon.com |