HomeHome Product Discus... Product Discus...SmithCartSmithCartThe stored procedure The stored procedure 'dbo.DNN_Smith_AddEmailTemplateSC' doesn't exist.
Previous
 
Next
New Post
7/13/2011 6:46 AM
 

On one of my sites that I was not getting emails for I was instructed to setup the email templates, However When I try to add one. Upon clicking the Submit button I get sent back to the main cart page adn am presented with this error at the bottom of the page:

 

Error A critical error has occurred.
The stored procedure 'dbo.DNN_Smith_AddEmailTemplateSC' doesn't exist.

 

Any thoughts?

 
New Post
7/13/2011 1:51 PM
 

I have tried to reinstall the latest cart software… that did not fix this.  The Event viewer lists this error message as well:

7/13/2011 4:42:06 PM   Page Load Exception   superadmin$cb     AssemblyVersion: 5.6.3; PortalID: 0; PortalName< ...

AssemblyVersion: 5.6.3
PortalID: 0
PortalName: Ty Cobb - Museum
UserID: 1
ActiveTabID: 75
ActiveTabName: Gift Store
RawURL: /GiftStore/tabid/75/ctl/EmailTemplate/mid/403/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://tycobbmuseum.org/GiftStore/tabid/75/ctl/EmailTemplate/mid/403/Default.aspx
UserAgent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 22a7fca4-fbb9-47b2-96ed-bc8a8b379924
InnerException: The stored procedure 'dbo.DNN_Smith_AddEmailTemplateSC' doesn't exist.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Data.SqlClient.SqlCommand.DeriveParameters
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: The stored procedure 'dbo.DNN_Smith_AddEmailTemplateSC' doesn't exist. ---> System.InvalidOperationException: The stored procedure 'dbo.DNN_Smith_AddEmailTemplateSC' doesn't exist. at System.Data.SqlClient.SqlCommand.DeriveParameters() at System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.DiscoverSpParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter, Object[] parameterValues) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, String spName, Object[] parameterValues) at Smith.DNN.Modules.BuyNow.SqlDataProvider.AddEmailTemplate(Int32 tabModuleID, String name, String subject, String template, Int32 portalID) at Smith.DNN.Modules.BuyNow.EmailTemplateController.AddEmailTemplate(EmailTemplateInfo objEmailTemplate) at Smith.DNN.Modules.BuyNow.EmailTemplate.btnSubmit_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: WEBSERV01

Please let me know how to fix this so this client can get their emails… is seems that the stored procedure just needs to be put in place (how can I do this?)

Why would this be missing from when upgrading? This issue also occurs on another site of ours – This is similar as this happened after the 4.42 upgrade.

Let me know. Thanks.

 
New Post
7/14/2011 9:45 AM
 

Use SQL Management Studio and create the stored proc:

 

CREATE PROCEDURE [Smith_AddEmailTemplateSC]

@TabModuleID int,

@Name nvarchar(50),

@Subject nvarchar(255),

@Template ntext,

@PortalID int

AS

INSERT INTO Smith_EmailTemplateSC (

[TabModuleID],

[Name],

[Subject],

[Template],

PortalID

) VALUES (

@TabModuleID,

@Name,

@Subject,

@Template,

@PortalID

) 

 

select SCOPE_IDENTITY()

 

 

 
New Post
7/14/2011 11:42 AM
 

thank you for this info. I will keep this handy - I reinstalled the store from scratch and fixed this that way, but for future reference I will keep this, Thank you.

 
New Post
7/15/2011 8:00 AM
 

I had a similar problem. I also installed the SmithCart module from scratch. I did delete the existing SQLServer tables and stored procs prior to the install. This seemed to fix the problem. But, I am having problems with the 5 star rating system. It appears that the stars are not enabled, i.e. clicking on them produces no results.

 
New Post
7/15/2011 6:10 PM
 
Hi Mike,

Do you have Show Customer Reviews enabled? A new tab titled “Review” will be displayed on the product details page. This feature will allow customers to rate products and write reviews about products.

Thanks
 
New Post
7/16/2011 7:55 AM
 

Hi Kevin - Yes, I do have the reviews enabled. I'm able to write and manage the review, but I'm unable process the click event on the stars. Again, this may be associated with not clearing the desktopmodules with the last install. I'll do the clean install and follow up.

Mike

 
New Post
7/26/2011 9:42 PM
 
Hi Mike,

This has been addressed in the latest version of the Cart v.4.46.

Thanks,
 
New Post
10/17/2011 3:27 PM
 

Pardon my ignorance...but I am not a developer.  So where do I go in the SQL server manager to add this procedure?  Any help would be most appreciated!

 
New Post
10/18/2011 12:07 PM
 
Hi Michelle,
SQL Mgmt Studio is the client program for the SQL Server Database. Do you have it loaded on your system or do you have any IT people at your company?


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
10/18/2011 12:51 PM
 

I have direct access to my server and yes I do have the SQL server Mgmt studio...I am just not sure what to do at that point. 

 
New Post
10/18/2011 1:41 PM
 
After you load SQL Mgmt Studio do the following:

1. Click on your database in the object explorer
2. Click the plus sign to expand the database
3, Click on the "New Query Button" on the toolbar
4. Cut and paste the stored proc above into the new query window
5. Click the "execute" button on the toolbar to run/save the stored proc


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
10/18/2011 9:26 PM
 

THANKS!!!  The emails are working great!!!  Again...Thank you for you help!

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartThe stored procedure The stored procedure 'dbo.DNN_Smith_AddEmailTemplateSC' doesn't exist.