I get Request headers must contain only ASCII characters when I use Data preview in azure data flow

Tony Johansson 40 Reputation points
2023-04-11T20:38:20.0033333+00:00

Hello! My json file is much bigger but to try to find the solution to my problem I have removed a lot down to this simple json file. I have written this file in notepad++
{"id":"1"} but as soon as use Data preview in azure Data flow I get this error
Request headers must contain only ASCII characters. - RunId: 34f9d43e-b1c6-4e14-bda3-2a120a401653 I can't understand this error. I have tried to goole and find some hints but I have no success. Many thanks in advance

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

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,031 Reputation points Microsoft Employee
    2023-04-12T19:33:20.9966667+00:00

    Hello Tony Johansson, Welcome to Microsoft Q&A platform. I tried to reproduce the error from my end by following the steps you have mentioned. But I was able to preview the data. The error message "Request headers must contain only ASCII characters" indicates that the request headers in your JSON file contain non-ASCII characters. To resolve this issue, you can try encoding your JSON file in ASCII format. In the Notepad++, try to convert the encoding of your file to ASCII. To do this, open your JSON file in Notepad++, click on the encoding and select "Convert to UTF-8" and see if it helps? User's image

    User's image

    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.