Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Error message moving a topic
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

teaznutz
Starting Member

Belgium
28 Posts

Posted - 03 October 2005 :  04:23:03  Show Profile  Visit teaznutz's Homepage
I need help.
When i want to move a topic with one or more replies, then i get the following errormessage.

"Microsoft OLE DB Provider for SQL Server error '80040e2f'

UPDATE statement conflicted with TABLE REFERENCE constraint 'PORTAL_REPLY_FK01'. The conflict occurred in database 'Databasename', table 'PORTAL_REPLY'.

/post_info.asp, line 961

I can move a topic without replies, but as soon as somebody gives an answer, then i can't do it anymore!

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 03 October 2005 :  05:41:57  Show Profile  Visit MarcelG's Homepage
Teaznuts ; which mods have you installed ? The table 'PORTAL_REPLY_FK01' is not a default Snitz table.

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 03 October 2005 :  06:24:34  Show Profile
Sounds like your suspect table is PORTAL_REPLY, the constraint is actually PORTAL_REPLY_FK01

You need to look at line 961. You are probably executing an strSQL. to help diagnose, put this line just before line 961 :

Response.Write strSQL
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 October 2005 :  06:53:40  Show Profile  Send ruirib a Yahoo! Message
teaznutz, posts requesting help on moded forums should be made in the Help: Mod Implementation forum.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

teaznutz
Starting Member

Belgium
28 Posts

Posted - 03 October 2005 :  08:02:24  Show Profile  Visit teaznutz's Homepage
quote:
Originally posted by laser

Sounds like your suspect table is PORTAL_REPLY, the constraint is actually PORTAL_REPLY_FK01

You need to look at line 961. You are probably executing an strSQL. to help diagnose, put this line just before line 961 :

Response.Write strSQL



This is the exact errormessage:
"UPDATE PORTAL_TOPICS SET T_MESSAGE = the question that a forummember had.

, T_SUBJECT = 'window', CAT_ID = 2, FORUM_ID = 3, T_NEWS = 0 , T_SIG = 1 , T_MAIL = 0 WHERE TOPIC_ID = 12354
Microsoft OLE DB Provider for SQL Server error '80040e2f'

UPDATE statement conflicted with TABLE REFERENCE constraint 'PORTAL_REPLY_FK01'. The conflict occurred in database 'NLtdiclub', table 'PORTAL_REPLY'.

/post_info.asp, line 961


Line 961 is;

my_Conn.Execute(strSql)
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 03 October 2005 :  09:26:17  Show Profile
"the question that a forummember had" ... did that contain some special characters ? Like a ? or a ' or a " or a / etc...

If you have anything like that, remove them and try again.
Go to Top of Page

teaznutz
Starting Member

Belgium
28 Posts

Posted - 04 October 2005 :  04:18:50  Show Profile  Visit teaznutz's Homepage
quote:
Originally posted by laser

"the question that a forummember had" ... did that contain some special characters ? Like a ? or a ' or a " or a / etc...

If you have anything like that, remove them and try again.



i did some test.

When i type two messages and i want to remove them, i get this errormessage

UPDATE PORTAL_TOPICS SET T_MESSAGE = 'fkhjvfjhvdfjvkhcjkpaHJV', T_SUBJECT = 'Test', CAT_ID = 4, FORUM_ID = 24, T_NEWS = 0 , T_SIG = 1 , T_MAIL = 0 WHERE TOPIC_ID = 12385
Microsoft OLE DB Provider for SQL Server error '80040e2f'

UPDATE statement conflicted with TABLE REFERENCE constraint 'PORTAL_REPLY_FK01'. The conflict occurred in database 'NLdatabase', table 'PORTAL_REPLY'.

/post_info.asp, line 961


I think it has something to do with the "'PORTAL_REPLY_FK01'" but i'm not sure what the problem is!
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 04 October 2005 :  04:25:08  Show Profile  Visit HuwR's Homepage
teaznutz,
Did you create your SQL database using the forums setup scripts or did you upsize an access DB ?

I ask because Snitz does not have any foreign key constraints, the error you are getting would indicate that you have, you will need to remove them.
Go to Top of Page

teaznutz
Starting Member

Belgium
28 Posts

Posted - 04 October 2005 :  06:20:50  Show Profile  Visit teaznutz's Homepage
quote:
Originally posted by HuwR

teaznutz,
Did you create your SQL database using the forums setup scripts or did you upsize an access DB ?

I ask because Snitz does not have any foreign key constraints, the error you are getting would indicate that you have, you will need to remove them.



I thought it wasn't an "updated" access database.
So it's an original SQL database.

I can move a topic from one place to another, as long there are no replies in them! Kinda strange
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 04 October 2005 :  08:37:14  Show Profile  Visit HuwR's Homepage
well you need to remove ALL foriegn key constraints from your Database, it should not have any.
Go to Top of Page

teaznutz
Starting Member

Belgium
28 Posts

Posted - 04 October 2005 :  10:10:36  Show Profile  Visit teaznutz's Homepage
quote:
Originally posted by HuwR

well you need to remove ALL foriegn key constraints from your Database, it should not have any.


I'm sorry but i don't know what you mean.
Go to Top of Page

teaznutz
Starting Member

Belgium
28 Posts

Posted - 06 October 2005 :  05:30:41  Show Profile  Visit teaznutz's Homepage
Anyone??
Go to Top of Page

teaznutz
Starting Member

Belgium
28 Posts

Posted - 10 October 2005 :  08:07:02  Show Profile  Visit teaznutz's Homepage
Nobody?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 October 2005 :  10:37:38  Show Profile  Send ruirib a Yahoo! Message
You need a tool that allowed you to see those constraints and use it to remove them, like SQL Server Entreprise Manager.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 10 October 2005 :  11:54:47  Show Profile  Visit AnonJr's Homepage
If you've got Access, you can view the relationships. I think there are other tools out there, though I don't know of any off the top of my head.

..now that I think about it, in a pinch you could always see if there is a trial version of access available for download and use it for this problem. Then look into either access or another program for future reference.

Edited by - AnonJr on 10 October 2005 11:56:03
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 2.51 seconds. Powered By: Snitz Forums 2000 Version 3.4.07