KB Article #66610

broadcast to a list of partner fails when synchronous transfer is used

Problem

--CFTUTIL in synchronous mode fails when sending a file to a list of partners
--the SWAITCAT returns an error although the transfers are correctly done


Resolution

--sending to a list of partners result in a generic CFT catalog entry related to the CFTDEST entry.
--when all transfers are achived to the partners from the list, the status of the generic entry status is changed to K (Keep) and not T (Terminated)
--therefor the SWAICAT return an error as the status is not just T
--the solution is to test the status of the generic catalog entry for that brodcast transfer so we can exit the synchroneous step with a return code set accordingly to the real transfer status.
--exemple bellow:



CONFIG TYPE=COM,MEDIACOM=TCPIP,FNAME=xhttp://server_address:port
/* Initialize internal variables 'DATETIME' to set the IDA parameter to be up to identify the righ catalog record*/
CHAR name=DATETIME,size = 16
_DatTim parm = DATETIME
/* ********************************************/
SEND PART=LIST_partner_1,IDF=TEST, IDA="%DATETIME%"
SWAITCAT SELECT='IDTU=="%_CAT_IDTU%"'
IF NAME = _CMDRET, VALUE = 0, TYPE = NEQ
  CLEARRC
  TEST DIRECT=SEND,IDA="%DATETIME%"
ENDIF



Note1: the exit return code will then be from the test command
Note2: IDA is set to endsure the uniqueness of the transfer at SWAITCAT time
Note3: IDT & IDTU are available to the SWAITCAT only starting 2.6.4 SP1