My Account | Internet Creations
Welcome, Guest.

UNKNOWN_EXCEPTION, INVALID_TYPE: IsInboxTermsOfUseAccepted FROM SalesforceIqUser WHERE InternalUserId ^ ERROR at Row:1:Column:61 sObject type 'SalesforceIqUser' is not supported.

Symptoms

Email to Case Premium

Sending a comment/email from the packaged New Comment page results in the following error:

Sending e-mail with new comment failed: SendEmail failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, INVALID_TYPE: IsInboxTermsOfUseAccepted FROM SalesforceIqUser WHERE InternalUserId ^ ERROR at Row:1:Column:61 sObject type 'SalesforceIqUser' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.: []


Change Case Ownership Plus

Changing the Case Owner with the "Send Notification Email" checkbox populated results in the following error:

SendEmail failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, INVALID_TYPE: IsInboxTermsOfUseAccepted FROM SalesforceIqUser WHERE InternalUserId ^ ERROR at Row:1:Column:61 sObject type 'SalesforceIqUser' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.: []

Solutions

This is related to the following Salesforce Known Issue, expected to be fixed as part of a Spring '20 patch release.

 

Status

This is related to the following Salesforce Known Issue, expected to be fixed as part of a Spring '20 patch release.

Additional Information

From our testing, this issue occurs when the following conditions are met.
 
  1. This only occurs in Spring '20 pre-release sandboxes. Specifically, we've seen this occur in full sandboxes on the pre-release.

  2. This affects those who have the Salesforce IQ Inbox application installed in their Spring '20 pre-release Orgs. Unfortunately, uninstalling alone won't resolve this issue.

  3. System Administrators are not affected by this error. Only users without the Customize Application permission (usually reserved for System Administrators) may encounter these errors.

  4. The error only occurs if you're utilizing the SingleEmailMessage apex method provided by Salesforce to send emails, which is used in both Email to Case Premium and Change Case Ownership Plus applications. It does NOT occur for emails sent through standard functionality, like Email-to-Case.
     


This issue can be reproduced outside of these packages by creating a simple Apex Class that implements the SingleEmailMessage method, and creating a Visualforce page that invokes that method, attempting to send an email.

For example:

User-added image

Sample code for easy copy/paste:

public class SingleEmailMessageTest {
    
    public String emailAddress { get; set; }
    
    public void sendEmail() {
        Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage();
        email.setToAddresses(new List<String>{emailAddress});
        email.setSubject('SingleEmailMessage Test');
        email.setPlainTextBody('SingleEmailMessage Test');
        
        Messaging.sendEmail(new List<Messaging.SingleEmailMessage>{email});
    }
}

User-added image

Sample code for easy copy/paste:
 

<apex:page controller="SingleEmailMessageTest">
    <apex:form >
        <apex:inputText html-placeholder="Email Address" value="{!emailAddress}"/>
        <apex:commandButton action="{!sendEmail}" value="Send Email"/>
    </apex:form>
</apex:page>



Once both the Apex Class and Visualforce page are created, adjust your page URL to include "apex/SingleEmailMessageTest". For example, testfullsandbox.cs32.my.salesforce.com/apex/SingleEmailMessageTest

Enter your email address on the page in the input box, and click Send Email. This will invoke an email utilizing the SingleEmailMessage method, and the Salesforce IQ error will appear.



Salesforce IQ is retiring on March 12, 2020.

 

Support

Open a Case