× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi All,
I've got an odd thing happening with OVRDBF and I'm a bit stumped about
where to look next...

Application A feeds data to Applications B and C.
B and C are effectively two different instances of the same database.

The way it does this is Application A uses SQL Create Alias to create two
tables in QTEMP which point to payload tables in Applications B and C
respectively.
Based on data content, Application A will write to either B or C. This
works fine.

Applications B and C need additional records created on another table and
this is handled by a trigger program on the files written to by Application
A.
The trigger program picks up the appropriate library from the trigger
buffer, sets up an activation group override and runs an SQL Insert. And
then removes the override.

This process has worked fine for a couple of years with thousands of
transactions per day.
In the last few months, the write to Application C from the trigger is
failing as the process is actually trying to write to Application B and
getting a duplicate key error.
It appears as though the override is being ignored.

I'm very confused about this because:
- The process worked fine for a couple of years without issue. Now, it
still works fine for Applications B's transactions but always fails for
Application C's transactions.
- The process still works fine in the TST environments which uses the exact
same programs including the triggers.
- I can see no differences in the files being written to with regard to
authority, level or database relations.
- Application A is a simple batch process which just shunts records from
one application to another.

Has anyone else come across anything like this?
thanks,
Craig

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.