Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Rutuja1997
Frequent Visitor

Expression of type: 'String' does not match the field: 'folderPath'. Expected type is 'object'.

Hi Microsoft folks,

I am building a pipeline to copy the latest folder to the lakehouse from SFTP server.It could copy the folder when i entered the folder path manually but couldn't when I passed the folderpath dynamically using the concat function.Hardcoded path for example is '/Directory_name/folderName' .Now i want to dynamically pass the folderName from the the previous filter activity output which is filtering the latest folder.In the pipeline expression builder I wrote '

@concat('Directory_name/',activity('Filter1').output.Value[0].name).But getting "Expression of type: 'String' does not match the field: 'folderPath'. Expected type is 'object'." error.
I need this logic to build incremental pipeline to get the latest folder in the lakehous.
This is the filter activity payload {
"ItemsCount": 6,
"FilteredItemsCount": 1,
"Value": [
{
"name": "New_Extract_2*****64_1*************",
"type": "Folder"
}
]
}
 Rutuja1997_0-1747927933692.png

 

2 ACCEPTED SOLUTIONS

Hi @Rutuja1997,
Based on the error " Double quoted string is not allowed"
Expression of type: 'String' does not match the field: 'folderPath'. Expected type is 'object.

can you try the below path :

{
  "folderPath": @concat('Directory_name/', activity('Filter1').output.Value[0].name)
}


 

If this post was helpful, please consider marking Accept as solution to assist other members in finding it more easily.

View solution in original post

Rutuja1997
Frequent Visitor

Hi Fabric Community,

Apologies for late feedback.The issue was solved by using set variable activity.I stored the concatenated string in set variable and passed that in the folder path.That way i could solve that problem.

Rutuja1997_1-1749746284789.png

 

 

 

View solution in original post

7 REPLIES 7
Rutuja1997
Frequent Visitor

Hi Fabric Community,

Apologies for late feedback.The issue was solved by using set variable activity.I stored the concatenated string in set variable and passed that in the folder path.That way i could solve that problem.

Rutuja1997_1-1749746284789.png

 

 

 

nilendraFabric
Super User
Super User

Try this

 

{
"folderPath": "@concat('Directory_name/', activity('Filter1').output.Value[0].name)"
}

Hi Nilendra, Thank you for replying promptly.I tried above suggestion it didn't work.It is showing 

Rutuja1997_0-1747983942892.png

I tried this way as well didn't work 

Rutuja1997_1-1747984090279.png

 

Hi @Rutuja1997,
Based on the error " Double quoted string is not allowed"
Expression of type: 'String' does not match the field: 'folderPath'. Expected type is 'object.

can you try the below path :

{
  "folderPath": @concat('Directory_name/', activity('Filter1').output.Value[0].name)
}


 

If this post was helpful, please consider marking Accept as solution to assist other members in finding it more easily.

Hi @Rutuja1997,

we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.

If the response addressed by the community member for  your query, please mark it as Accept Answer and click Yes if you found it helpful.

 

Thank You.

 

Hi @Rutuja1997 ,

If the information is helpful, please accept the answer by clicking the "Upvote" and "Accept Answer" on the post. If you are still facing any issue, please let us know in the comments. We are glad to help you.

 

We value your feedback, and it will help us to assist others who might have a similar query. Thank you for your contribution in enhancing Microsoft Fabric Community Forum.

Hi @Rutuja1997 ,

Just checking in regarding the issue you reported with the error "Double quoted string is not allowed" and the mismatched field type for 'folderPath'. As suggested earlier,

If this resolves your problem, kindly mark the answer as Accepted to help others in the community. If you're still encountering issues, feel free to update the thread we're here to help!

 

Thank you for contributing to the Microsoft Fabric Community.




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.