相关文章推荐
酷酷的电梯  ·  DataFrame 类 ...·  1 周前    · 
酷酷的电梯  ·  YUV 转 RGB 公式中,YUV ...·  9 月前    · 
酷酷的电梯  ·  Seaborn ...·  10 月前    · 
酷酷的电梯  ·  SQL ...·  10 月前    · 
酷酷的电梯  ·  github copilot vscode 使用·  10 月前    · 
酷酷的电梯  ·  Boomi User Community·  10 月前    · 
酷酷的电梯  ·  Flask 如何从 ...·  11 月前    · 
酷酷的电梯  ·  Building an ...·  11 月前    · 
酷酷的电梯  ·  python ...·  11 月前    · 
严肃的皮蛋  ·  Retrieve Original ...·  18 小时前    · 
严肃的围巾  ·  C++内部函数与外部函数 | ...·  18 小时前    · 
性感的绿豆  ·  SQL ...·  18 小时前    · 
完美的充值卡  ·  A Basic AWS Lambda ...·  18 小时前    · 

I want to copy a delimited text in Azure BLOB Storage ( Source ) to a table in Azure Database for MySQL ( Sink ) using Azure Data Factory's Copy Activity.

At the Additional colums of Source tab, I set a dynamic content ( @formatDateTime(convertFromUtc(utcNow(), 'Tokyo Standard Time'), 'yyyy-MM-dd HH:mm:ss.fffffff') ).

When I clicked Preview data , the following error occurred.

  • Error details
  • Error code: FailToResolveParametersInExploratoryController
  • Details
  • The parameters and expression cannot be resolved for schema operations. Error Message: {
    "message": "ErrorCode=InvalidTemplate, ErrorMessage=In the function 'convertFromUtc', the value provided for the time zone id 'Tokyo Standard Time' was not valid. "
    } Activity ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  • Then, I edited Tokyo Standard Time to Asia/Tokyo , data preview worked.
    However, when I run the pipeline with Debug , the following error occurred.

  • Error details
  • Error code: InvalidTemplate
  • Failure type: User configuration issue
  • Details
  • In the function 'convertFromUtc', the value provided for the time zone id 'Asia/Tokyo' was not valid. '.
  • Then, I edited Asia/Tokyo to Tokyo Standard Time , the pipeline worked.

    It seems that Time Zone Index Value in convertFromUtc Function does not match in Preview data and the actual Pipeline run.

    I think that Time Zone Index Value should be matched in preview and actual pipeline rune.

    Do you think about that? Is the current behavior right or valid?

    Hello @Makoto Oda ,

    Thanks for the question and using MS Q&A platform.

    My understanding is that when you are using Tokyo Standard Time in convertFromUtc function in additional columns of your source, while doing data previw you are seeing errors mentioned above. So, to work around, you have changed Tokyo Standard Time to Asia/Tokyo and the data preview worked fine. And when you debug run the pipeline it failed with error mentioned above. So then you have again changed it back to Tokyo Standard Time from Asia/Tokyo and then the debug run was successful. So, you would like to understand what the correct behavior is. Please correct if my understanding is incorrect.

    In order to validate the feedback, I tried to reproduce the issue on my end using the same dynamic expression you have provided above - @formatDateTime(convertFromUtc(utcNow(), 'Tokyo Standard Time'), 'yyyy-MM-dd HH:mm:ss.fffffff') and tried to preview the data, unlike your scenario the preview data was successful without any issues. I also did data preview in mapping
    section and the preview were successful here too. Please see below GIF for additional justification.

    Hence, my pipeline source data preview was successful for Time Zone Tokyo Standard Time .

    I also tried using Asia/Toky in dynamic expression, but the data preview is failing with error the value provided for the time zone id 'Asia/Tokyo' was not valid

    My understanding from these tests is that Tokyo Standard Time is correct one to use and it should work as expected when you do preview data or debug run pipeline. But if you are able to reproduce the issue consistently on your end, then I would recommend filing a support ticket for deeper analysis as we weren't able to reproduce the issue on our end.

    Additional info :
    While working on the issue, I noticed that you are using formatDateTime() function to convert the format. You can avoid using that additional function as you can specify the format type in convertFromUtc() itself. For more info, please refer to this documentation - ADF control flow expression language functions#convertFromUtc

    Hope this info helps. Please let us know if any further queries.

    ------------------------------

  • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
  • Want a reminder to come back and check responses? Here is how to subscribe to a notification
  • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
  • @KranthiPakala-MSFT Thank you for your elaborative checking and answer. Your understanding is perfectly correct. Thank you for additional info about convertFromUtc function's parameter too. I fixed it.

    I don't know that this issue is related, the background operating system in the 'preview' has an effect on this problem?

    According to Azure Functions' Document , Asia Tokyo Standard seems to be Windows' format and Asia/Tokyo seems to be Linux's format.

    I use a Self-hosted integration runtime of Windows OS.

    I think that in my environment, the background operating system in the preview is Linux.
    However, it is possible that the background operating system vary from subscription, region.etc?

    Hello @Makoto Oda ,

    Thanks for your response. I doubt anything to do with your background operation system with regards to this issue except SHIR as it has to be installed only in Windows machine.

    But could you please confirm if you are able to reproduce the issue consistently? If yes, then could you please share your data factory region, so that I will try to analyze around it.

    If the issue is not able to reproduce, then it will be hard to analyze and provide justification about this behavior, and you may have to file a support ticket so that they can involve relevant product owners to further have a look.

    Thank you

    @KranthiPakala-MSFT

    Thank you for your reply. The issue still occurs. My region is Japan East.

    Could you analyze, please?

     
    推荐文章