SOLVED

versioning fails when copying

%3CLINGO-SUB%20id%3D%22lingo-sub-1201769%22%20slang%3D%22en-US%22%3Eversioning%20fails%20when%20copying%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1201769%22%20slang%3D%22en-US%22%3E%3CP%3EI%20apologize%20if%20this%20is%20answered%20elsewhere%20but%20I%20couldn't%20find%20it.%20%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20we%20have%20multiple%20libraries%20of%20which%201%20is%20'controlled'%20and%20has%20versioning%20turned%20on.%26nbsp%3B%20I%20am%20trying%20to%20use%20the%20versioning%20to%20maintain%20released%20file%20history.%3C%2FP%3E%3CP%3EWhen%20I%20have%20a%20file%20in%20the%20controlled%20library%20that%20I%20want%20to%20update%20I%20can%20download%20it%2C%20work%20on%20it%20and%20when%20ready%20to%20'release'%20it%20I%20check%20it%20out%20from%20the%20library%2C%20upload%20the%20new%20version%20(overwrite%20the%20existing%20with%20the%20new%20version)%2C%20and%20check%20it%20back%20in.%26nbsp%3B%20That%20seems%20to%20work%20and%20I%20can%20add%20in%20the%20comment%20field%20the%20new%20Rev%20%23%2Fletter%20and%20such.%3C%2FP%3E%3CP%3EBut%20if%20I%20have%20the%20updated%20file%20in%20a%20different%20sharepoint%20library%20(a%20working%20library)%20and%20I%20copy%20it%20to%20the%20controlled%20library%2C%20it%20again%20prompts%20if%20I%20want%20to%20overwrite%2C%20but%20in%20that%20case%20I%20lose%20the%20prior%20history%20of%20the%20controlled%20file%20(it%20is%20completely%20wiped%20out%20and%20only%20the%20new%20copy%20exists).%3C%2FP%3E%3CP%3EI%20know%20that%20'copying'%20a%20file%20only%20copies%20the%20most%20current%20version%20of%20that%20file%2C%20but%20I'm%20not%20sure%20why%20the%202%20different%20methods%20of%20'over-writing'%20a%20new%20version%20of%20a%20controlled%20file%20should%20act%20so%20differently.%26nbsp%3B%20I%20know%20that%20the%20'proper'%20method%20is%20to%20check%20out%20and%20replace%20the%20contents%20of%20the%20file%20and%20check%20in%2C%20but%20that%20doesn't%20work%20so%20well%20with%20pdf%20files%20and%20such.%3C%2FP%3E%3CP%3EALSO%2C%20but%20similar%2C%20when%20I%20upload%20to%20the%20controlled%20library%20the%20file%20new%20or%20changed%20file%20is%20checked%20out%20and%20must%20be%20checked%20in%20(which%20is%20good%20so%20I%20can%20add%20the%20Rev%20info%20and%20such)%2C%20but%20when%20I%20copy%20from%20another%20library%20to%20the%20controlled%20library%20the%20new%20(or%20overwritten)%20file%20is%20NOT%20checked%20out%20and%20hence%20I%20do%20not%20have%20an%20opportunity%20to%20make%20a%20comment%20on%20the%20check%20in%20process.%3C%2FP%3E%3CP%3EAm%20I%20missing%20something%2C%20or%20is%20this%20how%20it%20is%20supposed%20to%20work%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1201769%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%20Versioning%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1202414%22%20slang%3D%22en-US%22%3ERe%3A%20versioning%20fails%20when%20copying%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1202414%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E%26nbsp%3B-%20I%20don't%20have%20an%20answer%2C%20just%20more%20details%20that%20my%20team%20figured%20out%20recently.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELike%20you%20said%2C%20if%20you%20drag%20and%20drop%20a%20file%20into%20a%20library%2C%20you'll%20be%20adding%20a%20version%20(if%20a%20file%20with%20the%20same%20name%20exists).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20if%20you%20use%20the%20Move%20or%20Copy%20feature%20to%20move%2Fcopy%20a%20file%20from%20another%20SharePoint%2FOneDrive%20library%2C%20then%20it'll%20completely%20replace%20the%20existing%20file%2C%20including%20the%20version%20history.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20use%20the%20Move%20or%20Copy%20feature%20when%20there%20is%20no%20existing%20file%20in%20the%20destination%2C%20the%20Move%20feature%20will%20bring%20the%20version%20history%20but%20the%20Copy%20feature%20won't.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBefore%20we%20tested%20all%20of%20this%2C%20we%20assumed%20that%20copying%20a%20file%20would%20simply%20add%20a%20new%20version%20(like%20uploading%20a%20file)%20but%20that's%20not%20the%20case%20and%20it%20feels%20like%20a%20bug%20to%20us%20(poor%20user%20experience%20at%20best).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1203673%22%20slang%3D%22en-US%22%3ERe%3A%20versioning%20fails%20when%20copying%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1203673%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E%26nbsp%3Band%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1273%22%20target%3D%22_blank%22%3E%40Kelly%20Jones%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20interesting%20behavior%20and%20not%20what%20I%20would%20have%20expected.%20I've%20reached%20out%20to%20others%20for%20confirmation%20of%20the%20behavior.%20I%20will%20follow%20up%20when%20I%20hear%20back%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20hope%20this%20helps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENorm%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1204471%22%20slang%3D%22en-US%22%3ERe%3A%20versioning%20fails%20when%20copying%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1204471%22%20slang%3D%22en-US%22%3E%3CP%3ETurns%20out%20this%20behaviour%20is%20by%20design.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EWhen%20you%20use%26nbsp%3B%3CSTRONG%20class%3D%22ocpUI%22%3ECopy%20to%3C%2FSTRONG%3E%26nbsp%3Bwith%20documents%20that%20have%20version%20history%2C%20only%20the%20latest%20version%20is%20copied.%20To%20copy%20earlier%20versions%2C%20you%20need%20to%20restore%20and%20copy%20each%20one.%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMore%20information%20on%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fcopy-files-and-folders-between-onedrive-and-sharepoint-sites-67a6323e-7fd4-4254-99a8-35613492a82f%3Fui%3Den-US%26amp%3Brs%3Den-US%26amp%3Bad%3DUS%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ECopy%20files%20and%20folders%20between%20OneDrive%20and%20SharePoint%20sites%3C%2FA%3E%26nbsp%3Bsite.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20to%20Susan%20Hanley%20for%20pointing%20us%20to%20the%20official%20answer.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20hope%20this%20helps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENorm%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1204536%22%20slang%3D%22en-US%22%3ERe%3A%20versioning%20fails%20when%20copying%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1204536%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F111382%22%20target%3D%22_blank%22%3E%40Norman%20Young%3C%2FA%3Ethank%20you%20for%20looking%20into%20this.%26nbsp%3B%20I%20have%20some%20more%20information%20to%20add%3A%3C%2FP%3E%3CP%3EIf%20you%20map%20a%20network%20drive%20to%20sharepoint%20I%20found%20everything%20appears%20to%20work%20correctly%20from%20there.%20Specifically%3A%3C%2FP%3E%3CP%3Ea)%20copying%20a%20file%20from%20another%20library%20to%20the%20controlled%20library%20(both%20using%20file%20explorer%20windows)%20will%20say%20'no'%20if%20it%20isn't%20checked%20out%20or%20create%20a%20new%20version%20if%20it%20is%20checked%20out%20and%20you%20'over%20write'.%3C%2FP%3E%3CP%3Eb)%20copying%20from%20another%20library%20using%20file%20explorer%20and%20dragging%20to%20edge%20window%20with%20controlled%20library%20will%20also%20create%20a%20new%20version%20when%20you%20over%20write%20a%20checked%20out%20file%3C%2FP%3E%3CP%3Ealso%20interestingly%3A%3C%2FP%3E%3CP%3Ea)%20in%20the%20mapped%20drive%20in%20file%20explorer%20you%20can%20rename%20a%20file%20in%20a%20controlled%20library%20without%20checking%20it%20out%3C%2FP%3E%3CP%3Eb)%20you%20can%20right%20click%20(or%20ctrl%20click)%20to%20copy%20a%20file%20you%20are%20dragging%20(in%20edge%20it%20will%20only%20move%20the%20file%20using%20the%20click%20and%20drag)%3C%2FP%3E%3CP%3Ec)%20a%20down%20side%20to%20using%20the%20mapped%20drive%20in%20file%20explorer%20appears%20to%20be%20the%20inability%20to%20check%20out%2F%20check%20in%20documents%20(although%20you%20are%20prompted%20when%20you%20open%20documents%20and%20such)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1204565%22%20slang%3D%22en-US%22%3ERe%3A%20versioning%20fails%20when%20copying%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1204565%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F111382%22%20target%3D%22_blank%22%3E%40Norman%20Young%3C%2FA%3Esorry%20I%20didn't%20see%20your%20reply%20while%20I%20posting%20my%20updated%20info.%20%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20your%20answer%20does%20NOT%20help.%26nbsp%3B%20I%20know%20that%20behavior%20and%20even%20mentioned%20it%20in%20my%20original%20post.%26nbsp%3B%20The%20behavior%20I%20have%20complaint%20with%20is%20that%20if%20you%20copy%20or%20move%20a%20file%20to%20over%20write%20a%20file%20in%20a%20protected%20library%20it%20doesn't%20save%20the%20previous%20version.%26nbsp%3B%20If%20I%20upload%20from%20my%20computer%20(which%20is%20basically%20what%20I%20guess%20is%20also%20happening%20using%20the%20mapped%20drive%20technique%20I%20mentioned%20just%20a%20few%20mins%20ago)%20it%20overwrites%20the%20file%20but%20adds%20it%20as%20a%20new%20version%20(i.e.%20maintains%20the%20old%20file%20a%20prior%20version).%26nbsp%3B%20Even%2C%20as%20I%20just%20noted%20in%20my%20update%2C%20if%20I%20copy%20or%20move%20a%20file%20between%202%20windows%20using%20the%20mapped%20drive%20in%20file%20explorer%20it%20over%20writes%20the%20file%20as%20a%20new%20version.%26nbsp%3B%20BUT%20if%20you%20use%20the%20copy%20or%20move%20feature%20in%20the%20online%20sharepoint%20to%20over%20write%20a%20file%20with%20a%20new%20version%20it%20completely%20wipes%20out%20the%20prior%20version.%26nbsp%3B%20That%20seems%20to%20defeat%20the%20whole%20controlled%20library%20point.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1204609%22%20slang%3D%22en-US%22%3ERe%3A%20versioning%20fails%20when%20copying%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1204609%22%20slang%3D%22en-US%22%3E%3CP%3ELet%20me%20give%20an%20example%20because%20I%20think%20it%20might%20be%20confusing%3A%3C%2FP%3E%3CP%3EI%20have%20Doc123%20and%20it%20is%20an%20a%20controlled%20library%20with%20versions%201.0%2C%202.0%2C%203.0%2C%204.0%20and%20the%20current%20version%20is%205.0%3C%2FP%3E%3CP%3EIF%20I%20copy%20that%20Doc123%20somewhere%20else%20I%20understand%20that%20it%20will%20ONLY%20copy%20version%205.0%20and%20lose%20all%20the%20prior%20history.%3C%2FP%3E%3CP%3EIF%20I%20check%20out%20Doc123%20and%20upload%20a%20local%20updated%20version%20of%20the%20document%20to%20over%20write%20it%2C%20it%20will%20then%20become%20version%206.0%20and%20I%20can%20then%20check%20it%20back%20in.%3C%2FP%3E%3CP%3EIF%20my%20new%20updated%20version%20of%20the%20document%20is%20in%20a%20shared%20working%20directory%20in%20a%20different%20sharepoint%20library%2C%20then%20if%20I%20copy%20that%20file%20(using%20the%20online%20copy%20to%20feature)%20when%20it%20overwrites%20Doc123%20in%20the%20controlled%20library%20it%20wipes%20out%20all%20previous%20versions%20there%20also%20(i.e.%20not%20only%20does%20it%20not%20keep%20prior%20versions%20from%20the%20source%20file%20you%20are%20copying%20from%20but%20it%20also%20wipes%20out%20all%20prior%20versions%20of%20the%20file%20you%20are%20copying%20it%20TO).%3C%2FP%3E%3CP%3ELet%20me%20explain%20why%20this%20is%20such%20a%20PROBLEM%3A%3C%2FP%3E%3CP%3EThe%20'how%20it%20is%20intended%20to%20work'%20is%20fine%20since%20if%20you%20MOVE%20a%20file%20you%20keep%20all%20version%20history%20and%20if%20you%20COPY%20a%20file%20you%20only%20keep%20the%20most%20recent%20version%20BUT%20the%20original%20still%20has%20the%20full%20version%20history.%26nbsp%3B%20So%20that%20is%20all%20fine.%26nbsp%3B%20But%20if%20I%20have%20a%20pdf%20file%20(let's%20say%20a%20pdf%20drawing%20from%20SolidWorks)%20in%20a%20protected%20controlled%20library%20that%20must%20keep%20all%20past%20versions%26nbsp%3B%20and%20I%20need%20to%20update%20it%20I%20have%20to%20overwrite%20it%20using%20a%20new%20pdf%20created%20from%20SolidWorks.%26nbsp%3B%20That%20works%20if%20I%20upload%20it%20from%20my%20desktop%20but%20gets%20destroyed%20if%20I%20copy%20it%20from%20a%20shared%2Fworking%20library.%26nbsp%3B%20Fine%2C%20I%20know%20to%20download%20the%20file%20then%20upload%20it%20to%20prevent%20loss%2C%20but%20what%20if%20a%20new%20employee%20comes%20in%20and%20doesn't%20know.%26nbsp%3B%20How%20do%20I%20protect%20my%20version%20history.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1204623%22%20slang%3D%22en-US%22%3ERe%3A%20versioning%20fails%20when%20copying%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1204623%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20issue%20was%20not%20clear%20to%20me%20at%20first.%26nbsp%3B%20Now%20that%20I%20follow%2C%20what%20are%20the%20specific%20settings%20do%20you%20have%20on%20in%20the%20%22controlled%20library%22%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENorm%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1204725%22%20slang%3D%22en-US%22%3ERe%3A%20versioning%20fails%20when%20copying%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1204725%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F111382%22%20target%3D%22_blank%22%3E%40Norman%20Young%3C%2FA%3E%26nbsp%3B%20thank%20you.%26nbsp%3B%20In%20the%20controlled%20library%20the%20versioning%20settings%20are%3A%3C%2FP%3E%3CP%3Econtent%20approval%20-%20NO%3C%2FP%3E%3CP%3EDoc%20Vers%20History%20-%20Major%20Versions%20Only%3C%2FP%3E%3CP%3EDraft%20Items%20-%20any%20user%20(but%20not%20applicable%20since%20we%20have%20major%20versions%20only)%3C%2FP%3E%3CP%3ERequire%20Check%20Out%20-%20YES%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eon%20a%26nbsp%3B%20side%20note.%26nbsp%3B%20If%20you%20consider%20the%20%22copy%20to%22%20function%20will%20not%20save%20prior%20versions%20on%20the%20source%20or%20destination%2C%20that%20doesn't%20explain%20the%20%22move%20to%22%20which%20is%20suppose%20to%20save%20prior%20versions.%26nbsp%3B%20That%20said%20I%20have%20no%20idea%20how%20a%20%22move%20to%22%20versioning%20would%20work%20with%20overwritting%20another%20file%20that%20also%20has%20versioning.%26nbsp%3B%20Hence%20I%20would%20expect%20that%20in%20a%20controlled%20versioning%20library%20the%20'move%20to'%20function%20should%20not%20be%20allowed%20to%20overwrite%20another%20file%2C%20but%20the%20%22copy%20to%22%20could%20be%20used%20to%20copy%20the%20most%20recent%20version%20of%20the%20source%20and%20make%20it%20the%20destination's%20new%20version%20and%20keep%20the%20destination%20version%20history.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1207657%22%20slang%3D%22en-US%22%3ERe%3A%20versioning%20fails%20when%20copying%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1207657%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20thought%20a%20custom%20permission%20level%20would%20work%20but%20it%20did%20not.%20I%20could%20not%20find%20a%20site%2C%20document%20library%20or%20versioning%20setting%20that%20would%20help%20either.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20not%20ideal%2C%20but%20you%20can%20create%20a%20trigger%20to%20notify%20you%20when%20a%20file%20is%20deleted%20using%20Power%20Automate.%20This%20will%20provide%20an%20opportunity%20to%20intervene%20and%20restore%20the%20file%20(and%20version%20history)%20from%20the%20site%20recycle%20bin.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20hope%20this%20helps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENorm%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1208068%22%20slang%3D%22en-US%22%3ERe%3A%20versioning%20fails%20when%20copying%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1208068%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F111382%22%20target%3D%22_blank%22%3E%40Norman%20Young%3C%2FA%3E%26nbsp%3B%20like%20you%20said%2C%20it%20is%20not%20ideal%2C%20but%20at%20least%20that%20will%20detect%20the%20problem%20and%20it%20can%20be%20addressed%20as%20opposed%20to%20being%20hidden%20and%20not%20discovered%20until%20it%20is%20too%20late%20(depending%20on%20the%20trash%20policy)%3C%2FP%3E%3CP%3EI%20think%20part%20of%20the%20problem%20is%20that%20the%20warnings%20are%20so%20similar%20or%20identical.%26nbsp%3B%20If%20you%20are%20trained%2Fused%20to%20getting%20the%20%22warning%20this%20will%20overwrite...%22%20dialog%20when%20you%20drag%20and%20drop%2C%20you%20wont%20think%20twice%20about%20that%20same%20warning%20when%20you%20copy%2Fmove%2C%20but%20now%20you%20lost%20your%20version%20history.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Super Contributor

I apologize if this is answered elsewhere but I couldn't find it.  

So we have multiple libraries of which 1 is 'controlled' and has versioning turned on.  I am trying to use the versioning to maintain released file history.

When I have a file in the controlled library that I want to update I can download it, work on it and when ready to 'release' it I check it out from the library, upload the new version (overwrite the existing with the new version), and check it back in.  That seems to work and I can add in the comment field the new Rev #/letter and such.

But if I have the updated file in a different sharepoint library (a working library) and I copy it to the controlled library, it again prompts if I want to overwrite, but in that case I lose the prior history of the controlled file (it is completely wiped out and only the new copy exists).

I know that 'copying' a file only copies the most current version of that file, but I'm not sure why the 2 different methods of 'over-writing' a new version of a controlled file should act so differently.  I know that the 'proper' method is to check out and replace the contents of the file and check in, but that doesn't work so well with pdf files and such.

ALSO, but similar, when I upload to the controlled library the file new or changed file is checked out and must be checked in (which is good so I can add the Rev info and such), but when I copy from another library to the controlled library the new (or overwritten) file is NOT checked out and hence I do not have an opportunity to make a comment on the check in process.

Am I missing something, or is this how it is supposed to work?

10 Replies
Highlighted

Hi - @mtarler - I don't have an answer, just more details that my team figured out recently.

 

Like you said, if you drag and drop a file into a library, you'll be adding a version (if a file with the same name exists).

 

However, if you use the Move or Copy feature to move/copy a file from another SharePoint/OneDrive library, then it'll completely replace the existing file, including the version history.

 

If you use the Move or Copy feature when there is no existing file in the destination, the Move feature will bring the version history but the Copy feature won't.

 

Before we tested all of this, we assumed that copying a file would simply add a new version (like uploading a file) but that's not the case and it feels like a bug to us (poor user experience at best).

Highlighted

Hello @mtarler and @Kelly Jones,

 

This is interesting behavior and not what I would have expected. I've reached out to others for confirmation of the behavior. I will follow up when I hear back

 

I hope this helps.

 

Norm 

Highlighted

Turns out this behaviour is by design.

 

When you use Copy to with documents that have version history, only the latest version is copied. To copy earlier versions, you need to restore and copy each one. 

 

More information on the Copy files and folders between OneDrive and SharePoint sites site.

 

Thanks to Susan Hanley for pointing us to the official answer.

 

I hope this helps.

 

Norm

Highlighted

@Norman Youngthank you for looking into this.  I have some more information to add:

If you map a network drive to sharepoint I found everything appears to work correctly from there. Specifically:

a) copying a file from another library to the controlled library (both using file explorer windows) will say 'no' if it isn't checked out or create a new version if it is checked out and you 'over write'.

