Generate Data Table - wrong data type

Hi all,

I’m facing an issue converting text to data table. Most of my fields are in decimals. e.g 0.00.

However, the tool read it as 0 and set as integer.

When I do a table merge, it will throw an error on the data type invalid.

Anyone encounter this before and has a solution or workaround? Is it possible to change the column type of an existing datatable ? Thank you.

*I’m using c#

Hi,

It seems limitation of auto detect.
As workaround, how about the following?

  1. Add text record including dummy decimal data such as 1.23 into the text

  2. Generate DataTable

  3. Remove the final row

Regards,

Thanks! This worked for me.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.