on 06-03-2009 6:48 AM
Hi Friends,
I am doing a Proxy to JDBC scenario using stored procedure.
We have a field in the database which has the datatype as " Money ".
The data is being sent from the source in decimal format
This data is inserted in the database through a stored procedure. this stored procedure has MONEY as the datatype for that field.
In PI, i have given the source datatype and target datatype as string.
In the field mapping, i have given TYPE --> CHAR.
We are receiving a error at the communication channel. " Implicit conversion from data type nvarchar to money is not allowed. Use the CONVERT function to run this query ".
kindly help me to resolve the issue.
Regards,
Sherin Jose P
Hi ,
I have solved the issue by selecting Decimal in target and giving TYPE-->DECIMAL in the mapping field.
Now it works fine.
Thanks for the inputs.
Regards,
Sherin Jose P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sherin,
Check you are sending the value (-922337203685477.5808 to 922337203685477.5807) with 4 digit decimal value. else use formatNum and try it out.
Format Number:#0.0000
Regards,
Prakasu.M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you need to apply some logic in udf to convert char -
> money datatype.....doing a 1:1 mapping betwwen char ---> money gives this error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.