dbTalk Databases Forums  

Uniobjects Updating File with trigger

comp.databases.pick comp.databases.pick


Discuss Uniobjects Updating File with trigger in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sm.shaffer@att.net
 
Posts: n/a

Default Uniobjects Updating File with trigger - 03-08-2007 , 04:15 PM







U2 Gurus,

I am using Unidata 5.2 and am working with using database triggers
to manage a flag attribute on a file.

The trigger looks for a "Y" in attr 45 and converts it to a timedate
stamp. If the field contains anything except a "Y", the trigger nulls
it (therefore setting it up to re-export).

This all works perfectly using a regular unidata login session, but,

When I try to set the Y in the attr and write it out from a vb.net &
uniobjects application, the write blows up with error 39207 (Failed to
read from the slave correctly) and the session object is immediately
terminated.

I have tried using a writev method, a write method, and calling a
subroutine to do the write, but all fail with the subroutine method
returning an error 30107 (Subroutine failed to complete successfuly).

If I remove the update trigger from the file all of the above
methods will write out the record successfully with the "Y" in attr
45.

I am thinking it has something to do with the uniobjects rpc login
not having the correct environment to execute the trigger program?
( I am using the same login to test with the telnet session.)

Maybe having something to do with global cataloging?

Anyone run into this situation or have any ideas?

Any ideas or help would be a godsend, I can't afford to lose any more
hair as it is pretty thin right now.

Thanks,
Steve Shaffer


Reply With Quote
  #2  
Old   
tomit
 
Posts: n/a

Default Re: Uniobjects Updating File with trigger - 03-09-2007 , 06:12 AM






Steve,

The trigger program must be globally catalogued.

Tom


Reply With Quote
  #3  
Old   
sm.shaffer@att.net
 
Posts: n/a

Default Re: Uniobjects Updating File with trigger - 03-09-2007 , 11:36 AM



Tom,

I'm pretty sure that the trigger is globally cataloged and it works
perfectly from inside a normal telnet login.

It is only from a uniobjects/rpc type session to the same username/
password that it blows up.

Steve


On Mar 9, 7:12 am, "tomit" <cord... (AT) sddc (DOT) army.mil> wrote:
Quote:
Steve,

The trigger program must be globally catalogued.

Tom



Reply With Quote
  #4  
Old   
tomit
 
Posts: n/a

Default Re: Uniobjects Updating File with trigger - 03-12-2007 , 04:50 AM



Steve,

We're on Unidata.

Uniobjects updates of trigger enabled files work fine on our system.
I'm not aware that our java programmers do anything special.

Are Uniobjects writes working successfully on files without triggers?
If you do a MAKE.MAP.FILE and then edit _MAP_ [trigger program], do
you find it?

Tom


Reply With Quote
  #5  
Old   
sm.shaffer@att.net
 
Posts: n/a

Default Re: Uniobjects Updating File with trigger - 03-12-2007 , 11:10 PM



Tom,

Found the problem, it was a common block not initialized which
involved the Manage 2000 ERP environment.

This was causing the trigger program to abort prematurely without
warning or error message.

Thanks so much for your help.

Take Care,
Steve


On Mar 12, 5:50 am, "tomit" <cord... (AT) sddc (DOT) army.mil> wrote:
Quote:
Steve,

We're on Unidata.

Uniobjects updates of trigger enabled files work fine on our system.
I'm not aware that our java programmers do anything special.

Are Uniobjects writes working successfully on files without triggers?
If you do a MAKE.MAP.FILE and then edit _MAP_ [trigger program], do
you find it?

Tom



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.