I am getting "GetLastError command failed: getLastError command is not supported" while trying to insert document in Robo3T under collections

5.1k views Asked by At

I am getting error while trying to insert document in Robo3T but the document is successfully getting added to the list after clicking on OK.

Error message : GetLastError command failed: getLastError command is not supported

Not sure as the same version of Robo 3T is working on my other machine and also I am currently using Robo3T ver:1.4

2

There are 2 answers

1
ציפורה On

Faced the same.
This is because the getLastError command has been deprecated in MongoDB and is no longer supported. (as of MongoDB 4.4)

0
Akash On

As getLastError has been deprecated, make sure your robo3T supports your mongodb version. I was also using Robo3T 1.4.4 and had same problem. I installed Studio3T, new updgraded version of Robo3T and this solved my problem.