Link to home
Start Free TrialLog in
Avatar of messej01
messej01

asked on

Type Mismatch Error

Hi,

I keep getting this error when creating test documents in my newly created Lotus Notes Library Database. Can anyone advise how to fix this?

Thanks
Messej01
Avatar of CRAK
CRAK
Flag of Netherlands image

Try using the debugger: that should show you which variables have this conflict. You must be feeding a variable of type "X" (e.g. string) with a value of type "Y" (e.g. integer).
A type mismatch may also occur on e.g. variants (acting as string) or uninitialised arrays, when you try to retrieve an indexed value like var(0). Also if you feed an array into a variable that doesn't expect one. Are you feeding the new UI documument with a multi-value field from another (back-end) doc by any chance? FieldSetText() doesn't expect an array!

Perhaps you could post you code here so we can take a look?
Another one that often occurs is date handling. A NotesDateTime object does not return a date or time. It's property .LSLocalTime does!
As you see.... without the code at hand, we can't to much else but guessing.
Check QueryOpen, PostOpen events and also QuerySave event.

Try to debug and see where the Lotus Script is residing and provide us with the code.. we will see it.
ASKER CERTIFIED SOLUTION
Avatar of CRAK
CRAK
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of marilyng
marilyng

Agree with CRAK, but also, you might have to remark out all the "On Error" traps, so the debugger will stop on the "errant" Line.

I usually do a Search and Replace

Search for:  On Error

Replace with  'On Error

When you have the errant line, post it and we'll help you out.
did we solve your problem?