You are correct that you can't enter 'Not on File' as a Cost Basis. If you can't get a Cost Basis, you can enter $0, however.
Here are some ways to help you find a Cost Basis:
https://ttlc.intuit.com/replies/6635496
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"