I created a simple flow, using the template “Copy files to OneDrive for Business when they're added to OneDrive”.
I’ve tried creating it at the web page and at the Android app, with no luck so far.
I always get the Code Status 502 error, bad geteway with my personal OneDrive account.
I also tried deleting all my connections and starting the flow from scratch, and I always get the same results with no successful run.
I noticed the following. When opening the personal OD, it recognizes my account and I can move to my personal OD folders.
The same applies for OneDrive for Business (ODFB) and I can move through my ODFB folders.
However, at the web page (not at the Android app), inside my flow I see a box with connections. There I can see my ODFB with the right e-mail address. However, at my personal OneDrive instead seeing my personal OD address, I see the ODFB one.
In short, both OD and ODFB have the same address, the one corresponding to the ODFB.
There is no way that I can change it.
I guess that’s the problem in the flow. My OD cannot be accessed because it is pointing to my ODFB account, instead to my OD.
However, as mentioned before, when I look for the folders, I access to the right OD ones.
I also tried selecting the root folders of my OD and ODFB in the flow. I get the same results.
Any ideas about how to solve this?
Thanks,
Solved! Go to Solution.
Hi @ManuelV,
The 502 error is temporary or transient, please click the Resubmit to try the flow again.
Please check if you have chosen a OneDrive trigger rather than a OneDrive for Business trigger in your flow, in search box, please type OneDrive key words:
I have made a test on my side and don’t have the issue that you mentioned. I create a flow with the template “Copy files to OneDrive for Business when they are added to OneDrive”.
Image reference:
The flow works successfully as below:
If you want to change the connection of OneDrive with your personal OneDrive account, you could click Menu button of “When a file is created” action and then click “Add new connection”.
Best regards,
Kris
Hi @ManuelV,
The 502 error is temporary or transient, please click the Resubmit to try the flow again.
Please check if you have chosen a OneDrive trigger rather than a OneDrive for Business trigger in your flow, in search box, please type OneDrive key words:
I have made a test on my side and don’t have the issue that you mentioned. I create a flow with the template “Copy files to OneDrive for Business when they are added to OneDrive”.
Image reference:
The flow works successfully as below:
If you want to change the connection of OneDrive with your personal OneDrive account, you could click Menu button of “When a file is created” action and then click “Add new connection”.
Best regards,
Kris
Hi v-xida-msft,
Thanks for the reply. Your solution works great. Thanks.
However, I'm still strugling with my flows.
It turns out that at least of what I could find with my experience, "when a file is created" means uploading a file to OD.
If I copy (no flow, or even with a flow) one file withing OD to another directory (let's say to "/Test" in your example) this new file is not recognized as a created file.
I couldn't even get it work with a flow that instead of copying, it created a new file within OD.
Having said so, I managed to leverage from other flow that allows me to copy the files listed in ÓD and copy them in ODFB.
I followed this example, changing Dropbox by OD.
And it works great in my tests.
However, I'm still can't copy the files that I want to because I get an error stating "The template language function 'body' cannot be used when the referenced action outputs body has large aggregated partial content."
I'm going to post a new post with that issue.
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
40 | |
36 | |
36 | |
34 | |
27 |
User | Count |
---|---|
39 | |
38 | |
34 | |
31 | |
25 |