How to remove backslash ( \ ) in Azure Data Factory?

Anonymous
2022-12-22T18:32:11.273+00:00

I am trying to remove back slash in ADF.

273340-image.png

Basically, I am copying data from Azure SQL table to a newly created csv file.

During the process, there is an instance where some data has backlash ( \ ) where it causes columns to be pushed to next and doing something weird to rows.

I am trying to find either an expression or way to do it.

I am not sure what to do here (Escape character) or Encoding.

I am thinking I need to come up with some type of expression..

273454-image.png

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,625 questions
{count} votes

3 answers

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,236 Reputation points
    2023-01-03T17:10:20.033+00:00

    @Anonymous

    Data flow would be the sure bet, as Data Flow is intended for data transformation.

    You would want to use a "Derived Column" transformation. For the relevant columns you would use expression

    replace(myColumn, '\', '')  
    

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

  2. KranthiPakala-MSFT 46,642 Reputation points Microsoft Employee Moderator
    2023-02-27T16:04:26.26+00:00

    Hi there,

    Please use this expression to overcome the error message.

    replace($AlterDescription, '\\', '')
    

    EscapeCharacInDataflowDerivedCol

    Hope this helps.


  3. Avery 0 Reputation points
    2023-06-30T12:05:45.4833333+00:00

    Hi there, we encountered the same issue and fixed it by using double quote both as the quote character and the escape character in the ADF dataset configuration. Please try and see if that solves the problem you're facing

    0 comments No comments

Your answer

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