SOLVED
Home

Microsoft Flow - Copy files from PC to SharePoint - Error

%3CLINGO-SUB%20id%3D%22lingo-sub-72133%22%20slang%3D%22en-US%22%3EMicrosoft%20Flow%20-%20Copy%20files%20from%20PC%20to%20SharePoint%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-72133%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Experts%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20using%20the%20template%2C%20%22%3CA%20href%3D%22https%3A%2F%2Fflow.microsoft.com%2Fen-us%2Fgalleries%2Fpublic%2Ftemplates%2Fd2f34ae0dfa011e6b070f5b13cd24608%2Fcopy-new-files-from-your-pc-to-sharepoint%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ECopy%20New%20Files%20from%20your%20PC%20to%20SharePoint%3C%2FA%3E%22%20for%20copying%20any%20new%20files%20which%20are%20added%20to%20my%20files%20system.%20We%20cannot%20rely%20on%20OneDrive%20for%20business%20since%20we%20want%20to%20make%20the%20process%20run%20without%20an%20explicit%20login%20to%20the%20machine.%3C%2FP%3E%3CP%3EPart%20of%20process%2C%20we%20had%20done%20following%20steps%20as%20part%20of%20the%20process.%3C%2FP%3E%3CUL%3E%3CLI%3EInstalled%20Data%20Dateway%20(%3CA%20href%3D%22https%3A%2F%2Fflow.microsoft.com%2Fen-us%2Fdocumentation%2Fgateway-reference%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fflow.microsoft.com%2Fen-us%2Fdocumentation%2Fgateway-reference%2F%3C%2FA%3E)%3C%2FLI%3E%3CLI%3EConfigured%20in%20one%20of%20the%20On-premises%20server%20where%20we%20want%20the%20files%20to%20copied%20to%20SharePoint%20Online%3C%2FLI%3E%3CLI%3EConfiguration%20was%20successfull%20and%20added%20the%20connection%20in%20Flow%20and%20saved%20the%20flow.%3C%2FLI%3E%3CLI%3EAddition%20of%20new%20files%20are%20getting%20identified%20by%20Flow.%3C%2FLI%3E%3CLI%3EBut%20we%20are%20getting%20an%20error%20%22Bad%20Request%22.%3C%2FLI%3E%3CLI%3EWhen%20we%20see%20the%20output%2C%20we%20are%20getting%20Status%20400%20and%20error%20message%20as%20%22%3CSPAN%3EA%20value%20must%20be%20provided%20for%20folder%20identifier.%3C%2FSPAN%3E%22%3C%2FLI%3E%3CLI%3EWe%20are%20not%20sure%20where%20are%20we%20going%20wrong.%3C%2FLI%3E%3CLI%3E%3CEM%3EAdding%20the%20screenshots%20as%20well%20for%20the%20reference%3C%2FEM%3E.%3C%2FLI%3E%3C%2FUL%3E%3CP%3EAny%20leads%20would%20highly%20be%20appreicated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%2C%3C%2FP%3E%3CP%3EArjun.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F14924iE172A81753E2C442%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Flow%20-%20Error.jpg%22%20title%3D%22Flow%20-%20Error.jpg%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EGeneral%20Error%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20935px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F14925iC7B5AB4BFF33CCDA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Flow%20-%20Error_2.jpg%22%20title%3D%22Flow%20-%20Error_2.jpg%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EOutput%20from%20REST%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-72133%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-395347%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20-%20Copy%20files%20from%20PC%20to%20SharePoint%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-395347%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314039%22%20target%3D%22_blank%22%3E%40Rema_Gopinathan%3C%2FA%3E%26nbsp%3Bnot%20in%20a%20single%20action%20but%20you%20could%20recursively%20do%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-394515%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20-%20Copy%20files%20from%20PC%20to%20SharePoint%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-394515%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24276%22%20target%3D%22_blank%22%3E%40Stephen%20Siciliano%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHi%20Stephen%3CBR%20%2F%3E%3CBR%20%2F%3EDoes%20the%20File%20system%20connector%20allow%20nested%20folder%20and%20files%20to%20be%20copied%20to%20SharePoint%3F%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%3CBR%20%2F%3ERema%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-92024%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20-%20Copy%20files%20from%20PC%20to%20SharePoint%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-92024%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24276%22%20target%3D%22_blank%22%3E%40Stephen%20Siciliano%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20seems%20to%20be%20working%20this%20morning.%20Can%20now%20use%20output%20from%20SQL%20table%26nbsp%3B%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-91587%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20-%20Copy%20files%20from%20PC%20to%20SharePoint%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-91587%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EHi%20Stephen%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20see%20this%20functionality%20was%20released%2C%20and%20the%20substring%20command%20has%20worked%20for%20me%20to%20look%20up%20the%20SQL%20table%20however%20the%20table%20columns%20aren%E2%80%99t%20being%20listed%20as%20dynamic%20content%20on%20the%20next%20steps%20of%20the%20Flow.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EPreviously%20when%20the%20get%20rows%20command%20was%20used%20the%20next%20item%20is%20'Apply%20to%20Each'%20then%20select%20%22values%22%20which%20in%20the%20next%20action%20step%20allowed%20SQL%20table%20columns%20to%20be%20selected.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EHas%20there%20been%20a%20change%20in%20how%20to%20use%20the%20output%20from%20SQL%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAndrew%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E1st%20Image%20shows%20current%20flow%20and%20no%20option%20to%20use%20data%20returned%20from%20SQL%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F17944i95AFA18802829073%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22SQL1.PNG%22%20title%3D%22SQL1.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2nd%20Image%20shows%20existing%20flow%20with%20SQL%20table%20items%20used%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20592px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F17945i2A131BE1B2F8CA87%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22SQL2.PNG%22%20title%3D%22SQL2.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-87884%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20-%20Copy%20files%20from%20PC%20to%20SharePoint%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-87884%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Stephen%2C%20I%20will%20keep%20a%20look%20out%20for%20the%20updates.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-87864%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20-%20Copy%20files%20from%20PC%20to%20SharePoint%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-87864%22%20slang%3D%22en-US%22%3EWe%20are%20actually%20just%20about%20to%20release%20some%20string%20parsing%20capabilities%20(likely%20before%20the%20end%20of%20next%20week).%20In%20this%20case%20you'll%20have%20a%20couple%20options%3A%20split%20on%20the%20'_'%20character%20and%20then%20take%20the%202%20item%20from%20that%20array%2C%20or%2C%20you%20could%20take%20a%20substring%20of%20characters%2016%20through%2025.%20It%20just%20depends%20on%20how%20flexible%20the%20file%20name%20is.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-87837%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20-%20Copy%20files%20from%20PC%20to%20SharePoint%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-87837%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Stephen%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20has%20worked%20perfectly%20thank%20you%20-%20easy%20when%20you%20know%20how.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20may%20be%20able%20to%20help%20with%20something%20else%20related%20to%20this%20Flow.%26nbsp%3B%20Is%20it%20possible%20to%20strip%20an%20element%20out%20of%20the%20file%20name%20to%20be%20used%20in%20the%20flow%20either%20by%20going%20back%20to%20metadata%20or%20used%20to%20lookup%20a%20SQL%20table.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESample%20file%20name%20-%20%22%3CSPAN%3EDeliveryTicket_PLU0234176_9951_120778.pdf%3C%2FSPAN%3E%22%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20segment%20PLU0234176%20relates%20to%20an%20order%20number%20that%20we%20could%20then%20use%20to%20lookup%20information%20related%20to%20that%20order.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%26nbsp%3B%3C%2FP%3E%3CP%3EAndrew%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-87736%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20-%20Copy%20files%20from%20PC%20to%20SharePoint%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-87736%22%20slang%3D%22en-US%22%3E%3CP%3EI%20want%20to%20apologize%20for%20the%20confusion%20here.%20We%20had%20an%20update%20to%20the%20File%20System%20connector%20that%20has%20the%20trigger%20only%20return%20back%20the%20metadata%20of%20Files.%20This%20change%20was%20made%20because%20some%20files%20are%20too%20big%20and%20the%20trigger%20was%20failing%20(the%20On-premises%20Data%20Gateway%20has%20a%20relatively%20low%20limit%20for%20file%20size).%3C%2FP%3E%0A%3CP%3EHowever%2C%20you%20CAN%20still%20accomplish%20your%20scenario%2C%20it%20just%20takes%20one%20extra%20step.%20Now%20you%20can%20do%3A%3CBR%20%2F%3E-%20When%20a%20file%20is%20created%20or%20updated%3CBR%20%2F%3E-%20Get%20file%20content%20(or%2C%20Get%20file%20content%20by%20path)%3CBR%20%2F%3E-%20Whatever%20actions%20you%20wanted...%3C%2FP%3E%0A%3CP%3EWith%20this%20pattern%20you%20can%20use%20an%20error-handling%20step%20to%20also%20handle%20the%20case%20where%20the%20file%20is%20too%20big%2C%20so%20you%20can%20choose%20what%20to%20do%20(e.g.%20send%20yourself%20a%20notification%2C%20or%20you%20could%20ignore%20it).%20That%20would%20be%20impossible%20with%20the%20previous%20pattern.%3C%2FP%3E%0A%3CP%3EAgain%2C%20sorry%20for%20the%20issue%2C%20please%20let%20me%20know%20if%20this%20pattern%20doesn't%20work.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-87713%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20-%20Copy%20files%20from%20PC%20to%20SharePoint%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-87713%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24276%22%20target%3D%22_blank%22%3E%40Stephen%20Siciliano%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3056%22%20target%3D%22_blank%22%3E%40Arjun%20Menon%3C%2FA%3E%20I%20just%20wanted%20to%20see%20if%20there%20has%20been%20any%20update%20to%20this%20issue.%26nbsp%3B%20When%20it%20worked%20was%20very%20useful.%3C%2FP%3E%3CP%3EI%20see%20the%20current%20file%20system%20triggers%20just%20list%20metadata%20only%20items%20-%20has%20the%20functionality%20been%20removed%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F17271i70228C884AED639D%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Capture1.PNG%22%20title%3D%22Capture1.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F13%22%20target%3D%22_blank%22%3E%40Michael%20Holste%3C%2FA%3Eperhaps%20you%20could%20help%20find%20the%20people%20who%20can%20help%20here%3F%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-75511%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20-%20Copy%20files%20from%20PC%20to%20SharePoint%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-75511%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%2F3056%22%20target%3D%22_blank%22%3E%40Arjun%20Menon%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20agree%20didnt%20really%20get%20an%20answer%20that%20helped.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20Microsoft%20have%20removed%20this%20functionality%20it%20would%20be%20interesting%20to%20understand%20why.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-75000%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20-%20Copy%20files%20from%20PC%20to%20SharePoint%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-75000%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24276%22%20target%3D%22_blank%22%3E%40Stephen%20Siciliano%3C%2FA%3E%26nbsp%3Bcan%20you%20help%20here%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-74995%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20-%20Copy%20files%20from%20PC%20to%20SharePoint%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-74995%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20response%20Andrew.%20Had%20been%20wondering%20where%20I%20was%20going%20wrong.%3C%2FP%3E%3CP%3EI%20think%20your%20question%20is%20not%20answered%20in%20that%20same%20thread%20which%20you%20had%20shared.%20The%20reply%20was%20suggestiong%20to%20OneDrive%20to%20Sync%20one%20drop-off%20library%20kind%20of%20setup%20and%20then%20trigger%20a%20workflow%20in%20that%20library%20which%20will%20push%20to%20your%20actual%20destination%20library.%20It%20may%20work%20in%20yours%20but%20not%20in%20my%20requirement%20atleast.%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20was%20looking%20for%20is%20an%20unattended%20set-up%20for%20synchronizing%20files%20automatically%20without%20any%20manual%20intervention%20and%20this%20seemed%20to%20be%20an%20optimum%20solution.%20Now%20I%20may%20have%20to%20go%20to%20old-school%2C%20which%20is%20custom-.scripting.%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20anyways%20for%20the%20update.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EArjun.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-74654%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Flow%20-%20Copy%20files%20from%20PC%20to%20SharePoint%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-74654%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20were%20using%20this%20process%20sucefully%20for%20a%20number%20of%20months%20however%20it%20appears%20FLOW%20might%20no%20longer%20support%20this%20process.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fpowerusers.microsoft.com%2Ft5%2FBuilding-Flows%2Ffile-system-copy-file-to-SharePoint%2Fm-p%2F37797%23M3447%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fpowerusers.microsoft.com%2Ft5%2FBuilding-Flows%2Ffile-system-copy-file-to-SharePoint%2Fm-p%2F37797%23M3447%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Arjun Menon
Occasional Contributor

