Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Dibs 173 posts 857 karma points
    Aug 05, 2020 @ 09:10

    uSync creating duplicate files

    Dear Umbraco Team

    Im using uSync to keep all things great, working well. Its installed and working away in the background : )

    What i notice is sometimes i make a change to a dataType and uSync creates a another file for the dataType with extra characters to differentiate from the original dataType file created when the dataType was originally created.

    Would like to know when this and how this happens ?

    Thanks Dibs

  • Kevin Jump 1769 posts 11367 karma points MVP 4x c-trib
    Aug 05, 2020 @ 10:38
    Kevin Jump


    First you should check its not this issue which was fixed in v8.4.3 of uSync (all v8.x versions of uSync work on all v8 versions of Umbraco)

    How it works

    uSync creates the duplicate files if it thinks the datatype it is saving with a certain name isn't the same as the one it has one disk. (which for datatypes shouldn't really happen that often).

    So when it attempts to save a file it checks for a file on disk with the same name, if it finds one it then checks.

    • if the key in the file matches the one of the item it is saving
    • if the alias of the item it is saving matches the one it is saving

    if either of these is true then the item should save over the existing file and not create a new one.

    So for datatypes (if it working correctly) - you should only ever get the duplicate files if.

    • You had a datatype,
    • you delete it
    • then you create a datatype with the same alias, but slightly different (so case of the alias or it has a - in the name of the alias capitalizes differently)

    In this case we would expect the duplicate file name to kick in.

    If that isn't what is happening and you are on uSync 8.4.3 or above then i think we will have something to fix.

    Update (sorry fix is in 8.4.3 not 8.3 as previously stated.)


  • Dibs 173 posts 857 karma points
    Aug 05, 2020 @ 14:19

    Cheers Kevin

    Yeah it probably is the case of having a datatype and deleting it and then recreating it. I have done this to try and keep my datatype store tidy : (

    Good to know

    i'll will let you know if its something else causing it but i dont think so. i have since created and changed dataTypes and files like you say are overwritten.

    Dibs : )

Please Sign in or register to post replies

Write your reply to: