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 / Move Email - Outlook I...
Power Automate
Unanswered

Move Email - Outlook ID is Malformed

(0) ShareShare
ReportReport
Posted on by 22

I have a very odd problem/behavior with a Power Automate Flow.
The purpose of the flow is to automatically file emails into the relevant client folder.
There are hundreds of clients so maintaining Outlook rules isn't an option, and it needs to work for both inbound and outbound emails.


The flow triggers when a new email arrives. 

I then run a SQL Stored Procedure that logs the email details into a Table,
Based on certain conditions, we then run a second Stored procedure, that returns the Outlook Unique folder ID

Then using V2 Move email - it moves the email to the client folder.

 

95% of the time it runs flawlessly.

Then occasionally returns a error:

Minty_99_0-1690476812481.png

The thing is the Id isn't malformed.
I have compared two ID's one from a successful run and one from a unsuccessful one and they are identical apart from the end digits (I have replaced some of the digit wth *** to protect the actual ID's)

Failed ID: 

AAMkADQ3ZDdmYjYwLTg**************************BGAAAAAAChIeAr1zcBRrXEa1ctRYqQBwA-aZMi0FcjQqnLHtkDZa08AAAAAAEMAAA-aZMi0FcjQqnLHtkDZa08AADG4OEIAAA=

Successfull ID:  

AAMkADQ3ZDdmYjYwLTg**************************BGAAAAAAChIeAr1zcBRrXEa1ctRYqQBwA-aZMi0FcjQqnLHtkDZa08AAAAAAEMAAA-aZMi0FcjQqnLHtkDZa08AADG4OEKAAA=

 

Now for the extra special strangeness.
Currently, this is only failing when one particular outlook Folder_ID is returned, but it is the correct Folder_ID, I have triple-checked it, and according to the error message that isn't why the flow is failing.

Categories:
  • VictorIvanidze Profile Picture
    13,083 on at

    What happens with an email when you get this error - does it really move?

  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at
     and they are identical apart from the end digits

    That means they are NOT identical. These IDs are Base64 encoded versions.  Run them through the Base64 online decoder and see which character is causing the issue. Might be as simple as a trailing space or backslash.

  • Minty_99 Profile Picture
    22 on at

    It turns out it was something corrupt in the Folder ID from the Outlook folder, not the message ID.
    We renamed the old folder, created a new one, then using the new folder ID, the messges moved correctly.

    Would have been helpful if the error message had said Folder_ID and not simply ID, which I took to be the message ID 🙄
     
    I understood that the message ID's wouldn't be identical, they are different messages after all.

  • Minty_99 Profile Picture
    22 on at

    Thank you for asking - No, it doesn't get moved anywhere, it simply stays where it was in the main inbox.
    See the (hopeful) resolution in my other reply

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard