B2B Utility Functions Are Returning Always Zero Return Code Even In Case Of Error Scenario

(Doc ID 1324445.1)

Last updated on AUGUST 03, 2011

Applies to:

Oracle SOA Platform – B2B (Business to Business) - Version: and later   [Release: 11gR1 and later ]
Information in this document applies to any platform.


Why do the B2B utility functions (b2bexport, b2bimport, etc.) return 0, even when the utility encounters an error? For example:
ant -f ant-b2b-util.xml b2bexport -Dtpanames=test-Dexportfile test.zip

when "test" is an invalid Agreement name, results in an error in the export. However, if -- within a script -- the return code (i.e., $?) is viewed, this value is 0.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms