- Newest
- Most votes
- Most comments
The ArchivedMessageId must match exactly the identifier provided by the SES Mail Manager archive search. It is distinct from the Message-ID found in the email headers (e.g., 01070197a7559e1b-f3ddf1ff-ce69-4e67-8506-462b81143692-000000@eu-central-1.amazonses.com) and should not be used interchangeably.
Please try:
- Go to SES > Mail Manager > Email Archiving > Search archive.
- Search for the email.
- In the results, look for the Archived Message ID field (not the Message-ID).
- Use that exact value in your GetArchiveMessageCommand.
Hey,
Hope you're keeping well.
The Invalid ArchivedMessageId error means SES Mail Manager can’t find a message with that ID in the archive you’re querying. The ArchivedMessageId must come from a prior ListArchiveMessages API call for the same archive in the same region. Make sure you’re using the correct archive name in your list call, and that the message hasn’t expired or been deleted based on your retention policy. Also verify your IAM role has ses:GetArchiveMessage permission for that archive resource. If you hardcoded the ID from elsewhere, retrieve it dynamically via ListArchiveMessages before calling GetArchiveMessage.
Thanks and regards,
Taz
answered 10 months ago
Relevant content
asked 3 years ago

Hey there Kidd Ip! Thanks for answering first of all, but i don't seem to find the value you are mentioning in the visible columns of the search result. I saw on the properties to see the columns and see there are only "Received date" , "Subject line", "From", "To", "Envelope From", "Envelope To", "Cc", "Message Id". I dont seem to find this value. Do you see it on your archive? If you have an example could you share it with me? i assume is something like "messageID + ArchiveID" but if not i have no clue. Thanks again! have a good one