Summary
Using the Tooling API to query a workflowalert with a fullname more than 80 characters will result in an error similar to the following:
ERROR:- UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 922686058-1997209 (-435199921)
The fullname is comprised of three pieces. The object API name followed by a period and then the API name of the workflow alert. For example, "Account.my_workflowalert" or "my_object__c.my_workflowalert".
Steps to Reproduce
If the combined length of the three components is more than 80 characters the issue will be demonstrated.
1) Working Create an Email Alert on Account with the following name: email_alert_72_678901234567890123456789012345678901234567890123456789012
Execute the following REST API query /services/data/v33.0/tooling/query?q=select+id,fullname+from+workflowalert
This succeeds as "Account.email_alert_72_678901234567890123456789012345678901234567890123456789012" is <= 80 characters in length (7 + 1 + 72)
2) Not working Create an Email Alert on Account with the following name: email_alert_73_6789012345678901234567890123456789012345678901234567890123
Execute the following REST API query /services/data/v33.0/tooling/query?q=select+id,fullname+from+workflowalert
This fails as "Account.email_alert_73_6789012345678901234567890123456789012345678901234567890123" is > 80 characters in length (7 + 1 + 73)
[ { "message" : "An unexpected error occurred. Please include this ErrorId if you contact support: 1482607886-48495 (-435199921)", "errorCode" : "UNKNOWN_EXCEPTION" } ]