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.

  • Update: the solution to create a new version and replace the version with a new file works quite well.  Thank you. 

    We have seen a handful of users with the NEW "document is not out" error on checkout in the past month.  Our code using the API has been fairly stable and not changed in the past year.  I do not know if an update or some system setting is required to cause this error as I haven't been able to reproduce on our ProjecWise server.

    Regardless, the new solution doesn't require a checkout so the error is avoided though still concerning.