file de-duplication not working as expected

Hello,

at the moment we prepare the change from our old CRM system to HubSpot. For that I have to import a lot of notes with attachments into HubSpot. I use the API. Just now I noticed a strange behavior in connection with uploading files. The API-call shall upload a new file unless it exists already in the selected folder. In that case the call shall return the file-ID of the existing file (option “RETURN_EXISTING”). In my test this worked well. But now I have a bunch of files that seems to confuse the API.

Already present in HubSpot is this file:

“lieferschein ABC 20e21ec6-e2dd-4c67-a908-a28e4f5117c7.doc”

Now I try to upload another file:

“lieferschein ABC 4056bb40-2eb3-467e-8a9d-4130aa057f57.doc”

This is obviously a different file but the API is returning the file-ID of the already existing file. Why do I get this result?

Hi @Georg_

Test the API’s behavior by uploading a file with a specifically different name to isolate the issue.

This could be due to the hashing algorithm used for de-duplication, which might be causing the similar filenames (‘lieferschein ABC’) also the file content in addition to generate the same hash value, resulting in a conflict and the return of the existing file ID.

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards