Thank you for using the Support Forum. You do not mention what the error code says so I can not provide a specific solution for the message. But I would suggest that you make sure you have followed all the step up instructions in this article Scan to Network found in the online support for your printer. If this does not help please contact the support centre for further assistance.
Thanks, CherylO-Xerox Community Manager
Be sure to click Kudos for those who have helped you. Select Accept as Solution for posts that have helped to solve your issue(s)!