This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
When using the Quick Search on a List View, if you input numbers only you get the following error:
The conversion of the nvarchar value '215355804001' overflowed an int column. The statement has been terminated. Where the numbers listed would be the numbers you inputted into the search.
This issue occurs if the List View is setup using a SQL Service Instance SmartObject
that has an Int
column that can be searched. SQL limits the amount of numbers that can be inputted into a Int column which is why this error appears.
Inside the SQL Service Instance SmartObject that you are using, you need to find the SQL Table that it is using inside the database. Inside this database you need to change the Int column to a BigInt. This will allow for more digits to be searched. If this is not an option, then on the Quick Search bar you need to change the drop-down field from All Fields to the column you wish to search. Keep in mind that if you select the column that was created in the SQL Table as an Int, you will still get the error as this is a SQL limitation.
Another workaround is to use a SmartBox SmartObject and select a Number type instead of using a SQL Service Instance as this will allow you to input as many digits as you wish (up to 256).
Keep in mind that in the Quick Search field, if you input a single letter it will NOT error. The error only happens if it is strictly numbers only.
Please Note: A bug report was filed with this KB article so a fix may be implemented in a future version of the product.