I am facing 'Failed to import source schema. The function convertTimeZone is currently not supported for schema operations.' error in copy activity pipeline in synapse .

Sebika Pradhan 0 Reputation points
2025-04-17T09:23:43.1266667+00:00

Hello,

I am facing 'Failed to import source schema. The function convertTimeZone is currently not supported for schema operations.' error in copy activity pipeline in synapse . Can you please Help

Error

I am adding an additional column in source tab of copy activity at source as Dynamic Column

Extract_Timestamp =

@convertTimeZone(utcNow(), 'UTC', 'Romance Standard Time', 'yyyy.MM.dd HH-mm-ss')

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,330 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Venkat Reddy Navari 1,780 Reputation points Microsoft External Staff Moderator
    2025-04-17T10:54:48.93+00:00

    Hi @Sebika Pradhan

    Failed to import source schema. The function convertTimeZone is currently not supported for schema operations.

    occurs because the convertTimeZone() function is not supported during schema inference (i.e., design time) in Azure Synapse pipelines, particularly when used in the "Additional columns" section of the Copy Activity source.

    While this expression is valid and works at runtime:

    @convertTimeZone(utcNow(), 'UTC', 'Romance Standard Time', 'yyyy.MM.dd HH-mm-ss')
    

    the schema import tries to evaluate the expression during pipeline validation, and unfortunately, convertTimeZone() is not supported at that stage — hence the schema import fails.

    Recommended Solutions: Here are some ways to overcome this challenge

    Use @utcNow() Instead: If you don’t need time zone conversion, you can simply use:

    @utcNow()
    

    Move the Timestamp Logic Downstream:

    • Remove the Dynamic Column: Eliminate the timestamp column from the Copy Activity's source.
    • Add the Timestamp Column Later: You can do this in a Data Flow using a Derived Column transformation. For example, you can create a new column in the Data Flow that applies the convertTimeZone() function after the data has been copied.
    • Populate the Timestamp During Sink Mapping: Alternatively, you can set the timestamp during the Sink mapping or use a Set Variable activity to store the timestamp.

    For more information on supported functions and how to work with Data Flows, you can refer to the Azure Synapse Analytics documentation https://learn.microsoft.com/en-us/azure/synapse-analytics/. I hope this information helps. Please do let us know if you have any further queries.

    Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.


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.