Failed to convert the value in 'xxxx' property to 'System.String' type in Data Lake Connector

Doreen Cecil 0 Reputation points
2024-05-31T19:42:29.6733333+00:00

Environment: Azure Synapse

I am developing a pipeline that has a lookup to SQL that is passing the values to GetMetaData.

When using @dataset.name of parameter in the dataset, it fails with "Failed to convert the value in name of parameter property to 'System.String' type. I can view the outputs of the lookup activity and it is correct. I can copy the value from the output and manually insert it into the connector and it works. Is there an issue with Microsoft or do I have GetMetaData activity incorrectly configured?

User's image

User's image

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,040 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,969 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Amira Bedhiafi 27,051 Reputation points
    2024-06-01T09:09:28.1+00:00

    This typically occurs when the expected data type does not align with the actual data type of the parameter being used.

    To avoid type conversion errors, try to convert the value to a string within the pipeline expressions. You can use the string() function in Azure Data Factory to treat the value as a string.

    https://stackoverflow.com/questions/73756515/cant-convert-table-value-to-string-in-adf

    0 comments No comments

  2. AnnuKumari-MSFT 33,636 Reputation points Microsoft Employee
    2024-06-06T01:36:55.07+00:00

    Hi Doreen Cecil ,

    Welcome to Microsoft Q&A platform and thanks for posting your query here.

    The expression '@activity('lookup1').output.value' would typically return an array as the output which you are further referring to in Get metadata activity for Filepath parameter.

    Kindly try having a Foreach activity to iterate through the result of lookup and use Getmetadata activity inside foreach that could take the filepath one by one through looping .

    Or, try using a particular value for filepath out of the output json , forexample '@activity('lookup1').output.value[1].<OutputJsonKey>' .

    Kindly consider sharing the output of lookup activity for better help in implementation .

    Hope it helps. Kindly accept the answer if it helped. Thankyou

    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.