Recently I came across this error when using LINQ in CRM custom workflow activity,
Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: attributeName
Below query will throw error,
Below works with out errors :)
Hope it helps!