Hello @adriana_malea - The error probably isn't caused by the Insert()
statement in your foreach()
loop. This appears to be a known issue around the behavior of CloudTable.CreateIfNotExists()
where it tries to create the table first, and if there's an existing table, it'll return the 409 which is a “The specified entity already exists” error... as opposed to checking for an existing table first and attempting to create it only if there isn't one.
Here're a couple of resources:
- https://github.com/Azure/azure-sdk-for-net/issues/28084
- Helpful blog post: https://brewgrammer.com/Beware-Of-CreateIfNotExists/
It looks like you're using Durable Functions. Are you calling the CloudTable.CreateIfNotExists()
somewhere?
All in all, the error appears to be harmless but makes a lot of noise in telemetries and is expected to be fixed in the next SDK release.
I hope this is helpful, if any further questions, just let me know.
-------------------------------------------------------------------------------
Please consider contributing to MS Q&A by marking 'Accepted Answer' and ‘Upvoting’ as applicable.