on 01-09-2015 8:55 PM
Hi everybody.
I'm currently doing an UDO to calculate comission for every seller on SAP Business One 8.82
Whenever I add info and save it, I got the following error:
"Conversion failed when converting the nvarchar value 'NAME_OF_THE_UDO' to data type int"
Don't know what to do...
Thanks!
Hi alejandrovasqz
You can check Stoted Procedure that your query is correct. That error I have seen before and I chaecked on Stored Procedure and fix it. After that can add UDO.
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you all for your replies. I think I didn't express myself very well.
What I'm trying to do is a window where the user can manually enter the commission percentage.
So I created a User-Defined Table called 'Commissions'.
Then I created another table called 'Commissions_Details' and added some UDO's.
Now, whenever I try to save the data I receive the error: Conversion failed when converting the nvarchar value 'Commissions' to data type int.
I have no idea where and what I have to cast. The funny thing is that it saves the information.
Thanks
Manuel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manuel,
You need to apply a CAST or a CONVERT to the value on the field, please follow the next link:
http://msdn.microsoft.com/es-MX/library/ms187928.aspx
Regards,
David Almazán
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If your field is in INT then you can use the Cast or Convert to convert the type of your filed.
Use the below syntax.
cast(A.my_NvarcharColumn as INT)
or
convert (int, N'A.my_NvarcharColumn')
this will be helpful.
Regards,
Ravi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What is the data type of your UDO field and what type of data your are saving on that field???
Regards,
Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please advice type of UDO and post formula for commission here to check.
Thanks & Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.