web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to quarantine any ...
Power Automate
Answered

How to quarantine any corrupted file through any cloud flow or desktop flow itself

(0) ShareShare
ReportReport
Posted on by 30

I have a desktop flow that is converting ppt into pdf. cloud scheduler is working also fine. now sometimes a corrupted ppt is there and the whole get stuck because flow cannot process that flow. So how quarantine that file and move it out to another location through any cloud flow or desktop flow itself?

help, please...!!!!!!!!!!!!!!

I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @rahul1231 

     

    I don't know how you can determine which PPT file is corrupted or not.

    Are there any error output while converting it to PDF format?

    Or does the conversion process not complete forever?

     

    If any of your PAD actions will fire error message, then you can use "On error" options located at the left bottom corner of action parameters settings window.

     

    shindomo_1-1633042981368.png

     

    You can set "On error" options such like "Run subflow" or "Go to label". Therefore, you can create sub process that is executed only when an error occurs.

     

    shindomo_2-1633043104070.png


    For the "file convert process is never ending" scenario, I suppose you can use "Fail with timeout error" option to be failed after the specified number of seconds in "Duration".

     

    shindomo_4-1633043607852.png

     

    I hope above is helped you.

    Thank you.

  • Daniel_Pa Profile Picture
    244 on at

    I'm also curious as to why the files get corrupted.

    I've experienced something similar when closing an application while it was saving a file. If that's the case, perhaps inserting a wait before closing the application, could avoid the initial corruption.

  • rahul1231 Profile Picture
    30 on at

    let me elaborate.

    If I upload a corrupted ppt then the whole power automate script gets stuck because it cannot save that file or sometimes it cannot open that ppt file. So to identify that the script is stuck and move that particular ppt to another location from the source location(for power automate), so power automate can move to the next ppt to work with.

    This I need.

  • Daniel_Pa Profile Picture
    244 on at

    Wrap the failing part in an "On block error", which runs a sub flow, handling the error. Eg. moving the file and rerunning the upload flow.

     

    If you want more advise, you'll have to provide more information - screenshots, what actions fail, what happens before, what happens after and what is the desired outcomes.

  • rahul1231 Profile Picture
    30 on at

    Please provide more info with screenshots like how to do it

  • Verified answer
    Daniel_Pa Profile Picture
    244 on at

    Yes, that's what I wrote. Please provide a screenshot of your process..

     

    Inserting an "On block error" is done by dragging it into the process, wrapping your actions and adding a "Run subflow"-rule. The subflow should contain the error correcting steps - which is dependent on your desired outcome and initial steps. To assist further, I'll need more info from YOU.

    errorBlock.png

  • rahul1231 Profile Picture
    30 on at

    A big thanks @Daniel_Pa and @Anonymous. I did it. made an onblockerror that connects to a subflow. if I run the script manually it is working just great. but the weird thing is from the cloud scheduler it cannot move the file. The weirdest part is a part of that subflow is working but not the moving part.

    so manually running is fine but not from the cloud scheduler.

    Help....!!!!!!!!!!!!!!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @rahul1231 

     

    Please tell us more about the file storage your flow is using to read from and write to.

    Local harddisk? File share network drive? Cloud storage such like OneDrive?

    Also, have you checked the applied permissions for source and destination directory?

    When you run the flow from cloud scheduler, which user account is used to access those file storage?

    Do you see any error messages?

    You said "it cannot move the file", but exactly what is happening while the flow is trying to move the file?

    How long did you wait to determine that the flow was failed to move file?

     

    Thank you.

  • rahul1231 Profile Picture
    30 on at

    Hi,

    it is a File share network drive. a mount point. where I have created a folder.

    I have checked the applied permissions. it has full control for everyone.

    I checked the error message from the cloud activity. It is saying: Problem while executing action 'Move'. Destination folder doesn't exist.

    I have put wait 3sec and 4sec.

    note: I have created a folder on the desktop instead of the mounted drive. It's the same thing.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @rahul1231 

     

    It sounds like you may be specifying a path in a format that cannot be referenced from other environments.

    How about trying to specify the destination folder in a path in UNC format?

    \\ComputerName\ShareName\FolderName\FileName.pptx

    File path formats on Windows systems | Microsoft Docs

     

    Thank you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 274 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 175

#3
Haque Profile Picture

Haque 166

Last 30 days Overall leaderboard