Print Page | Close Window

Error posting new topic

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=31272
Printed Date: 30 March 2026 at 3:54am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Error posting new topic
Posted By: RobUK
Subject: Error posting new topic
Date Posted: 19 October 2015 at 10:48am
Hi,
Can anyone assist please?

Our users are unable to create a new topic but replies seem to work ok.

The error is:

Server Error in Forum Application
An error has occurred while writing to the database.
Please contact the Forum Administrator.

Support Error Code:- err_SQLServer_save_new_topic_data
File Name:- new_post.asp
Forum Version:- 11.04

Error details:-
Microsoft OLE DB Provider for SQL Server
Cannot insert duplicate key row in object 'dbo.tblTopic' with unique index 'Start_Thread_ID'. The duplicate key value is (0).

I have updated the forum files but this doesn't appear to have fixed anything.

Prior to the error no updates or migrations had taken place, it just suddenly stopped working.

Thanks in advance.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 19 October 2015 at 12:02pm
Your database is corrupted.

Open the database table 'dbo.tblTopic' and locate the column 'Start_Thread_ID'. Once topic will have 0 in the 'Start_Thread_ID'. This topic needs to be deleted from the database.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: RobUK
Date Posted: 19 October 2015 at 4:48pm
Great thanks - that seems to have fixed it. :)


Posted By: RobUK
Date Posted: 11 December 2015 at 1:40pm
It has happened again, exact same error and exact same fix. Is there something that's causing this I can take a look at?


Posted By: RobUK
Date Posted: 29 April 2016 at 1:44pm

Hi,
Is there a way of permanently fixing this? It seems to break with the exact same error I would say about once a month.

Doing as you say and removing the ID=0 entry fixes the forum again.

I was wondering if there was some sort of repair utility I could try? Or is a primary key or something wrong somewhere?


Posted By: WebWiz-Bruce
Date Posted: 29 April 2016 at 3:53pm
This error is extremely rare and would only occur if the file to process a new post does not complete.

If you are getting this error often then I would advise to look at issues on your server to determine why the process to save the post is not completing.

It could be a stability issue on the server causing the server or app pool to crash or that the app pool is not recycling correctly and not allowing any threads to complete before the old app pool process is shut down.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: RobUK
Date Posted: 29 April 2016 at 4:55pm
It is hosted with yourself so shall I just log a ticket?

I have another forum with you too and that one is fine.


Posted By: WebWiz-Bruce
Date Posted: 03 May 2016 at 8:52am
Yes, you should open a support ticket so that we can investigate the issue.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: RobUK
Date Posted: 03 May 2016 at 9:08am
Great thanks, I'll log one this week.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net