Skip to Content
author's profile photo Former Member
Former Member

Contact Us error:"Message The INSERT statement conflicted with the FOREIGN"

We are just trying to post a question using the Contact us interface. The referenced table, dbo.SupportSections, is empty so I am not sure why an indexing error is occuring. Any ideas?

Version 2007.1.651.1

Message The INSERT statement conflicted with the FOREIGN KEY constraint

"FK_SupportTickets_SupportSections". The conflict occurred in database "B1WebTools", table

"dbo.SupportSections", column 'SectionID'. The statement has been terminated.

Source .Net SqlClient Data Provider

Stack at netpoint.api.data.DataFunctions.ExecuteScalar(String SQL, IDataParameter[] parameters, String

connectionstring)

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 02:08 PM

    Thank you. I just think something isn't set up. I don't have any Sections defined. The supportsections table is completely empty. Also, when adding a ticket (contact us) it doesn't really tell us anything about what section ID it is using. So that may even be null. Is this functioality all web-side or is there something in B1 that ties to it?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Yeah , I think the url probabaly has something like "sectionid=1" so that means it's trying to create a ticket in the support queue 1 which doesn't exist. If you create a support queue the id for the first one will be "1" so that should essentially re-link everything and it should work.

      The problem is with the default data that is installed with webtools.

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 01:31 PM

    My best guess is as follows:

    When adding a SupportTicket, it must match a SupportSection. The constraint "FK_SupportTickets_SupportSections" ensures that every SupportTicket matches a corresponding SupportSection, on SupportTicket.SectionID=SupportSection.SectionID.

    Try ensuring that your SupportSection has a record with a SectionID that matches the SectionID of the SupportTicket record you are trying to add and let me know how it turns out.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 02:25 PM

    I've tried posting a couple times and it doesn't seem to be going through. One last try...

    I figured this out. A support queue is the same thing as a support section ID. Adding a queue created a support section and that corrected the error.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.