Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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 ForumsAnnouncementsAnnouncementsParameter count does not match error in 3.3.4 (in dNN 3.3.3 and 3.3.4)Parameter count does not match error in 3.3.4 (in dNN 3.3.3 and 3.3.4)
Previous
 
Next
New Post
10/5/2006 3:16 PM
 
ErikVB wrote

replace in all sqlDataProvider files this:
  {databaseOwner}sysObjects
into
  dbo.sysObjects

Hmm... something is wrong with this. There does not seem to be any  "{databaseOwner}sysObjects" in the SqlDataProvider files. But there are instances of dbo.sysObject. So it should be the other way around? I.e.

replace in all sqlDataProvider files this:
  dbo.sysObjects
into
  {databaseOwner}sysObjects

???

(Note: I did that, and am still getting errors during installation, saying that "user01.sysObjects" does not exist.)

 
New Post
10/6/2006 4:38 AM
 

the faulty {databaseOwner}sysObjects can be found in the following files:

  • 03.03.00.SqlDataProvider
  • 03.03.02.SqlDataProvider
  • 03.03.04.SqlDataProvider

The "Parameter count does not match Parameter Value count" error is caused by a change in the sprocs that is not applied if you db user does not have DBO rights. This seems to be a common practice in shared hosting environments

Maybe a quicker fix would be this (run all scripts from host>sql)

 drop procedure {databaseOwner}{objectQualifier}GetAnnouncements

next run this script:

CREATE procedure {databaseOwner}{objectQualifier}GetAnnouncements

@ModuleId int,
@StartDate datetime,
@EndDate datetime

as

select {objectQualifier}Announcements.ItemId,
       {objectQualifier}Announcements.ModuleId,
       {objectQualifier}Announcements.CreatedByUser,
       {objectQualifier}Announcements.CreatedDate,
       {objectQualifier}Announcements.Title,
       {objectQualifier}Announcements.URL,
       {objectQualifier}Announcements.Description,
       {objectQualifier}Announcements.ViewOrder,
       {objectQualifier}Announcements.PublishDate,
       {objectQualifier}UrlTracking.TrackClicks,
       {objectQualifier}UrlTracking.NewWindow
from   {objectQualifier}Announcements
left outer join {objectQualifier}UrlTracking on {objectQualifier}Announcements.URL = {objectQualifier}UrlTracking.Url and {objectQualifier}UrlTracking.ModuleId = @ModuleID
where  {objectQualifier}Announcements.ModuleId = @ModuleId
and    ( (({objectQualifier}Announcements.PublishDate >= @StartDate) or @StartDate is null) and (({objectQualifier}Announcements.PublishDate <= @EndDate) or @EndDate is null) )
order by {objectQualifier}Announcements.ViewOrder asc, {objectQualifier}Announcements.PublishDate desc

These two scripts will fix the GetAnnouncements sproc on your dnn instance.

The next version of announcements just entered the module release process, i hope it will be cleared for release soon.....

cheers,

Erik


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsAnnouncementsAnnouncementsParameter count does not match error in 3.3.4 (in dNN 3.3.3 and 3.3.4)Parameter count does not match error in 3.3.4 (in dNN 3.3.3 and 3.3.4)


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