Incorrect Data Type For Operator
Created by Jake Howlett on 06/25/2004. Modified: 06/25/2004 08:17 AM
Message
HTTP Web Server: Lotus Notes Exception - Incorrect data type for operator or @Function
Synopsis
Similar to other error messages but with a slight difference.
Suggested Causes and Solutions:
Solutions
Only ever seen this one once. It was because the Window Title of a form included reference to a field name that was spelt wrongly. The field name should have been:
CON_Contactname
Instead, the "developer" had written:
CON-Contactname
Notes just couldn't do the math ;o) Didn't seem to mind in the client. Just choked when I came to web-enable the application...
Jake Howlett on 06/25/2004 08:19 AM
In the formula for the dialog list of a credit card's expiry year, the following code caused this error:
t1:=@Year(@Today);
"|":t1:t1+1:t1+2:t1+3:t1+4:t1+5:t1+6:t1+7:t1+8:t1+9:t1+10;
I replaced it with this code, and the problem was fixed:
t1:=@Year(@Today);
@For(n:=1; n<=10; n:= n + 1; FIELD year:=year:@Text(t1+n));
year
(It's the @Text in the second formula that actually made the difference)
Luis V. Aguila on 10/25/2004 14:59
Using below formula also will not show the error:
t1:=@Year(@Today);
"|":t1:t1+1:t1+2:t1+3:t1+4:t1+5:t1+6:t1+7:t1+8:t1+9:t1+10;
@If(@IsError(Incorrect);
@Failure("There is an error in the Incorrect field");@Success)
sarathi kri on 09/03/2007 03:17 PM
Sorry, forget to change the field name:
t1:=@Year(@Today);
"|":t1:t1+1:t1+2:t1+3:t1+4:t1+5:t1+6:t1+7:t1+8:t1+9:t1+10;
@If(@IsError(t1);
@Failure("There is an error in the Incorrect field");@Success)
sarathi on 09/03/2007 03:18 PM
Add Your Own Solution
Use this form to add a suggested cause or solution which you think might help.
Adding content is disabled. The spammer have won.