20
Views
1
Comments
[Graph Email] Error getting email headers
Question
graph-email
Service icon
Forge asset by Miguel Meireles
Application Type
Service

Hi,

I'm getting this error while trying to get email headers with version 1.0.2:

System.Exception: One or more errors occurred.
Status Code: BadRequest
Microsoft.Graph.ServiceException: Code: ErrorInvalidIdMalformed
Message: Id is malformed.
ClientRequestId: 0de6f102-a6e1-42a1-b1ae-d9c9884839f5

   at Microsoft.Graph.HttpProvider.<SendAsync>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Graph.BaseRequest.<SendRequestAsync>d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Graph.BaseRequest.<SendAsync>d__34`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Graph.MailFolderMessagesCollectionRequest.<GetAsync>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GraphAPI.ClassAPI./%zj\[_3}sL`#`6uU$R|d\,Ln/.MoveNext() 


Anyone had the same problem?


Thanks in advance.

2018-12-31 13-37-36
Miguel Meireles

Hello Vitor 

This error in principle has to do with the name of the folder you are sending.

Example :

 if I send the folder name "Inbox", but if my mailbox is configured in Portuguese, I will get this error.

In the example above the name you should send is "Caixa de Entrada".


In short, this error occurs when the folder is not found in the mailbox.


compliments

Miguel Meireles

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.