in Education by
I've a lookup activity with gets value from a container within a blob. I have a foreach activity which is connected to the lookup activity and under settings it has the value: @activity('LookupMessageType').output.value I've another copy activity which runs within this foreach activity. It copies data from cosmos DB to Azure Data Lake. This is the query in the source dataset: select c.Tag, data.assetTag, data.timestamp, data.jsonVersion, data.messageType, data.speed from c join data in c.data where (data.speed> item().speed_Value) AND (data.timestamp >= '@{formatDateTime(addhours(pipeline().TriggerTime, -1), 'yyyy-MM-ddTHH:mm:ssZ' )}' AND data.timestamp < '@{formatDateTime(pipeline().TriggerTime, 'yyyy-MM-ddTHH:mm:ssZ' )}') I get an error as I run this pipeline: { "errorCode": "2200", "message": "Failure happened on 'Source' side. ErrorCode=UserErrorDocumentDBReadError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=DocumentDb operation failed: Message: {\"errors\":[{\"severity\":\"Error\",\"location\":{\"start\":231,\"end\":235},\"code\":\"SC2005\",\"message\":\"'item' is not a recognized built-in function name.\"}]}\r\nActivityId: *redacted*, documentdb-dotnet-sdk/1.21.1 Host/64-bit MicrosoftWindowsNT/6.2.9200.0.,Source=Microsoft.DataTransfer.ClientLibrary.DocumentDb,''Type=Microsoft.Azure.Documents.BadRequestException,Message=Message: {\"errors\":[{\"severity\":\"Error\",\"location\":{\"start\":231,\"end\":235},\"code\":\"SC2005\",\"message\":\"'item' is not a recognized built-in function name.\"}]}\r\nActivityId: redacted, documentdb-dotnet-sdk/1.21.1 Host/64-bit MicrosoftWindowsNT/6.2.9200.0,Source=Microsoft.Azure.Documents.Client,''Type=System.Runtime.InteropServices.COMException,Message=Exception from HRESULT: 0x800A0B00,Source=,'", "failureType": "UserError", "target": "Copy Data1" } It is saying the item is not a built-in function name. I want to use a value from the foreach activity to query the source. Furthermore, here is my dynamic filepath content @concat('test_', item().speed, '.csv') I get the desired dynamic file structure with this expression if I am using static values in the query like: data.speed> 500 Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
It's an easy one, small mistake from your end, just use this command where (data.speed> @{item().speed_value}) instead of where (data.speed> item().speed_Value)

Related questions

0 votes
    I am trying to use change tracking to copy data incrementally from a SQL Server to an Azure SQL Database. I ... change tracking table? Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    I have a setup in Azure with a bunch of resources combined in a resource group. I want my services to be ... it not impact anything? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I have seen Microsoft Cognitive services such as text analytics and some other services. Here I have gone through ... much about it? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    We have a few databases in Pricing Tier: Basic, S0... like below picture: These databases were created before a ... the Azure portal. Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    Feel free to recommend a better title or changes to my explanation below! I am using Windows Azure Websites ( ... a specific location? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
+1 vote
    When using Azure Resource Manager, you can use a _______________ for deployment, which can build identical environments ... work scenarios such as testing, staging, and production....
asked Oct 20, 2020 by JackTerrance
0 votes
    I am using Team Services on domain visualstudio.com and I need to delete one project, I found out that I ... don't have privileges. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    we are using git in Team Foundation Service, and we are trying to find a way to delete a remote ... /DefaultCollection/_git/Xxxxxx' Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    I've just joined my friend's Team Services account (free for the first 5 users account). If I visit the home ... how to resolve this? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I'm using TFS Preview (Team Foundation Service) with one of my projects with Visual Studio 2012. I'm also ... from Visual Studio. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I have a HDInsight Hadoop cluster (Linux, deployed separately) on Azure VNet (restricting client IPs using NSG). ... Data Factory? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    i have an Angular Factory that gets a single date from the backend of my spring application, and i ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    Flow-based Programming defines applications using the metaphor of a "data factory". (1)True (2)False...
asked Apr 18, 2021 in Technology by JackTerrance
0 votes
    I have a variable, in which is a XML string. In this XML string, I want iterate through a ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    How to solve array problem? $kuponlar = $core->query("SELECT * FROM kupon WHERE kupon_durum = ?", ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 14, 2022 in Education by JackTerrance
...