English 中文(简体)
检查 如果表中包含一个数值:
原标题:Check If the SQL Table contains a value in Azure Data factory

我需要检查一下,具体数据库表是否包含可变的现有信息数据库。

Currently, I am running one lookup activity (name - GlobalIDs) to query the SQL table and retrieve the data. Output of the lookup activity GlobalIDs is as shown below

{
"count": 30,
"value": [
    {
        "Id": 1200934
    },
    {
        "Id": 1345323
    },
    {
        "Id": 1200932
    },
    {
        "Id": 1200334
    },

我还开展了另一项调查活动(名称——当前数据集),再次列出目前的发展价值。 我在每一栏目中都有座席。 现行IDs,并设定一个可变的<代码>现行ID。

考虑到现在每个网站的缩略语之一,现存ID的输出如下:

{ 
  "name": "currentId",
  "value": "1345323"
}

现在,我想做的是添加一项条件,以检查这一条码是否有效。 http://code>GlobalIDs 查询输出值。

I tried using an if condition with contains as below - @contains(activity( GlobalIDs ).output.value, variables( currentId ))

网上提出的几个建议很少,但如果条件似乎不以这种方式运作,因为情况总是不实,我看不出有任何投入或产出。

问题回答

Looks like GlobalIDs is an array of objects. Each instance has a single property - Id.

我们能够做的是,将这种财产与目前的财产相分离。 页: 1

@contains(activity( GlobalIDs ).output.value, { Id : variables( currentId )})

相应地更新你的状况。

  • 我与你一样,进行了两次考察活动和一次每次活动。

  • Make sure you have unchecked First row only option on both lookup activities.

  • In For-each activity, select Sequential check box. This will make sure the value is going sequentially.

  • 除每项活动外,还增加了可变活动,如果是活动。

- 活动的条件如下:

@contains(activity( GlobalIDs ).output.value,json(concat( {"id":" ,variables( currentId ), "}" )))

这确保了如果一个表格含有价值,它就会产生实际效果。

[如果每项活动都是平行的,那么所有内部活动都将同时进行。 因此,如果条件性活动与预期不相同,则需提供的投入。 这将是什么。 这可能也是造成所有案件错误的原因。]





相关问题
Windows Azure WorkerRole response

I am working on an Azure demo to run Powershell in a worker role. In my web role I add the name of the Powershell script which is to be run to a CloudQueue object. I can print the script output to ...

Windows Azure WebRole stuck in a deployment loop

I ve been struggling with this one for a couple of days now. My current Windows Azure WebRole is stuck in a loop where the status keeps changing between Initializing, Busy, Stopping and Stopped. It ...

Getting a token for Windows Azure

We are looking at Windows Azure, but getting a token appears to be hard now, at least that s what I m seeing in web searches. Anyone tried it or know how to accelerate that process? Any idea how long ...

Developing Azure .Net 4.0 Applications

Presently .Net 4.0 is not supported on Azure. This thread indicates that you will not be able to use .Net 4.0 with VS 2010 until it is supported in the cloud. http://social.msdn.microsoft.com I d ...

.NET 4.0 on Windows Azure?

My google-fu is failing me on this one. As a possible solution to Unit Testing .NET 3.5 projects using MStest in VS2010 (but I ve put this in a seperate question because it s kind of unrelated): Is ...

热门标签