b) copying from another library using file explorer and dragging to edge window with controlled library will also create a new version when you over write a checked out file

also interestingly:

a) in the mapped drive in file explorer you can rename a file in a controlled library without checking it out

b) you can right click (or ctrl click) to copy a file you are dragging (in edge it will only move the file using the click and drag)

c) a down side to using the mapped drive in file explorer appears to be the inability to check out/ check in documents (although you are prompted when you open documents and such)

Highlighted

@Norman Youngsorry I didn't see your reply while I posting my updated info.  

But your answer does NOT help.  I know that behavior and even mentioned it in my original post.  The behavior I have complaint with is that if you copy or move a file to over write a file in a protected library it doesn't save the previous version.  If I upload from my computer (which is basically what I guess is also happening using the mapped drive technique I mentioned just a few mins ago) it overwrites the file but adds it as a new version (i.e. maintains the old file a prior version).  Even, as I just noted in my update, if I copy or move a file between 2 windows using the mapped drive in file explorer it over writes the file as a new version.  BUT if you use the copy or move feature in the online sharepoint to over write a file with a new version it completely wipes out the prior version.  That seems to defeat the whole controlled library point.

Highlighted

Let me give an example because I think it might be confusing:

I have Doc123 and it is an a controlled library with versions 1.0, 2.0, 3.0, 4.0 and the current version is 5.0

