How to resolve invalid property name error in ADF copy activity?

Mansi Yadav 40 Reputation points
2024-05-19T06:23:54.9633333+00:00

ErrorCode=AdlsGen2OperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=ADLS Gen2 operation failed for: Operation returned an invalid status code 'BadRequest'. Account: 'rmsdatalakestracc1mqa'. FileSystem: 'rmsadlscontainer'. Path: 'sharepoint/documents/RMS-MMY/ITBS-Apps/Unique User Experiences – Leading US Based Credit.pdf'. ErrorCode: 'InvalidPropertyName'. Message: 'The property name contains invalid characters.'. RequestId: '71491bd1-201f-0048-74c2-88e256000000'. TimeStamp: 'Sun, 07 Apr 2024 08:05:53 GMT'..,Source=Microsoft.DataTransfer.ClientLibrary,''Type=Microsoft.Azure.Storage.Data.Models.ErrorSchemaException,Message=Operation returned an invalid status code 'BadRequest',Source=Microsoft.DataTransfer.ClientLibrary,'

I'm getting above error in copy data activity in azure data factory. I tried to rename the file name also by removing spaces and - but still getting the same error. In copydata activity I'm copying the file with some metadata associated with it like documentName, last modified date, createdbyUser, etc. It's copying the file but without metadata. Please help me to resolve this issue.

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

1 answer

Sort by: Most helpful
  1. Mansi Yadav 40 Reputation points
    2024-05-22T01:25:40.66+00:00

    Using fault tolerance will add extra cost?

    Basically I want to understand why I'm getting this error, filename that I'm copying with the metadata doesn't include any special character :-

    Unique User Experiences – Leading US Based Credit.pdf

    I'm storing weburl of the file, file name, modified date, created by in the metadata. And I tried to remove special characters ', _, @, etc. but I was still getting the same.

    While copying, in the dataset I am passing file name also in the path and it's copying the file but it's giving error for metadata, I have not tried to change the filename, will try that also.

    Please explain this with an example and exactly what expression I can use to remove such characters and where I have to add for example in the data set path, filename metadata or both.

    0 comments No comments