Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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.

  • Minty_99 Profile Picture
    22 on at
    Re: Move Email - Outlook ID is Malformed

    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

  • Minty_99 Profile Picture
    22 on at
    Re: Move Email - Outlook ID is Malformed

    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.

  • lbendlin Profile Picture
    7,794 Super User 2025 Season 1 on at
    Re: Move Email - Outlook ID is Malformed
     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.

  • VictorIvanidze Profile Picture
    12,207 on at
    Re: Move Email - Outlook ID is Malformed

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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow