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 ForumsDocumentsDocumentsError when updating a file through Documents ModuleError when updating a file through Documents Module
Previous
 
Next
New Post
10/3/2006 9:48 AM
 

In this thread, mentiond by imagemaker, someone seems to have a work-around:

http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/-1/threadid/58979/scope/posts/Default.aspx

pgp wrote

Believe I've found a work-around at least for City of Wilmington's environment -

 

1.       Problem occurs due to the file name already being contained in the Files table.

 

2.       The source of the problem seems to be in stored procedure AddFile.

 

     SELECT SCOPE_IDENTITY() is returning NULL because it’s outside the IF .. ELSE block. When the file name exists in the Files table the UPDATE block of the IF statement runs but NULL is still returned. Fix seems to be to move the SELECT SCOPE_IDENTITY() statement up into the INSERT block of the IF statement so that a valid identity is returned when inserting new files and nothing is returned when updating an existing file name.

 

Is this change to the "AddFile" stored procedure recomended?

In addition to hismightiness's post I experienced this with the insecure file system, so this is happening with the secure and insecure file systems.

 
New Post
10/3/2006 2:55 PM
 
I saw that in Gemini last night.  Have you tried that yet?  Did it work for you?

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
10/5/2006 8:33 AM
 
From Anthony Glenwright himself... 

http://support.dotnetnuke.com/issue/ViewIssue.aspx?ID=4196

I just tested it out and it worked.  Hooray! 

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
10/7/2006 5:57 PM
 
 
New Post
10/8/2006 9:14 AM
 
Is this just a script that is run from the SQL page or is this something that needs a recompile?

Icthus Technologies

Building Faith on the Internet
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsError when updating a file through Documents ModuleError when updating a file through 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