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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Trying to Mass Import into the Documents ModuleTrying to Mass Import into the Documents Module
Previous
 
Next
New Post
1/18/2012 8:54 PM
 

Hello -

I've got an old DNN3 site that I've decided to just "recreate" since I want to make a bunch of changes anyway.

I've got the new site up (v5.6.6) and working fine.
I've created the "Documents" objects that I want to carry over from the old site.
I've also moved the files and synched the filesystem.
I have copied data from the old SQL server table (Documents) and created corresponding records in the URLTracking table.
I've also adjusted the ModuleID & FileID values to match those in the new system.

At this point I'm able to view or download the documents successfully.
The various Documents modules are also populated with the proper files.
Everything seems to be perfect - that is until I try to EDIT and save ANY document.

When I click "Update" I get the following error:
    Error: is currently unavailable.
    DotNetNuke.Services.Exceptions.ModuleLoadException: 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.Documents.SqlDataProvider.UpdateDocument(Int32 moduleId, Int32 ItemId, String Title, 
    String URL, Int32 UserId, Int32 OwnedByUserID, String Category, Int32 SortOrderIndex, String Description) at 
    DotNetNuke.Modules.Documents.DocumentController.UpdateDocument(DocumentInfo objDocument) at 
    DotNetNuke.Modules.Documents.EditDocs.Update(Boolean Override) --- End of inner exception stack trace ---

Apparently I've missed creating entries in a table - but I've gone over the stored procs for adding or editing documents and can't find any tables other than Documents & UrlTracking being updated...

Does anyone know the piece of the puzzle I'm missing???
If I can get this method to work it would be MUCH better than manually having to add several hundred documents manually and one at a time...

Thanks all,
Doug

 
New Post
1/24/2012 6:09 PM
 
No ideas?
It would be nice to be able to populate that last table with the proper info.

Otherwise I may just leave it the way it is - I can view & download the documents.
I just can't edit the document entry at all...

Thanks,
Doug
 
New Post
1/24/2012 8:40 PM
 

There is a mis-match in the number of parameters being passed in the documents module SqlDataProvider.UpdateDocument method and those expected in the SQL Server database's UpdateDocument stored procedure. Most likely the DotNetNuke.Modules.Documents.dll assembly file is the incorrect version or one of the sql scripts run when installing or upgrading the Documents module did not run or encountered an error.

If you can provide the version numbers of the Document's module on the old DNN 3.x site and that of the Document's module on the new DNN 5.6.6 site I can take a look at the method code and the stored procedure to see which one is "out of sync". It would also be helpful if you could check the file version of the DotNetNuke.Modules.Documents.dll in the site's /bin folder. As I recall there was a packaging error in one of the Documents 4.1.x releases that may also be at fault.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
3/6/2012 10:23 PM
 

Thanks for the offer Bill.
I've been busy on other projects and just got back to this today.

I didn't directly copy data between the servers...
I copied and pasted into Excel.
That let me tweak the document module IDs to match the new empty modules I'd created in the DNN5 site.
I XCOPYed the files from the old to new server and refreshed the file manager (recursive).
Then I had to manually tweak the fileIDs for each document.
Then import the finished spreadsheet contents into the Documents table.
Still this had to be faster than manually adding them one at a time - right?

So after all that the documents displayed, but I couldn't edit them - hence my first post...

Now - there is a 5.0.0 version of the documents module - I upgraded to this from the 4.2.2 version I had (I think that was the sub version).
AND NOW IT ALL WORKS PERFECTLY!!!!!!!!!!!

Makes me feel better about my DB capabilities - I thought I was going nuts for sure :)

Thanks again,
Doug

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Trying to Mass Import into the Documents ModuleTrying to Mass Import into the Documents Module


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