When automatically saving attachments from email into OneDrive, using the Power Automate Create File function, the new file will automatically overwrite the existing file. Create File does not append a serial number or otherwise handle the duplication in a lossless way. I don't see any easy way to automatically assign a unique name to new files, so that the existing ones are not overwritten.
I assume one could get the names of all the files in the folder (hundreds? thousands?), check the list for duplicate file names, and if necessary add a serial number to generate a unique name. That's a lot more Power Automate code than I am prepared to learn, write, and debug.
One can reduce the problem somewhat by prepending to the filename the time the file was received, but that results in long clunky file names, and does not successfully handle multiple attachments from the same email that just happen to have the same file name.
Is there any solution to this issue? It seems very limiting to the general usefulness of the email-to-OneDrive flow.