API Check-Out Issue

Hi there

We use Microsoft AI to analyze documents and send the metadata back to the object/file in M-Files. Therefore we execute a check-out request before updating the metadata.

In situations where many documents are analyzed and therefore many check-out requests are performed, we receive the following response from the M-Files API:

{
  "ErrorCode": "11",
  "Status": 404,
  "URL": "/objects/0/42037/latest/checkedout",
  "Method": "POST",
  "Exception": {
    "Name": "COMException",
    "Message": "Nicht gefunden.",
    "InnerException": {
      "Name": "MFilesException",
      "Message": "Nicht gefunden.",
      "StackText": "Error reference ID: 177ac341-6a5f-4847-94e5-cc1b65ddaf4d",
      "ErrorCode": "11"
    }
  },
  "Stack": "Error reference ID: 177ac341-6a5f-4847-94e5-cc1b65ddaf4d",
  "Message": "Nicht gefunden.",
  "IsLoggedToVault": true,
  "IsLoggedToApplication": true,
  "ExceptionName": "COMException"
}

Request (sent within logic apps)

{
"method": "post",
"queries": {
"_method": "PUT"
},
"headers": {
"X-Authentication": "token",
"Content-Type": "application/json"
},
"path": "/objects/0/42037/latest/checkedout"

"body": {
"Value": "1"
}
}

It looks like the object is not found, but the object is definitively there available and not checked out before. Login request before the check-out request is always successful and we receive the token to perform the check-out request.

What could be potentially wrong here?

Would appreciate your help.

Kind regards,

Dario