Hello Experts,

 

We are using the template, "Copy New Files from your PC to SharePoint" for copying any new files which are added to my files system. We cannot rely on OneDrive for business since we want to make the process run without an explicit login to the machine.

Part of process, we had done following steps as part of the process.

  • Installed Data Dateway (https://flow.microsoft.com/en-us/documentation/gateway-reference/)
  • Configured in one of the On-premises server where we want the files to copied to SharePoint Online
  • Configuration was successfull and added the connection in Flow and saved the flow.
  • Addition of new files are getting identified by Flow.
  • But we are getting an error "Bad Request".
  • When we see the output, we are getting Status 400 and error message as "A value must be provided for folder identifier."
  • We are not sure where are we going wrong.
  • Adding the screenshots as well for the reference.

Any leads would highly be appreicated.

 

Thanks in advance,

Arjun.Flow - Error.jpgGeneral ErrorFlow - Error_2.jpgOutput from REST

13 Replies
Solution

We were using this process sucefully for a number of months however it appears FLOW might no longer support this process.

 

https://powerusers.microsoft.com/t5/Building-Flows/file-system-copy-file-to-SharePoint/m-p/37797#M34...

Thanks for the response Andrew. Had been wondering where I was going wrong.

I think your question is not answered in that same thread which you had shared. The reply was suggestiong to OneDrive to Sync one drop-off library kind of setup and then trigger a workflow in that library which will push to your actual destination library. It may work in yours but not in my requirement atleast. 

What I was looking for is an unattended set-up for synchronizing files automatically without any manual intervention and this seemed to be an optimum solution. Now I may have to go to old-school, which is custom-.scripting. 

Thanks anyways for the update.

 

Arjun.

Hi @Arjun Menon

 

I agree didnt really get an answer that helped.

 

If Microsoft have removed this functionality it would be interesting to understand why. 

@Stephen Siciliano @Arjun Menon I just wanted to see if there has been any update to this issue.  When it worked was very useful.

I see the current file system triggers just list metadata only items - has the functionality been removed

Capture1.PNG

@Michael Holsteperhaps you could help find the people who can help here? 

Thanks 

I want to apologize for the confusion here. We had an update to the File System connector that has the trigger only return back the metadata of Files. This change was made because some files are too big and the trigger was failing (the On-premises Data Gateway has a relatively low limit for file size).

However, you CAN still accomplish your scenario, it just takes one extra step. Now you can do:
- When a file is created or updated
- Get file content (or, Get file content by path)
- Whatever actions you wanted...

With this pattern you can use an error-handling step to also handle the case where the file is too big, so you can choose what to do (e.g. send yourself a notification, or you could ignore it). That would be impossible with the previous pattern.

Again, sorry for the issue, please let me know if this pattern doesn't work.

Hi Stephen

 

That has worked perfectly thank you - easy when you know how.

 

You may be able to help with something else related to this Flow.  Is it possible to strip an element out of the file name to be used in the flow either by going back to metadata or used to lookup a SQL table.

 

Sample file name - "DeliveryTicket_PLU0234176_9951_120778.pdf

 

The segment PLU0234176 relates to an order number that we could then use to lookup information related to that order.

 

Thanks 

Andrew

We are actually just about to release some string parsing capabilities (likely before the end of next week). In this case you'll have a couple options: split on the '_' character and then take the 2 item from that array, or, you could take a substring of characters 16 through 25. It just depends on how flexible the file name is.

Thanks Stephen, I will keep a look out for the updates.

Hi Stephen

 

I see this functionality was released, and the substring command has worked for me to look up the SQL table however the table columns aren’t being listed as dynamic content on the next steps of the Flow.

 

Previously when the get rows command was used the next item is 'Apply to Each' then select "values" which in the next action step allowed SQL table columns to be selected.

 

Has there been a change in how to use the output from SQL?

 

Andrew 

 

1st Image shows current flow and no option to use data returned from SQL

SQL1.PNG

 

2nd Image shows existing flow with SQL table items used

SQL2.PNG

@Stephen Siciliano

 

This seems to be working this morning. Can now use output from SQL table 

 

 

@Stephen Siciliano

Hi Stephen

Does the File system connector allow nested folder and files to be copied to SharePoint?

Regards
Rema

@Rema_Gopinathan not in a single action but you could recursively do it.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies