Unable to Read Input Schema in Sink settings tab in Data Flow in Azure Data Factory

Krishnamohan Nadimpalli 406 Reputation points
2022-04-26T05:41:11.927+00:00

I have a source, derived column , Sink transformation in my data flow.

Derived Column transformation , I am getting some Year and Month from Source.

But I cannot see these(Year and month) column names in Sink settings tab when using file name option as pattern. But these column names are available in Optimize Tab of Sink.

I want file names as fact_combined_pnl_$Year_$Month in the $Year/$Month folder. Please check following screenshots

Attaching Derived Column Settings, Sink Settings and Expression Builder, Sink Optimize

Please suggest
196443-derived-col-settings.png196444-sink-settings.png196428-exp-builder-settings-sink.png196451-sink-optimize.png

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

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,556 Reputation points Microsoft Employee Moderator
    2022-04-27T09:15:27.647+00:00

    Hi @Krishnamohan Nadimpalli ,

    Thank you for posting query in Microsoft Q&A Platform.

    As per my understanding, you want to write expression for filename. But not able to use column names inside expression. Please correct me If I am wrong.

    While writing expressions for file names we cannot use column names there. We can use parameters there. So we should have our desired values in to parameters and use them in to file names.

    Please check below screen shots which gives better idea.
    196817-image.png

    196914-image.png

    Hence, please consider having your year and month values in to dataflow parameters.

    Also, you may consider using cache lookups. Please check this video to understand cache lookups and cache sinks and see if that helps. Thank you.

    Hope this helps. Please let us know if any further queries.

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

    Please consider hitting Accept Answer button. Accepted answers help community as well.

    1 person found this answer helpful.

Your answer

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