Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
how to trigger the activator when file created in a specific container and with specific folder in azure blob storage?
Filter conditions is not works as we expect, it still triggers when file uploaded in other containers with the same storage account,
but my requirement is to trigger with my specified container and specific folder and also not recursively!!!
Screen shot that i have created with only blob created
i dropped the file into archive folder, but as per our filter rule it should not run unfortunately it rann..
output i got from Activator subject: /blobServices/default/containers/fabric-activator-test/blobs/archive/xyz.parquet
And it is also get triggered if i drop a file from another container and the path is : /blobServices/default/containers/test-gm-dev/blobs/xyzfile.parquet
I really surpraised with this filter, hy why you are not filtering...
Hi @Gowthamdas,
Thank you for reaching out to the Microsoft Fabric Forum Community.
If you want to trigger Data Activator only when a file is uploaded directly to the root of a specific container, and not from subfolders or other containers, your current filter setup is almost correct. The main issue is that Azure Event Grid filters like StringBeginsWith or StringNotContains only do basic substring checks, not actual path or folder-based filtering. This is why uploads from subfolders or different containers are still triggering events.
To make the triggers more precise, try these settings:
Since Event Grid can't dynamically exclude all folders, the most effective approach is to add filtering logic within the Data Activator rule or use an Eventstream transformation. You can extract the subject field and set up logic to include only events from the root of your container and exclude specific folder paths as needed.
Below is the link for your reference:
Add Azure Blob Storage event source to an eventstream - Microsoft Fabric | Microsoft Learn
Hope this helps.
Thank You.
Also tried with yours technique, still triggers for every thing inside the 'act' sub folder and also trigger with other container☹️
can some one try realtime test and let me know if all goes well...
@burakkaragoz I appreciate your immediate response,
But i also tried using this, still if i drop file in another container it will begin to run
For Advanced filters, use:
Exact use case: Like i want to drop file inside the container, not with specific folder
Hi @Gowthamdas ,
Ah, I see the issue now! You want to trigger only when files are dropped directly in the container root, not in any specific folder.
Try this exact filter:
Key: subject Operator: String begins with
Value: /blobServices/default/containers/YOUR_CONTAINER_NAME/blobs/
AND add a second filter to exclude subfolders:
Key: subject Operator: String does not contain Value: /blobs/*/
This way it will trigger for files like:
But NOT for:
Alternative approach - use exact path matching: Instead of "String begins with", try "String matches pattern" with: /blobServices/default/containers/YOUR_CONTAINER_NAME/blobs/[!\/]*
This pattern excludes any files that have additional forward slashes (subfolders).
The key is making sure you're filtering out both other containers AND subfolders within your target container. Try the dual filter approach first - it's usually more reliable.
Hi @Gowthamdas ,
Looking at your screenshot, the issue is with your Advanced filters configuration. The current filter pattern you're using isn't specific enough and may be causing triggers from other containers.
Here's the correct filter pattern for your specific container and folder:
For Advanced filters, use:
Example based on your screenshot:
/blobServices/default/containers/fabric-activator-test/blobs/your-specific-folder/
Important notes:
Alternative approach using multiple filters: If you need more control, add multiple string filters:
Double-check these settings:
The key is being very specific with the path structure rather than using wildcards that can match unintended locations.
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
This response was assisted by AI for translation and formatting purposes.
User | Count |
---|---|
24 | |
17 | |
6 | |
5 | |
2 |
User | Count |
---|---|
49 | |
43 | |
18 | |
6 | |
5 |