SQL Server Reporting Services: Fixing “Could not generate a list of fields for the query”

Many times when creating an SSRS report I get the message "Could not generate a [...]