Issue
Error: Validation Errors While Saving Record(s)
There was a custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Related To ID: id value of incorrect type: a170x000002Y8kfAAC".
Resolution
Navigate to the object you are running the Doc Gen Package from and make sure that the object has 'Track Activities' enabled