Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreStored Procedure "GetTaxRates" does not existStored Procedure "GetTaxRates" does not exist
Previous
 
Next
New Post
6/27/2006 6:50 AM
 

Dear all,

If you login as host and run the next SQL scripts with the checkbox on your problem will be solved without having to install the module again. Please take care that you still have to run the fix of the DNN team when they release it. The SP will not delete any data in case you might worry what they are ment for. Namely I do not know if this are the correct stored procedures. It works fine for me.

It seems that the next columns are missing. So run next script once:

STEP 1 - adding missing columns

Run this code only once. If you run twice it will give errors.

ALTER TABLE {databaseOwner}{objectQualifier}Store_Administration ADD   [DefaultShippingFee] money NULL
GO
ALTER TABLE {databaseOwner}{objectQualifier}Store_Administration ADD     [DefaultTaxRates] ntext NULL
GO

STEP 2 - adding stored procedures that failed.

Clear the textbox and copy the next code into the SQL box. It will never return errors.

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}Store_Administration_GetShippingFee]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure {databaseOwner}[{objectQualifier}Store_Administration_GetShippingFee]
GO

CREATE PROCEDURE {databaseOwner}{objectQualifier}Store_Administration_GetShippingFee
  @PortalID int
 AS
 SET NOCOUNT ON
 SELECT isnull(DefaultShippingFee, 0) Fee
 FROM  {databaseOwner}{objectQualifier}Store_Administration
 WHERE PortalID = @PortalID
GO

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}Store_Administration_UpdateShippingFee]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure {databaseOwner}[{objectQualifier}Store_Administration_UpdateShippingFee]
GO

CREATE PROCEDURE {databaseOwner}{objectQualifier}Store_Administration_UpdateShippingFee
  @PortalID int,
  @Fee money
 AS
 SET NOCOUNT ON
 UPDATE  {databaseOwner}{objectQualifier}Store_Administration
 SET  DefaultShippingFee = @Fee
 WHERE PortalID = @PortalID
GO

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}Store_Administration_GetTaxRates]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure {databaseOwner}[{objectQualifier}Store_Administration_GetTaxRates]
GO

CREATE PROCEDURE {databaseOwner}{objectQualifier}Store_Administration_GetTaxRates
  @PortalID int
 AS
 SET NOCOUNT ON
 SELECT isnull(DefaultTaxRates, ' ') DefaultTaxRates
 FROM  {databaseOwner}{objectQualifier}Store_Administration
 WHERE PortalID = @PortalID
GO

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}Store_Administration_UpdateTaxRates]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure {databaseOwner}[{objectQualifier}Store_Administration_UpdateTaxRates]
GO
CREATE PROCEDURE {databaseOwner}{objectQualifier}Store_Administration_UpdateTaxRates
  @PortalID int,
  @Rates ntext
 AS
 SET NOCOUNT ON
 UPDATE  {databaseOwner}{objectQualifier}Store_Administration
 SET  DefaultTaxRates = @Rates
 WHERE PortalID = @PortalID

STEP 3 - wait till there is a final fix and rerun all SQL scripts.

Since I have seen more SQL install scripts with same version number I do not know for sure which one have the recent stored procedures in them. I took the sql script from the source (1.0.0.1). Make sure you will rerun the scripts

Hope this will help you out for the moment.

Jelle

 
New Post
6/27/2006 7:15 AM
 

Unfortunately you will get more errors in for instance UpdateOrder. This might be caused because decimal and money parameter values of SQL statements are mixed. Since reinstalling if faster for me, I stop chasing where the SQL scripts fail.

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Parameter count does not match Parameter Value count.
Message: DotNetNuke.Services.Exceptions.PageLoadException: Parameter count does not match Parameter Value count. ---> System.ArgumentException: Parameter count does not match Parameter Value count. at Microsoft.ApplicationBlocks.Data.SqlHelper.AssignParameterValues(SqlParameter[] commandParameters, Object[] parameterValues) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.Store.Customer.SqlDataProvider.UpdateOrder(Int32 OrderID, String OrderNumber, Int32 ShippingAddressID, Int32 BillingAddressID, Decimal tax, Decimal shippingCost) at DotNetNuke.Modules.Store.Customer.OrderController.UpdateOrder(Int32 orderID, String orderNumber, Int32 shippingAddressID, Int32 billingAddressID, Decimal tax, Decimal shippingCost) at DotNetNuke.Modules.Store.WebControls.Checkout.GetFinalizedOrderInfo() at DotNetNuke.Modules.Store.Cart.PayPalPayment.imageButton1_Click(Object sender, ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.ImageButton.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 ---
StackTrace:


 
New Post
7/6/2006 10:59 PM
 
I am looking into this.

Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
New Post
9/11/2006 4:53 AM
 
I get an error when I run the script metioned above:

The stored procedure 'dbo.Store_Administration_GetTaxRates' doesn't exist.

But if I run in SQL Analyser:

exec dbo.Store_Administration_GetShippingFee 0

I get a result with no error.

Is it possible that the stored procedure call is hardcoded with a particular owner to the stored procudure?
 
New Post
9/11/2006 9:29 PM
 
I've also just noticed that if I am logged out I can view the products and click through the categories and use the shopping basket etc. fine.
But as soon as I log in there is an error.

I am willing to help if I can get access to teh source code to debug this. What is the process for joining the team?
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreStored Procedure "GetTaxRates" does not existStored Procedure "GetTaxRates" does not exist


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out