@Luis Chaves Rodriguez
sure, Let's try to address your concerns:
- Correct Event Grid Filters: Based on your setup, you should include the following filters to capture all relevant SFTP operations:
-
SFTPCreate
-
SFTPWrite
-
SFTPCommit
-
SFTPRename
-
SFTPSetStat
These filters should cover the creation, writing, committing, renaming, and setting attributes of files. Ensure that these filters are correctly configured in your Event Grid subscription.
- .filepart Operations: If your filters are not reacting to
.filepart
operations, it might be due to the way these operations are being handled by WinSCP. Even though your client has disabled the .filepart
creation, it's possible that some settings or residual configurations are still causing these files to be created.
- Troubleshooting Steps:
Double-check WinSCP Settings: Ensure that all settings related to temporary file creation are disabled. Sometimes, changes might not take effect immediately, or there might be other settings influencing the behavior.
Event Grid Logs: Check the Event Grid logs to see if the events related to .filepart
files are being captured. This can help identify if the issue is with the event generation or the filtering.
Test with Different SFTP Client: If possible, test the file uploads using a different SFTP client to see if the issue persists. This can help determine if the problem is specific to WinSCP.
- Alternative Solutions:
Azure Logic Apps: Consider using Azure Logic Apps to handle SFTP events more flexibly. Logic Apps can listen to Event Grid events and provide more robust handling of different scenarios.
Azure Functions: Create an Azure Function to listen to Event Grid events and trigger your ADF pipeline programmatically. This approach gives you more control over event handling.
Polling Mechanism: Implement a polling mechanism to check for new files in the SFTP location at regular intervals. This can eliminate the dependency on Event Grid and its filters but may introduce some latency.