none
Azure blob trigger path value is not taking dynamic value RRS feed

  • Question

  • We are using Azure Capture event(in Java project) to retrieve event from Eventhub to storage container. but In capture event we have chosen blob file path format as below: But dynamic path value is not working as expected.

    {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}

     written as following

    @FunctionName("AzureBlogTriggerFn5")
        public void blobHandler(
                @BlobTrigger(name = "content", path = "uts-blobcontainer-nb-dev/uts-eventhubns/uts-nb-eventhub/{partition}/{yyyy}/{MM}/{dd}/{HH}/{mm}/{ss}/{fileName}", dataType = "binary", connection = "AzureWebJobsStorage") byte[] content,
                @BindingName("fileName") String fileName,
                final ExecutionContext context
        ) throws StorageException, IOException, URISyntaxException, InvalidKeyException, InterruptedException {
            context.getLogger().info("Java Blob trigger function processed a blob. Name: " + fileName + "\n  Size: " + content.length + " Bytes");
    **2019-12-19T15:05:52.576 [Error] Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.DecompressServiceFunctionNB'. System.Private.CoreLib: An item with the same key has already been added. Key: mm.**
    
    Getting the above error,.

    please suggest soon, how to give dynamic path for partitionId, year, month, day,hour,minutes,seconds in blogtrigger in Azure ?


    Friday, December 20, 2019 7:28 AM

All replies

  • Hi Veena D A,

    Thank you for posting here.

    According to your description, your issue is more related to Azure. Therefore, it will be more appropriate to ask your question in Azure Forums

    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework.

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, December 23, 2019 1:40 AM