Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Json Azure ADF-只能使用整数索引选择数组元素_Json_Azure_Parameters_Azure Pipelines_Azure Data Factory - Fatal编程技术网

Json Azure ADF-只能使用整数索引选择数组元素

Json Azure ADF-只能使用整数索引选择数组元素,json,azure,parameters,azure-pipelines,azure-data-factory,Json,Azure,Parameters,Azure Pipelines,Azure Data Factory,您好,我正在尝试从azure数据工厂中的Json数组中选择状态 { "dataRead": 2997, "dataWritten": 2714, "filesWritten": 1, "sourcePeakConnections": 1, "sinkPeakConnections": 1, "rowsRead": 11, "rowsCopied": 11, "copyDuration": 3, "throughput": 0

您好,我正在尝试从azure数据工厂中的Json数组中选择状态

{
    "dataRead": 2997,
    "dataWritten": 2714,
    "filesWritten": 1,
    "sourcePeakConnections": 1,
    "sinkPeakConnections": 1,
    "rowsRead": 11,
    "rowsCopied": 11,
    "copyDuration": 3,
    "throughput": 0.976,
    "errors": [],
    "effectiveIntegrationRuntime": "DefaultIntegrationRuntime (East US)",
    "usedDataIntegrationUnits": 4,
    "billingReference": {
        "activityType": "DataMovement",
        "billableDuration": [
            {
                "meterType": "AzureIR",
                "duration": 0.06666666666666667,
                "unit": "DIUHours"
            }
        ]
    },
    "usedParallelCopies": 1,
    "executionDetails": [
        {
            "source": {
                "type": "AzureSqlDatabase",
                "region": "East US"
            },
            "sink": {
                "type": "AzureBlobStorage",
                "region": "East US"
            },
            "status": "Succeeded",
            "start": "2020-03-19T06:24:39.0666585Z",
            "duration": 3,
            "usedDataIntegrationUnits": 4,
            "usedParallelCopies": 1,
我已尝试选择
@activity('Copy data From CCP TO Blob')。output.executionDetails.status
。它会引发错误:

“只能使用整数索引选择数组元素”


有什么办法解决它吗?

executionDetails是一个数组,您必须设置索引以引用其中的元素

请尝试:

@activity('Copy data From CCP TO Blob').output.executionDetails[0].status

谢谢你的回复

是的,我们必须对列表和字典进行切片和索引

我试过配药了

@活动(“将数据从CCP复制到Blob”).output.executionDetails[0]['status']并正常工作

0,并且状态没有点