this is notes 5.0.6a
i guess i forgot to post n my original that once I click OK on the above error, another comes up that says "User-defined error"
my code:
Sub Click(Source As Button)
' DECLARATIONS GO HERE
AddTestCase=1
index=0
MAX_TEST_CASES=100
Set db = s.CurrentDatabase
Set NewDoc = New NotesDocument ( db )
TestCaseList = Evaluate("@DbColumn( '' : 'NoCache' ; '' : '' ; '(TestCaseAndDocID)' ; 1 )")
NewDoc.ProjectName=Current
NewDoc.CIT_assign_1=Curren
NewDoc.Tester=CurrentDoc.T
NewDoc.Form = "CTPlan"
Title = w.Prompt(PROMPT_OKCANCELED
If Isempty (Title) Then
Goto Cancelled
Else
Call NewDoc.ReplaceItemValue("T
End If
SelTestCase = w.Prompt(PROMPT_OKCANCELLI
If Isempty (SelTestCase) Then
Goto Cancelled
Else
Forall STC In SelTestCase
Call NewDoc.ReplaceItemValue("T
Set TestCaseAndDocID = DB.GetView("(TestCaseAndDo
Set TestCaseToPullFrom = TestCaseAndDocID.GetDocume
Set notesItemToPullFrom = TestCaseToPullFrom.GetFirs
Call NewDoc.CopyItem( notesItemToPullFrom, "Body_"+index )
If index=MAX_TEST_CASES Then
Goto LimitReached
End If
index = index+1
End Forall
End If
Cancelled:
If index=0 Then
Goto Quitting
Else
PromptSave=w.Prompt(PROMPT
If PromptSave=1Then
Goto SaveDoc
Else
Goto Quitting
End If
End If
LimitReached:
Messagebox "You Have Reached The Max Number of Test Cases. Saving Document."
SaveDoc:
Call NewDoc.Save(False,True)
'this next line is what cuses the error
Call w.EditDocument( True, NewDoc )
Quitting:
End Sub
Main Topics
Browse All Topics





by: CRAKPosted on 2004-03-04 at 01:29:16ID: 10512397
I've never come across that error. There is a paragraph limit of 64k, but exceeding it raises a different error. The only other error I know of in RT is the total size of a RT field.... limited by the amount of available disk space (incl. max. db size if any).
What notes version are you using?
It could be of help to post (fragments) of the actual code here so we can see how you append all those fields. Any document refreshes / computations while you're appending to the RT field?