When the code goes to try to access the Order->OriginCode.getProperty() it goes to fire the fault and will trigger that exception.
On Tue, Dec 11, 2018 at 5:58 PM Emerson CastaƱeda <eme...@gmail.com> wrote: > hi Lon > > What is the FaultFailureException message you are getting? and when? I > guess during the insertion by using a not existent FK, right? > > if it is not the case, please provide details in order to understand the > full context! > > Thanks > > EmeCas > > On Tue, Dec 11, 2018 at 7:51 PM Lon Varscsak <lon.varsc...@gmail.com> > wrote: > > > Okay, so I have a situation where I have a FK to a table where the DBA > was > > allowing objects to be deleted. Think Order to OriginCode (basically a > way > > to know which catalog the order came from)...but the OriginCode record > has > > been deleted. I'm going to put a stop to that, but in the meantime I > need > > someway to deal with these Orders still. > > > > Any thoughts on how I could handle this FaultFailureException and quietly > > insert a dummy object (maybe onPostLoad in Order)? > > > > Thanks, > > > > Lon > > >