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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Losing the will to liveLosing the will to live
Previous
 
Next
New Post
9/22/2010 4:17 PM
 
it just doesnt make sense. i just cant think where to look. my feeling is that its db related and not dnn. permissions or something. i never give up! thanks for the help seb

www.taxiroute.co.uk - Get a Fare Price!
 
New Post
9/22/2010 4:31 PM
 
most likely it is an issue of the database, like a wrong version of a sproc being used

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/22/2010 7:07 PM
 
Hello Trevor

Sorry, I don't have an answer to your problem but what Sebastian said may be true, also if your Add... Stored Procedures are not getting the right values from DNN then the inserts will fail too. 

What stands out to me is that anything that tries to insert a record fails with similar error "column does not allow nulls. INSERT fails."

You could check your StoredProcs against a fresh install of DNN same version, see if everything looks similar, I'd start with all of the Add... StoredProcs.

If that's not it and if you are able to run a source version and step into the AddTab function, check the values of the variables before they're sent to the DB but this seems less likely since the TabID is an autoid on the table itself.

Last gasp could be to run the fresh install to a new DB, then do an Import of your existing data into the new Tables then point your site to the new DB.

Typically when doing the Import you can specify in the "Edit Mappings" option to "Delete rows in destination table" & "Enable identity insert". Make sure the column mappings check out and then go. You can do one or many tables at once.

Either way, good luck!


Josh
 
New Post
9/23/2010 3:40 AM
 
This is happening during the move of the database, isn't it? I just solved a very similar error, but on a different table.

I have solved the problem by checking my transfer of data procedure. I am not an SQL expert, but this error seems to indicate that the transfer of data has not gone well (though you might have seen no error output). Visual Studio 2008 allows you to Publish a database for the web by saving the script file to rebuild the complete database. This script can be executed on the destination server. I had to split up my script in parts coz otherwise the SQL Manager ran out of memory.

You can then also inspect the script file, it's plain text. You of course have to start from a working DNN instance (I mean without the error)

If you get errors during the execution of the scripts, research those. If you have no errors, your installation should work.

____________________________________
The one-eyed in the land of the blind.
 
New Post
9/23/2010 4:12 PM
 
ok, my plan was tonight to go back to basics. to try and add a page to the database from underneath dnn. at db level to see if i still got errors.

i wrote the following sql to mimic adding a page but still hitting and error. anyone know what FK is blocking me?

First the error:

Msg 547, Level 16, State 0, Line 1
The INSERT statement conflicted with the FOREIGN KEY SAME TABLE constraint "FK_Tabs_Tabs". The conflict occurred in database "Dotnetnuke", table "dbo.Tabs", column 'TabID'.
The statement has been terminated.

and the sql it tried:

INSERT INTO dbo.Tabs (

PortalId,

TabName,

IsVisible,

DisableLink,

ParentId,

IconFile,

Title,

Description,

KeyWords,

IsDeleted,

Url,

SkinSrc,

ContainerSrc,

TabPath,

StartDate,

EndDate,

RefreshInterval,

PageHeadText,

IsSecure,

PermanentRedirect

)

VALUES (

0,

'From SQL Manual Query',

1,

0,

0,

0,

'From SQL Manual Query',

'From SQL Manual Query',

'From SQL Manual Query',

0,

NULL,

NULL,

'//SQL'

,NULL,

NULL,

NULL,

NULL,

0,

0,

0);


www.taxiroute.co.uk - Get a Fare Price!
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Losing the will to liveLosing the will to live


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