Outlook Email returned with duplicate IDs

Shivam Singh 5 Reputation points
2024-03-15T04:19:38.0633333+00:00

Hi Team,

We are currently facing an issue where we are receiving emails with the same ID from the API. This is leading to missed captures through our request since there are two different emails received with identical IDs. The ID is crucial for us to distinguish between unique emails.

We kindly request your assistance in resolving this scenario to ensure the accurate capturing and storage of emails without any duplication. Your prompt attention to this matter is highly appreciated.

Example ID we receive in the API response highlighted in bold:

{

"@odata.etag": "W/"CQAAABYAAACSfMzaqyWjQalHSlfhEdKGAAUfklg9"",

"id": "AAMkAGRkNjc0NzUzLWUwZTgtNDYzYy04MmVjLTA3YjVlMzU1YjA0MgBGAAAAAACFjOkrM98TSoI-VaEXxqZLBwCSfMzaqyWjQalHSlfhEdKGAATa7CZmAACSfMzaqyWjQalHSlfhEdKGAAUgcrVtAAA=",

"receivedDateTime": "2024-02-22T01:43:11Z",

"subject": "ApexOne - Import & Export Branded Mobile Phones & Original Accessories",

"isRead": true,

"from": {

"emailAddress": {

"name": "MobileSources.Net",

"address": "*** Email address is removed for privacy ***"

}

}

},

Shivam

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,274 questions
{count} vote

6 answers

Sort by: Most helpful
  1. Henrik Bayer 10 Reputation points
    2024-06-12T12:31:58.4966667+00:00

    We experienced this today as well.

    Are you sure the IDs are exactly the same? The Message ID is case-sensitive.

    As we saved the message ID in our database, we would experience issues when we got two message ID's that appeared similar except 1 character that was lower case rather than upper case.

    2 people found this answer helpful.

  2. AsithwMSFT 1,430 Reputation points Microsoft Vendor
    2024-03-16T04:56:08.9733333+00:00

    Hi Shivam Singh

    How did you receive these message ids, is that from 3rd party service/app? Usually, a message ID cannot be duplicated. I would suggest retrieving the message using message/{id} api using graph explorer or similar method. Then, you could determine the exact message that this ID corresponds to


  3. Christoph Ripp 0 Reputation points
    2024-04-08T15:37:24.5833333+00:00

    I can confirm the issue. We also access the Graph API directly and parse the JSON ourselves. I noticed that there were missing mails in our system. I then looked at the result manually using Postman and found that two completely different mails from the inbox have the exact same ID.

    A special aspect: We set the value IdType="ImmutableId" for the "Prefer" field in the header of our request - maybe the problem is in the function.

    The problem does not occur often - so far I have only noticed two mails with the same ID.

    0 comments No comments

  4. Shivam Singh 5 Reputation points
    2024-04-18T05:24:35.9633333+00:00

    Please help me too if you get a solution to this

    0 comments No comments

  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.