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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.