How to fix nested split issue in Azure data factory Pipeline expression builder?

Zohaib Sheraz Mughal 15 Reputation points
2025-01-07T23:56:02.7266667+00:00

Hi there,

I'm trying to make use of hierarchical namespaces for Azure data lake storage gen2.

When I'm dynamically setting the file structure in the Pipeline expression builder in the ADF, the following error is returned:

Cannot fit unknown into the function parameter string.

The expression is:

@concat(split(item().name,'')[0],'/',split(split(item().name,'')[1],'-')[0],'/',split(split(item().name,'_')[1],'-')[1])

Exp file_name is "customers_2025-01-08.csv"

The expected result/folder structure is:

customers/2025/01

Should there be anything unclear to you, please ask here, I'll willing to clarify as much as possible.

Thanks for your help.

Regards.

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,521 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,100 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Keshavulu Dasari 2,835 Reputation points Microsoft Vendor
    2025-01-10T19:04:22.8833333+00:00

    Hi Zohaib Sheraz Mughal,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue: Trying to fix nested split issue in Azure data factory Pipeline expression builder

    Solution: found a solution using substring, it resolved the problem.


    Please let us know if you have any more questions and we will be glad to assist you further. Thank you!

    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.