Error DF-EXPR-010 in ADF data flow, Column 'body' used in expression is unavailable or invalid

Altobelli, Marie K 0 Reputation points
2025-02-20T16:00:50.67+00:00

I need to take the results of a REST API query and transform them to upsert them into a table.

The source returns this JSON:

image

The Projection step ALWAYS puts the content in context of a body field. I can't figure out how to feed in the expected schema like I might in Power Automate.image

Any step I put in after the source (flatten, derive, etc) fails with error DF-EXPR-010 stating that the column 'body' is unavailable. There is no body column. I'm at a loss. Help?

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

2 answers

Sort by: Most helpful
  1. Altobelli, Marie K 0 Reputation points
    2025-02-20T16:17:09.1866667+00:00

    Apologies, wrong REST API source image, it should be:User's image

    still, no body column.

    0 comments No comments

  2. phemanth 14,560 Reputation points Microsoft External Staff
    2025-02-20T19:03:54.5466667+00:00

    @Altobelli, Marie K

    Thanks for reaching out to Microsoft Q&A.

    I have reproduced from my end i can see all columns of my Json reflecting in derived column

    User's image

    User's image

    User's image

    User's image

    please correct me if I missed any thing

    could you please provide more details about source settings with screenshot and pipeline configuration

    meanwhile please check the below steps and confirm whether it helps.

    • Go to the Projection tab and define the complex type for the body column.
    • Expand body and map the fields (e.g., result, ActivityStatusCode, CalendarId, etc.).
    • Instead of referencing body.result directly, use:
    • This helps ADF recognize the structure correctly.
    • Since result is an array, use a Flatten transformation to extract its values before applying any derived columns or expressions.
    • After importing the projection, check if the expected fields are accessible and correctly formatted.

    I hope this information helps. Please do let us know if you have any further queries.

    Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.

    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.