Error in Stored Procedure spKartrisProducts_GetTopList

Posted By Valerio Thu 4 Sep 2014
Add to Favorites1
Author Message
Valerio
 Posted Thu 4 Sep 2014
Supreme Being

Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)

Group: Forum Members
Last Active: Tue 31 May 2016
Posts: 10, Visits: 42
Hi,i've an error with that store procedure. I've a catalog of 20.000 products and if I make an order for a product with an ID greater than 255, I get an error from store procedures spKartrisProducts_GetTopList:
"overflow error for data type tinyint, value" and the product id.
How can I fix?
thanks a lot of collaboration.
Valerio Marked As Answer
 Posted Thu 4 Sep 2014
Supreme Being

Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)Supreme Being - (6,072 reputation)

Group: Forum Members
Last Active: Tue 31 May 2016
Posts: 10, Visits: 42
Solved!If anyone is interested,
i've changed @P_ID and @LANG_ID to int in fnKartrisProducts_GetName and line 20 in spKartrisProducts_GetTopList to
SELECT TOP (@Limit) vKartrisCategoryProductsVersionsLink.P_ID, [dbo].[fnKartrisProducts_GetName](vKartrisCategoryProductsVersionsLink.P_ID, @LANG_ID) AS P_Name


Paul
 Posted Thu 9 Oct 2014
große Käse

große Käse - (509,234 reputation)große Käse - (509,234 reputation)große Käse - (509,234 reputation)große Käse - (509,234 reputation)große Käse - (509,234 reputation)große Käse - (509,234 reputation)große Käse - (509,234 reputation)große Käse - (509,234 reputation)große Käse - (509,234 reputation)

Group: Administrators
Last Active: Tue 10 Sep 2024
Posts: 807, Visits: 2,748
Thanks, this was updated in the latest code which will be part of the next release, but the SQL is here if anyone needs it:

https://kartris.codeplex.com/SourceControl/latest#Uploads/Resources/UpdateSQL_2.7000_To_2.7002.sql


--
If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.

If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top