Share via

Make optional parameters in csv dataset Azure Data Factory

Eduard Kudlaiev 46 Reputation points
2021-09-07T17:07:01.783+00:00

Is it possible somehow make the parameters optional?
129910-capture.png

I've tried expression but it is not working.

@if(equals(length(dataset().DirectoryName),0),null,dataset().DirectoryName)

As a workaround, I can use two datasets with a different sets of provided parameters, but I don't want to produce unnesesary simple purpose datasets.

Thank's in advance

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.

0 comments No comments

Answer accepted by question author

ShaikMaheer-MSFT 38,631 Reputation points Microsoft Employee Moderator
2021-09-08T10:56:33.727+00:00

Hi @Eduard Kudlaiev ,

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

Is it possible somehow make the parameters optional?

Unfortunately, it's not possible. Once you have created parameters inside your dataset, the moment you start using that dataset you need to supply some values to it. Or else you will end up with validation errors as shown below.

130218-image.png

Hope this will helpful. Please feel free to let us know if any further queries. Thank you.

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

Please don't forgot to click on accept it as answer button(130175-image.png) wherever the information provided helps you. This can be beneficial to other community members as well.

Was this answer helpful?


0 additional answers

Sort by: Most 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.