Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

SL 2011 Web Services/Web Apps Email Problem

(0) ShareShare
ReportReport
Posted on by

We've just installed Web Apps in our test environment and finally got it up and running relatively properly. We're having a problem with project timecards being set to "Completed" status.

We can save timecard entries, we can create new timecards but we cannot set the timecard to "Completed" status for approval. We receive an error saying "A server error occurred. Please see your web administrator for assistance. If logging is enabled, then this error has been recorded." Upon looking at the error logs, Web Apps isn't generating the error, Web Services is. It's giving us the error below.

Dynamics SL Message 16302: Fatal SQL Error~~~~ -> The EXECUTE permission was denied on the object 'sp_send_dbmail', database 'msdb', schema 'dbo'.

This error makes sense, but I've added the application pool user to the  DatabaseMailUserRole role (which has Execute permission) and I'm getting the same error.

I've tried running a SQL profile trace to catch this, but so far have been unable to locate where sp_send_dbmail is being called. I'm assuming it's being called to notify a supervisor of timecard completion, but can't nail this down.

Anybody have any suggestions?

Thanks

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: SL 2011 Web Services/Web Apps Email Problem

    Check the following:

    07718158D19D4f5f9D23B55DBF5DF1 user is mapped to msdb database with membership in DatabaseMailUserRole

    dbmail profile is setup with a default profile

    use MSDB; grant execute on sp_send_dbmail to "07718158D19D4f5f9D23B55DBF5DF1";

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Featured topics

Product updates

Dynamics 365 release plans