By any chance are you manually supplying the value of zero?  Because if you are
it will interpreted as you dont have a valid primary key and it should try and
generate one.

Send me your project and I will look it over....

-dave

"Schrecengost, James" wrote:

> Okay..  I have been playing/testing in my spare time (not much.. but..) And
> here is the situation..
> As some of you may know, I am having problem's saving to a DB because of
> this error:
> NSInternalInconsistencyException: _primaryKeyForObject:: EODatabaseContext
> 0x476330 is unable to obtain a primary key for EOGenericRecord object
> 0x4658d0
>
> Which is telling me it cannot generate a PK for me, because there is no
> sequence (Oracle).
> My issue is this: I am supplying the PK field to it, and it shouldn't have
> to generate the PK for me.
> Now, I have a test application I toss stuff into to work out, and when I
> used the wizard to generate a sample query/select/update page, everything
> works fine.  So I did the same in the other application, so the pages are
> identical (using all the generated defaults and such) and I still get this
> error.  Which leads me to believe it is something I have done in the
> application, not the component, neccesarily.  I am baffled at this point as
> to why in one app, I provide the PK and it is perfectly happy, and the same
> page in a different application completely refuses the key, and insists it
> must create it.
>
> Hopefully that will spark something in someones head that can help me..
> thanks!
>
> These opinions are mine, and not necessarily those of my employer.
>
> James 'Ghostman' Schrecengost
> Johns Manville, Electronic Commerce Team
> [EMAIL PROTECTED]
> 303-978-2677

Reply via email to