How do I catch a "Send a Frown" error in VBA?
Err.Number and Err.Description does not contain the "Send a Frown" error but it displays on the screen halting the current process.
Capture - Send a frown.PNG
How do I catch a "Send a Frown" error in VBA?
Err.Number and Err.Description does not contain the "Send a Frown" error but it displays on the screen halting the current process.
Capture - Send a frown.PNG
Last edited by 6StringJazzer; 08-30-2018 at 07:45 AM. Reason: extended title
I did some research on this. You must be using Power Pivot or Power BI, because that's where the message comes from (would have been helpful to include this context in your description). And I have found no way to trap it in VBA. Someone with specific experience in those products may have more to add.
Jeff
| | |·| |·| |·| |·| | |:| | |·| |·|
Read the rules
Use code tags to [code]enclose your code![/code]
Hi Jeff,
Yes, it does originate from Power BI, the background process is "Microsoft Mashup Evaluation Container"
Attached is a screenshot of the "Task Manager"
Mashup.png
When data is refreshed, I get a message box "Send a Frown" at unpredictable, inconsistent intervals. For example, it will work seamlessly for five or six times then suddenly it will fail, and give this "Send a frown" message.
I need to develop my VBA code to step over this message. A normal VBA error handler does not deal with this. Not even an "On Error Resume next" deals with it. I can thus not capture the error (err) and deal with it in my code. When the "Send a frown" message appears, the entire process is on hold until I (the human) clicks on "Send a frown" or "Cancel". This is problematic since this process runs 3am in the morning on our servers.
The other option is to find a way to completely disable the "Send a frown" option.
This is a small cut of the system log that it generates during the "Send a frown":
Error Log.PNG
Last edited by Kayees; 09-10-2018 at 04:28 AM.
Since the error is not actually generated by your VBA code, I doubt you can handle it, other than perhaps using API calls to await the appearance of a message.
Everyone who confuses correlation and causation ends up dead.
OK Thank you Jeff, just two questions
1. Do you know of a forum for the Microsoft Mashup Evaluation Container?
2. Do you maybe have sample code for an API call to await the appearance of a the message?
1. I'm not Jeff.
2. You could try Microsoft's Answers
3. Not offhand, and apparently I'm not allowed to give you links to samples on other forums.
There's a big difference between commercial and competing, both of which are apparently off-limits. Anyway, I'll see if I can find the thread I was thinking of and we'll see.
The spirit of the rule is to not use Excel Forum as a platform for promoting other sites. However, since we require links for cross-posts, that is an exception.
The spirit of the rule is to stop advertising and trying to lure members to join other sites. This is clearly not the case here, Rory is trying to show help to a member, that is appears to be beyond the scope of this forum.
Rory, if you find that link, please share it.
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks