You need to sign in to do that
Don't have an account?

SendEmail failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, INVALID_TYPE: sObject type 'SalesforceIqDataSource' is not supported.: []
We have apex classes through which we send emails based on user action in force.com sites. It was working great until Friday, But yesterday when one of our customer try to submit application, they were getting error, In debug it says “SendEmail failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, INVALID_TYPE: sObject type 'SalesforceIqDataSource' is not supported.: []”. I am pretty sure we did not change anything related to apex class, email template, vf page etc.. Does anyone know the reason or best way to fix this?
They whitelisted the SalesforceIqDataSource object for the site guest user for our organisation and I can confirm this has resolved the issue for us.
Therefore, for anyone still encountering this issue I was advise that you do the same thing and raise a ticket with Salesforce support.
Thanks everyone for the support on this.
All Answers
We ran into this exact same issue starting a week or so ago and we haven't been able to figure it out either. We have 4 apex classes in our org that send emails out during execution, and now one of those classes triggers this exception everytime. Oddly enough, the other 3 aren't affected. We did notice that the issue sprang up after the salesforce automated user installed a managed package called "SalesforceIQ Inbox". We manually removed the package and recompiled everything, but the package is just auto installed again days later. What makes the situation even more frustrating is that there is no documentation that I can find of "SalesforceIqDataSource" anywhere on the internet.
I hope somebody can figure this out, because I've been banging my head against the wall for over a week now.
Danny Dowell
Thank you.
An alternative to commenting out the code would be to add a second argument to the sendEmail method call. If you pass a false boolean value to that second parameter, everything outside of the email will execute as is without triggering the SalesforceIqDatasource exeption. Then, if salesforce can correct the issue at hand, your code would resume its normal email functionality without any of your devs having to un-comment the block.
Unfortunately, our commercial team use EAC to automatically capture customer interactions so this can not be disabled but our accounts team is not receiving certain payment notifications because of this issue.
If anyone finds a solution to this problem It would be greatly appreciated.
If we hear anything from Salesforce regarding a fix, will be happy to post it here.
We are waiting on confirmation from Salesforce regarding if this will resolve the issue we are experiencing as well and what the steps each of our customers should take to have Salesforce whitelist the SalesforceIqDataSource to the site guest user.
Did you guys try Danny suggested approach? I have n't tried yet as we already changed our approach by then, but may be worth trying if not already.
"An alternative to commenting out the code would be to add a second argument to the sendEmail method call. If you pass a false boolean value to that second parameter, everything outside of the email will execute as is without triggering the SalesforceIqDatasource exeption. Then, if salesforce can correct the issue at hand, your code would resume its normal email functionality without any of your devs having to un-comment the block. "
Sandy, I havent actually tried this as my takeaway from that suggestion was that the email won't actually send but the exception will be somewhat handled and therefore any code after the email will execute. While that is an improvement if you have code after sending the email that needs to run it doesn't solve the problem of the email not sending.
They whitelisted the SalesforceIqDataSource object for the site guest user for our organisation and I can confirm this has resolved the issue for us.
Therefore, for anyone still encountering this issue I was advise that you do the same thing and raise a ticket with Salesforce support.
Thanks everyone for the support on this.
Do you use apex classes to send the emails? If so, you may also need to have SF Support whitelist SalesforceIqDataSource. Every customer of ours that ran into this issue had to whitelist SalesforceIqDataSource for the site guest user and then the issue was fully resolved.
Sadly this is still an ongoing problem as new customers of ours also need to reach out to SF Support to have them whitelist SalesforceIqDataSource for the site guest user.
Yes, its apex code in a managed package that sends emails. Don't know if the customer is using Sites but the users that encounter the error are full license SF users, not Sites Guest Users. I can have ask the customer if they are using sites. If they are and have multiple sites, and thus multiple Site Guest User accounts, do all of them have to be whitelisted?
I have posted the issue on the SF Partners site also. Will report back here if they respond.
Thanks so much.
Todaythinking.com (https://www.todaythinking.com/sandeep-maheshwari-quotes/)
Todaythinking.com (https://www.todaythinking.com/)
digitalindiaportal.org (https://www.digitalindiaportal.org/)
I have tried the methods available on Google but none of them works fine if anyone have got the solution then please share it here.
Here is the link that I am following : https://hindimesahayta.in/khatrimaza-download-hd-bollywood-south-hindi-dubbed-hollywood-movies/
Instagram Caption (https://bloggingmafiya.com/instagram-caption/)
Best caption For Instagram (https://bloggingmafiya.com/instagram-caption/)
Love Status (https://bloggingmafiya.com/love-status-in-hindi/)
Cute Love Status (https://bloggingmafiya.com/cute-love-status-in-hindi/)
Best Attitude Status Hindi (https://bloggingmafiya.com/attitude-status-hindi/)
http://travelair.luwebs.com
http://travelair.luwebs.com
http://travelair.luwebs.com
http://travelair.luwebs.com