Data Factory Mapping Setting my int in JSON to True false

Debbie Edwards 521 Reputation points
2022-07-07T15:56:59.767+00:00

I have the following in JSON
"TypeId":1

And In data Factory Mapping its coming through as boolean (True flase) in the projection. And it should be an int

I can't find any way to change it to in in the source setting

218649-defaultformat.jpg

But it made no difference. When I flatten in preview I get

218630-flattenpreview.jpg

How do I get past this issue? I need it to be integer not Boolean

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

1 answer

Sort by: Most helpful
  1. KranthiPakala-MSFT 46,642 Reputation points Microsoft Employee Moderator
    2022-07-08T19:44:26.417+00:00

    Hello @Debbie Edwards ,

    Thanks for the question and using MS Q&A platform.

    As per my understanding your json data has a column of type interger value, but you see that as boolean under projection of your source in Data flow. Please correct me if I'm wrong.

    If my understanding is correct correct, and if you would want to consider it as integer rather than a boolean,

    • Then you can use reset schema which would set the boolean value to integer
    • Another thing you can do is to click on overwrite schema option under projection tab of your source.

    Step 1:

    219037-image.png

    Option 1:

    Reset schema:

    219052-image.png

    Option 2:

    Overwrite schema:

    218997-image.png

    And then select integer data type for your column.

    219053-image.png

    Hope this will help. Please let us know if any further queries or if your scenario is different that what I have assumed.
    We look forward to your response.

    Thank you

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

    • 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
    1 person found this answer helpful.

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.