More XPages error-fun...

I really enjoy debugging mysterious error messages from XPages...

Today, it's "field in note has wrong datatype":

Image:More XPages error-fun...

I have experienced this problem upon a question from my client. Save button (which only submits the form) results in this error. After analyzing the page (analyze=delete all elements except the button) I decided that XPages elements have nothing to do with the problem. It was computing the document before saving, so that must be the problem. Indeed, I analyzed the form (analyze=delete fields part by part). Finally I found it. Here I will show you...

Let's create a simple form:

Image:More XPages error-fun...

You will notice that: Field has a type for date/time but we are putting an integer... Simple mistake for a Notes developer, but it will work on client without any error...

Now add it to a data source and try to save it (put an error messages control to see the problem).

You have thousand fields on your form?

Have fun!!!

Serdar Basegmez   |   February 24 2012 12:36:42 AM   |    XPages    |  
  |   Next Document   |   Previous Document
Comments [2]    add

  1 ann       03/01/2013 5:35:09 PM

I'm getting that error on a TEXT field. As long as the text field is blank, I can save the document. But as soon as I put text in the field, I get that error. Any idea why that would be happening?


  2 Serdar Basegmez    http://lotusnotus.com/en    03/01/2013 6:02:04 PM

Have you checked other properties of the field? InputTranslation, InputValidation etc.?


Add Comment
 *    
 *

Licensing

Creative Commons License

LotusNotus Blog by Serdar Basegmez is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Based on a work at lotusnotus.com.

Unless otherwise stated, all code samples and downloads are copyright Serdar Basegmez and licensed under Apache License 2.0.

 

Serdar Basegmez


Developi Information Systems
 |   |   |  more...
 
design & content : © 2009 serdar başeğmez   |   powered by ibm lotus® domino® blog template 8.5.1
Related Posts with Thumbnails