Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Datadeploy return Code
GodBlessMe
Hi .
Iam able to deploy a DCR to Database with datadeploy when a DCR is saved. Iam invoking a callServer("/some.ipl",param) from the DCT on onSaveDone event to deploy the DCR to Database(basically, the ipl contains a call to iwdd.ipl).
I want to know whether Datadeploy returns any code with which i can know that the deployment was successful or it failed. In my ipl i dont have anything which tells the user that the callServer() was successful or it failed. I want to throw some exception if the Datadeploy failed to deploy
Thanks.
Find more posts tagged with
Comments
Migrateduser
Unfortunately the return code from iwdd.ipl is not quite reliable.
What version of DD are you using ?
GodBlessMe
I am Using DataDeploy 5.6 on Sun OS 5.8. How do I get that return code? Why do you think it is unreliable?
Thanks
Migrateduser
I didnt state clearly earlier. If you are using version of DD < 5.6 iwdd.ipl might return success although a deployment might have failed during a SQL operation. This problem has been fixed in DD5.6 tho.
an example to invoke
my $loadcmd = "$ddhome/bin/iwdd.ipl" .
" cfg=$ddhome/conf/loaddb.cfg" .
" deployment=multi" .
" myclearflag=$myclearflag" .
$logfilearg .
"";
print OUTFILE "INVOKING [$loadcmd]\n";
print STDERR "INVOKING [$loadcmd]\n";
$result=system($loadcmd);
print OUTFILE "result=[$result]\n";
if ($result != 0) {
print OUTFILE "Invocation failed\n";
} else {
print OUTFILE "Loaded database from file(s)\n";
}