Graph return exception message "Invalid Start offset for the current fragment. Fragment might already have been uploaded." on put request.

Eugene Uelsky 1 Reputation point
2021-08-06T14:15:47.393+00:00

Put request:
https://outlook.office.com/api/gv1.0/users('{{user_id}}')/messages('{{message}}')/AttachmentSessions('{{session}}')?authtoken={{token}}, Headers=[[Content-Range: bytes 0-10485759/13000000]]

return error in response:
"message":"Encountered an unknown exception","stacktrace":"xx.client.ms.exception.MSClientException: Status code [400], Message [{\"error\":{\"code\":\"InvalidStart\",\"message\":\"Invalid Start offset for the current fragment. Fragment might already have been uploaded.\"}}]

This happens while emails send as items with attachments to outlook via graph. It is sporadic and not reproduced always.

How to handle this error?

Microsoft Security Microsoft Graph
{count} votes

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.