Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7952841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:58:56+00:00 2026-06-04T02:58:56+00:00

This is an odd one… I have two tables tableA and tableB tableB has

  • 0

This is an odd one…
I have two tables tableA and tableB
tableB has a foreign key in tableA.

I have 2 sprocs, one inserts to tableA, the other to tableB.

using odp.net I run the first sproc, inserting a record into tableA. I can then open SQLPlus and select this record

I then run the second sproc, inserting into tableB.
It fails with “ora-02291-integrity-constraint-violated-parent-key-not-found”

I have double, triple, quadruple checked for typos etc… nothing.

To make things even more odd when I do this same operation manually in SQLPlus, with the same sprocs, it works without a problem.

This is killing me 12+ hours looking for something I know has to be simple.
Here are the sprocs.

SPROCA

CREATE OR REPLACE PROCEDURE genData_TestTrackerSegment
  (
    INTX_ID IN IntxSegment.IntxID%TYPE,
    siteid IN INT
  )
AS
BEGIN
INSERT INTO INTXSEGMENT(INTXID,INTXTYPEID,VERSION,ISPRIVATE,
SEGMENTTYPE,STARTDATETIME,INTXDIRECTION,SITEID)
VALUES(INTX_ID,1,1,0,1,SYSDATE,1,siteid);
COMMIT;
END;

SPROCB

CREATE OR REPLACE PROCEDURE genData_TestTrackerPart
  (
    INTX_ID IN IntxSegment.IntxID%TYPE,
    INTX_PART_ID IN INTX_PARTICIPANT.INTX_PART_ID%TYPE,
    INDIVID IN INDIVIDUAL.INDIVID%TYPE,
    CALLID IN INTX_PARTICIPANT.CALLIDKEY%TYPE
  )AS
BEGIN
INSERT INTO
INTX_PARTICIPANT(INTXID,INTX_PART_ID,INDIVID,ROLE,
CALLIDKEY,RECORDED,VERSION,STARTDATETIME)
VALUES(INTX_ID,INTX_PART_ID,INDIVID,1,CALLID,1,1,SYSDATE);
COMMIT;
END;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:58:58+00:00Added an answer on June 4, 2026 at 2:58 am

    Yeah I am more than certain – it is without a shadow of a doubt that FKEY.
    That being said I fixed this….. This is sooooooo stupid by the way.
    I was under the (mistaken) assumption that ‘named parameters’ in ODP.NET meant I did not have to add these parameters in the same order they are referenced in the stored procedure. Long story short – after I re-wrote this about 4 times I modified the order of the parameters and it is now fixed. –

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Odd one this. I am using NHibernate with one website. I have configured log4net
Alright so this is an odd one... I have an application built in ColdFusion
Right, this is an odd one. We have a web service that returns data
this is an odd one, that has eaten a lot of hours of my
This is a really odd one that has been annoying me for some time,
This question has two aspects, both related to indices. I have a dataset with
This is an odd one. I added a file to a project, thought I
This is a very odd one and I'm not sure how to proceed. Basically,
The project requirements are odd for this one, but I'm looking to get some
I found this odd behavior and I'm breaking my brains with this... anyone has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.