IF I copy that Doc123 somewhere else I understand that it will ONLY copy version 5.0 and lose all the prior history.

IF I check out Doc123 and upload a local updated version of the document to over write it, it will then become version 6.0 and I can then check it back in.

IF my new updated version of the document is in a shared working directory in a different sharepoint library, then if I copy that file (using the online copy to feature) when it overwrites Doc123 in the controlled library it wipes out all previous versions there also (i.e. not only does it not keep prior versions from the source file you are copying from but it also wipes out all prior versions of the file you are copying it TO).

Let me explain why this is such a PROBLEM:

The 'how it is intended to work' is fine since if you MOVE a file you keep all version history and if you COPY a file you only keep the most recent version BUT the original still has the full version history.  So that is all fine.  But if I have a pdf file (let's say a pdf drawing from SolidWorks) in a protected controlled library that must keep all past versions  and I need to update it I have to overwrite it using a new pdf created from SolidWorks.  That works if I upload it from my desktop but gets destroyed if I copy it from a shared/working library.  Fine, I know to download the file then upload it to prevent loss, but what if a new employee comes in and doesn't know.  How do I protect my version history.

Highlighted

Hi @mtarler,

 

The issue was not clear to me at first.  Now that I follow, what are the specific settings do you have on in the "controlled library"?

 

Norm

 

 

Highlighted

@Norman Young  thank you.  In the controlled library the versioning settings are:

content approval - NO

Doc Vers History - Major Versions Only

Draft Items - any user (but not applicable since we have major versions only)

Require Check Out - YES

 

on a  side note.  If you consider the "copy to" function will not save prior versions on the source or destination, that doesn't explain the "move to" which is suppose to save prior versions.  That said I have no idea how a "move to" versioning would work with overwritting another file that also has versioning.  Hence I would expect that in a controlled versioning library the 'move to' function should not be allowed to overwrite another file, but the "copy to" could be used to copy the most recent version of the source and make it the destination's new version and keep the destination version history.

 

 

Highlighted
Solution

Hi @mtarler,

 

I thought a custom permission level would work but it did not. I could not find a site, document library or versioning setting that would help either.

 

This is not ideal, but you can create a trigger to notify you when a file is deleted using Power Automate. This will provide an opportunity to intervene and restore the file (and version history) from the site recycle bin. 

 

I hope this helps.

 

Norm

Highlighted

@Norman Young  like you said, it is not ideal, but at least that will detect the problem and it can be addressed as opposed to being hidden and not discovered until it is too late (depending on the trash policy)

I think part of the problem is that the warnings are so similar or identical.  If you are trained/used to getting the "warning this will overwrite..." dialog when you drag and drop, you wont think twice about that same warning when you copy/move, but now you lost your version history.