ADF Copy Data Activity from CSV to SQL table incorrectly converts string values

Azure_Noob 30 Reputation points
2023-06-09T15:30:09.7233333+00:00

I have a csv file that I am trying to upload to a table on SQL Server. I am uploading all the data into SQL as a string. Columns that contain money values such as -100 are being converted to (100) despite having data type mapping in ADF being string -> nvarchar. How do I correct this so that the upload from ADF keeps -100 as -100 in SQL table?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
Microsoft 365 and Office | Excel | For business | Windows
SQL Server | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Azure_Noob 30 Reputation points
    2023-06-14T17:54:35.61+00:00

    Hi I was able to find a solution. I should have mentioned that I can not alter the source file, so your solution does not apply for me unfortunately. I imported the data as is and simply did nested replace functions to change the parenthesis to negative.

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.