+ Start a Discussion

An internal server error has occurred in workflow rule with apex callout


I have a problem. I created an email template that uses a component to display a list of data. This component obtains data from an external web service through a soap service (in the apex controller). This template email I use it in a e-mail alert that is triggered by a workflow rule. My problem is that when you meet the rule and generates the email, I get the following message: An internal server error has occurred.

What is that? What am I doing wrong?

Thanks in advance.

Ankit AroraAnkit Arora

There must be some exception occurring in your component or when your component is hitting the web service that is why you are getting internal server error. First debug that your component is sending data correctly.



Ankit Arora

Blog | Facebook | Blog Page


Thank you very much for your response.


The problem is internal to Salesforce. The component is tested and the call to the WebService and also works well. The proof is that when I use the component from a page, everything works fine, but when I use the component in an email template that sends a workflow, internal error occurs.


A greeting.


We're having the same issue. Any update on this from Salesforce?