This issue tends to come up with New York residents. The document number is an 8 or 10 digit alphanumeric number found either on the back of the license or lower right hand corner. It is not the same as the drivers license number. Please see this link for a visual:
https://dmv.ny.gov/id-card/sample-photo-documents
If you have an older license, like mine issued in 2011. There is no document id.
My wife's NYlicense issued late 2017 does not have a document number. It isn't on the front bottom right. It is not on the back. None of the three places shown on the pictures have a document number.
We have one from dec 2017 with no document number (checked all three locations)