Azure Data Factory Trigger Storage Event Error 404 - The Required Blob is Missing

Jonny M 21 Reputation points
2022-03-30T16:13:21.64+00:00

I have setup a storage event Trigger in ADF using this documentation (https://learn.microsoft.com/en-us/azure/data-factory/how-to-create-event-trigger?tabs=data-factory)

To put it simply, I want it to trigger a copy data/file upon a new blob being created (e.g /processed/XXXX-Data.csv) and then copy to another blob folder (/archived/XXXX-Data.csv)

However when I test the trigger I get this error. Both the [STORAGEACCOUNTNAME] & [FOLDER] paths are correct but not the filename.

This works fine if I enter the actual filename in the Trigger Run Parameters itself.

Operation on target Processed to Archived failed: ErrorCode=UserErrorSourceBlobNotExist,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The required Blob is missing. ContainerName: https://[STORAGEACCOUNTNAME].blob.core.windows.net/[FOLDER], path: @triggerBody().fileName.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=Microsoft.WindowsAzure.Storage.StorageException,Message=The remote server returned an error: (404) Not Found.,Source=Microsoft.WindowsAzure.Storage,StorageExtendedMessage=RequestId:93d995c9-101e-004f-

I have tried both @triggerBody().fileName & @Trigger ().outputs.body.fileName yet receiving the same issue. It's like the system does not recognise that it is dynamic content. Am I missing something really simple here?

Thanks

J

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,966 questions
0 comments No comments
{count} votes

Accepted answer
  1. KranthiPakala-MSFT 46,437 Reputation points Microsoft Employee
    2022-04-01T05:56:34.977+00:00

    Hello @Jonny M ,

    Thanks for the question and using MS Q&A platform.

    Just to summarize your problem - you are receiving the above error when you try to manually trigger the pipeline that is attached to a storage event trigger configured to your source blob folder and if you manually provide the file name in trigger parameter value it works fine. Please correct if my understanding is not accurate.

    The above error message is thrown when the required blob name is not received by your pipeline data set. Since you are manually testing the pipeline it won't have a file name which is why you might be getting this error. In order to test your storage event trigger you will have to manually/automatically drop a file in the folder for which your storage event trigger is configured or looking for. When the blob is dropped to your source folder the events get fired and the trigger is executed and the folderPath and fileName as passed from your trigger properties to your pipeline parameters and from there to your dataset parameters and your pipeline executes without issues.

    Please make sure that your event trigger is configured to the correct source folder and the trigger parameters should be as shown below:

    188974-image.png

    Would recommend to double check your trigger configuration as well as your dataset configuration to make sure both are pointing to the same source folder path.

    189051-image.png

    Pipeline Parameters:

    188968-image.png

    Dataset parameters:

    189024-image.png

    189014-image.png

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful