Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

DT_WSTR to DT_NUMERIC conversion

$
0
0

Hi all,
I'm trying to make a dtsx package to extract data from a Sharepoint list and import it to an Oracle table. I installed the Sharepoint List Adapter from Codeplex.

Some fields in the Sharepoint list are defined as numeric evaluated fields. In the SharePoint List Source the data type of these fields is DT_WSTR(255). In the Oracle table the matching fields are defined as NUMBER(9,0), which corresponds to a DT_NUMERIC type (precision 9, scale 0) in the OLE DB Destination.

If I try to write the data without conversion, in the table I get zeros even if these fields contain some positive integers.

If I try to convert the input data (with a cast operation in a Derived Column component or with a Data Conversion component), I get a runtime error ("An error occurred while attempting to perform a type cast" or "Data conversion failed while converting column "XXX" to column "YYY" .  The conversion returned status value 2 and status text "The value could not be converted because of a potential loss of data.""

How can I solve this issue?

Thank you in advance.



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>