CreateCopyJobs to copy folder resulting in Null exception

%3CLINGO-SUB%20id%3D%22lingo-sub-2084762%22%20slang%3D%22en-US%22%3ECreateCopyJobs%20to%20copy%20folder%20resulting%20in%20Null%20exception%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2084762%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20creating%20an%20on-demand%20flow%20that%2C%20for%20a%20selected%20SP%20file%2C%20it%20should%20move%20to%20a%20different%20SP%20site.%20The%20problem%20is%20that%20all%20the%20property%20columns%20must%20be%20kept%20(included%20the%20custom%20ones)%2C%20and%20for%20so%20I%20need%20to%20recreate%20the%20parent%20folder%20in%20the%20destination%20directory.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20using%20CreateCopyJobs%20to%20copy%20the%20folder%2C%20but%20for%20some%20reason%20is%20always%20end%20with%20an%20%3CEM%3EArgumentNullException%3C%2FEM%3E%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cmilanelo_0-1611268010872.png%22%20style%3D%22width%3A%20520px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F248323iD50BCDC91D9507F1%2Fimage-dimensions%2F520x134%3Fv%3D1.0%22%20width%3D%22520%22%20height%3D%22134%22%20role%3D%22button%22%20title%3D%22cmilanelo_0-1611268010872.png%22%20alt%3D%22cmilanelo_0-1611268010872.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20flow%20works%20fine%20if%20a%20do%20the%20same%20with%20a%20file%2C%20but%20I%20need%20to%20copy%20the%20folder.%3C%2FP%3E%3CP%3EThis%20is%20my%20flow%20at%20the%20moment%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cmilanelo_1-1611268272313.png%22%20style%3D%22width%3A%20480px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F248330i98D6E169DA5B756F%2Fimage-dimensions%2F480x410%3Fv%3D1.0%22%20width%3D%22480%22%20height%3D%22410%22%20role%3D%22button%22%20title%3D%22cmilanelo_1-1611268272313.png%22%20alt%3D%22cmilanelo_1-1611268272313.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAnd%20I%20know%20that%20having%20this%20working%20will%20copy%20all%20the%20folder's%20content%20as%20well%2C%20but%20it's%20the%20best%20idea%20I%20could%20have%20to%20copy%20the%20folder.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20to%20make%20this%20work%2C%20or%20idea%20to%20how%20to%20copy%20a%20file%20with%20all%20its%20columns%20will%20be%20welcome.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2084762%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Visitor

Hi everyone,

 

I'm creating an on-demand flow that, for a selected SP file, it should move to a different SP site. The problem is that all the property columns must be kept (included the custom ones), and for so I need to recreate the parent folder in the destination directory.

 

I'm using CreateCopyJobs to copy the folder, but for some reason is always end with an ArgumentNullException:

cmilanelo_0-1611268010872.png

The flow works fine if a do the same with a file, but I need to copy the folder.

This is my flow at the moment:

cmilanelo_1-1611268272313.png

And I know that having this working will copy all the folder's content as well, but it's the best idea I could have to copy the folder.

 

Any help to make this work, or idea to how to copy a file with all its columns will be welcome.

 

0 Replies