While running a discovery task in ODM SharePoint you encounter an error message: An error occurred while discovering.
On the discovery csv file there was a site url with space in it.
Add %20 encoding for space in the discovery file, the discovery will finish successfully.