Danny Rose explains Long Integer Out of Range. Results invalid. I want to point out that using the DocDateVerify tool, now available as part of the free Professional Services Tools library would have prevented this issue.
Long Integer Out of Range. Results invalid. | Dynamics University
Archived post from 2013. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.