Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Install It!  Upgrading 3.2.2 to 3.3.7 Error 03.02.03.log 03.03.01.log
Previous Previous
 
Next Next
New Post 4/14/2008 7:04 AM
Resolved
User is offline Rad Srag
21 posts
10th Ranked


Upgrading 3.2.2 to 3.3.7 Error 03.02.03.log 03.03.01.log 

Hello all,

I upgraded my app from 3.2.2 to 3.3.7. I got the following error in the upgrade log:

03.02.03.log:

/***************************************************************

System.Data.SqlClient.SqlException:

The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_GSW_Files_GSW_Folders". The conflict occurred in database "GSW", table "dbo.GSW_Folders", column 'FolderID'.


ALTER TABLE dbo.GSW_Files ADD CONSTRAINT
 FK_GSW_Files_GSW_Folders FOREIGN KEY
 (FolderID) REFERENCES dbo.GSW_Folders (FolderID)

************************************************************/

I then ran the following statement to verify any integrity  inconsistencies:

SELECT  
  A.*,
  B.FolderID

FROM  GSW_Files AS A

LEFT JOIN GSW_Folders AS B
ON   A.FolderID = B.FolderId

WHERE  B.FolderID IS NULL; 

I discovered that the Files table has several records where FolderID = 0. However the Folders table does not have any record where FolderID = 0.

There are abviously files that are not "part" of a folder. What does this imply about my app?

How can it be fixed?

Thanks

 


RadSrag
 
New Post 4/16/2008 9:30 AM
User is offline Rad Srag
21 posts
10th Ranked


Re: Upgrading 3.2.2 to 3.3.7 Error 03.02.03.log 03.03.01.log 

I resolved this issue in the following way.

When applying the upgrade, an SQL script (03.02.03.SqlDataProvider) runs against the DB, and alters these tables by adding some new ID fields based on the Files.Folder - Folders.FolderPath fields. Then creates a constraint relating these tables on the newly created ID fields.

Before the 3.3.7 upgrade, my Files table had entries in the Folder field which didn't correspond to any entries in the Folders table, some the new ID field in one table didn't correspond the the ID of the other table. Then the script tried to create the constraint (see error above).

My solution was to add the following in the 03.02.03.SqlDataProvider file at before applying the upgrade:

/************************************************************************
2008-04-14  -      Added this statement to fix file path before
                              creating the Files_Folders constraint below. */
 
UPDATE {objectQualifier}Files
SET        Folder = 'GoodPath/'
WHERE Folder = 'C:/BadPath/BadPath/'
GO

/**************************************************************************/

Mind you, all this is probably due to the fact that this app is a testing version.

Cheers


RadSrag
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Install It!  Upgrading 3.2.2 to 3.3.7 Error 03.02.03.log 03.03.01.log
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Bring2mind
Document Centric DNN Module Solutions
www.bring2mind.net
WEBPC™ DotNetNuke® sites for Small Business
WEBPC™ are internet consultants and web hosters catering to the small business market.
www.webpc.biz
Perpetual Motion Interactive Systems Inc.
A solutions company specializing in Microsoft enterprise technologies.
www.perpetualmotion.ca

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP