gpt4 book ai didi

azure - ADF V2 Error the string character '@' at position is not expected

转载 作者:行者123 更新时间:2023-12-01 13:27:24 24 4
gpt4 key购买 nike

这是 MSDN 的双重帖子,但在那里没有得到任何帮助,所以我希望一些专家在这里看到它。

我从在 https://docs.microsoft.com/en-us/azure/data-factory/tutorial-incremental-copy-powershell 找到的例子开始

"name": "SinkDataset",
"properties": {
"type": "AzureBlob",
"typeProperties": {
"folderPath": "adftutorial/incrementalcopy",
"fileName": "@CONCAT('Incremental-', pipeline().RunId, '.txt')",
"format": {
"type": "TextFormat"
}
},

我的代码变成了
"typeProperties": {
"fileName": "S1073_PBI_DAY_JUSTIF_VW.csv",
"folderPath": "@CONCAT('bict2233/data-in/day/', @{dataset().TriggerRunTime})",
"format": {
"type": "TextFormat",
....

但我收到这个错误
Invoke-AzureRmDataFactoryV2Pipeline : HTTP Status Code: BadRequest
Error Code: BadRequest
Error Message: The template validation failed: 'the string character '@' at position '32' is not expected..'.
Request Id: 55664c55-8a20-403b-9fbf-a4c24166b473
Timestamp (Utc):12/14/2017 15:37:59
At C:\ADF\bict2233_A\Powershell\T.ps1:25 char:10
+ $runId = Invoke-AzureRmDataFactoryV2Pipeline -PipelineName "lstgDayJu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Invoke-AzureRmDataFactoryV2Pipeline], ErrorResponseExceptio

知道为什么吗?

谢谢

最佳答案

我确实发现了问题。

"folderPath": "@concat('bict2233/data-in/day/', formatDateTime(dataset().TriggerRunTime,'yyyyMMddHH'))"

应该像这样使用
"folderPath": {
"value": "@concat('bict2233/data-in/day/', formatDateTime(dataset().TriggerRunTime,'yyyyMMddHH'))",
"type": "Expression"
}

关于azure - ADF V2 Error the string character '@' at position is not expected,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47828502/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com