- This topic has 8 replies, 4 voices, and was last updated 18 years, 11 months ago by .
-
Topic
-
I’m attempting to run msiAttach from within a tps. Even though I’m using a catch statment, it still errors the first time the process starts. Not only that it changes the HciConnName global variable to “hcitcl”. If I stop/start the connection everything is back to normal but if i stop and start the process it errors. Here is the tps I used for testing:
Code:proc tpsTestMSI { args } {
keylget args MODE mode ;# Fetch mode
global HciConnNameset dispList {} ;# Nothing to return
switch -exact — $mode {
start {
# Perform special init functions
# N.B.: there may or may not be a MSGID key in args
puts “In Start HciConnName is $HciConnName before MSIAttach”
catch { [ msiAttach ] }
puts “In Start HciConnName is $HciConnName after MSIAttach”
}run {
# ‘run’ mode always has a MSGID; fetch and process it
keylget args MSGID mh
lappend dispList “CONTINUE $mh”
}time {
# Timer-based processing
# N.B.: there may or may not be a MSGID key in args
}
shutdown {
# Doing some clean-up work
}
}return $dispList
}This is the output after starting the process for the first time:
In Start HciConnName is to_john before MSIAttach
11/10/2005 14:01:42
[msi :msi :ERR /0: to_john] msiGlobalInit: Called more than once!
In Start HciConnName is hcitcl after MSIAttach
Notice the msi :ERR and the second puts is displaying hcitcl.
This is the output after stopping and starting the connection only:
In Start HciConnName is to_john before MSIAttach
In Start HciConnName is to_john after MSIAttach
I placed this tps in the outbound data tps section of the connection. For testing this so that I can reproduce my problem I made a simple site with two connections and this was the only tps running.
I would appreciate it if anyone could reproduce this results or if anyone has an idea of why this is happening.
I am running QDX(TM) Integration Services 5.2.1P2 US
Thanks,
John Mercogliano III
Contractor, TekSystems
Systems Integration
Sentara Health Care
John Mercogliano
Sentara Healthcare
Hampton Roads, VA
- The forum ‘Cloverleaf’ is closed to new topics and replies.