Error on aaApi_CheckOutDocument (58014, Document is not out)

I am using the ProjectWise API to checkout a file via aaApi_CheckOutDocument.  At a particular customer, the API is failing with Error Code: 58014, Description: Document is not out.  This is not enough information for me to figure out the issue remotely.  I have tried this in our own ProjectWise server environment without any issue. 

The customer displays multiple versions of the files.  I have tried to check out with a null working directory and a specified working directory and both fail with the same error code/message. 

Can you please tell me a bit more about this particular error message?

And, is there a way to log to pw.log from the api?  I only see logging when ProjectWise Explorer is running, not from the API.