No escape character not working as expected

Manohar Punna 1 Reputation point
2020-10-01T01:11:03.447+00:00

I am using a copy data activity to copy data from ADLS into Snowflake. My source data is a gzip csv file which is pipe delimted. One of the field has the following value ending with a "\". The pipe delimiter after the field is ignored making my pipeline to fail. I have selected no escape character and also tried to provide an unused character (^). But the copy activity still ignores the setting and escapes the delimiter.

COMPANY NAME\

I cannot change my source file format. Is there a way to skip the "\" as escape character? Why is ADF not respecting the setting of no escape character?

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

2 answers

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,041 Reputation points
    2020-10-14T20:25:54.92+00:00

    Hello @Manohar Punna and thank you for bringing this to our attention.
    Thank you anonymous user for the assistance. Please continue to help the community.

    I believe this is a bug in the preview data feature in the UI, but not in the actual copy. The actual copy respects your escape character choice. See below.

    When previewing I reproduced your issue.
    32365-image.png

    Then I tried a debug run anyway, copying with the above source settings to a sink of blob csv. Below you see the results.
    32316-image.png

    Please let me know if this helped. I will raise a bug report internally. Thank you for showing this issue so it can be fixed.

    1 person found this answer helpful.

  2. Jiayi Yang 6 Reputation points Microsoft Employee
    2020-10-06T01:05:49.953+00:00

    @Manohar Punna Do you want "COMPANY NAME \" to be "COMPANY NAME"? Are you trying to capture with the "\" after the COMPANY NAME \ hidden, as in the attached capture?![30244-%E3%82%AD%E3%83%A3%E3%83%95%E3%83%81%E3%83%A3.png][1] [1]: /api/attachments/30244-キャフチャ.png?platform=QnA