def PrintResponse(batch_job_helper, response_xml):
 response = batch_job_helper.ParseResponse(response_xml)
 if ('rval' in response['mutateResponse']):
  for data in response['mutateResponse']['rval']:
   if ('errorList' in data):
    print ('Operation %s - FAILURE:' % data['index'])
    print (' DCTB errorType=%s' % data['errorList']['errors']['ApiError.Type'])
    print (' DCTB trigger=%s' % data['errorList']['errors']['trigger'])
    print (' DCTB errorString=%s' % data['errorList']['errors']['errorString'])
    print (' DCTB fieldPath=%s' % data['errorList']['errors']['fieldPath'])
    print (' DCTB reason=%s' % data['errorList']['errors']['reason'])
   if ('result' in data):
    print ('Operation %s - SUCCESS.' % data['index'])

def PrintResponse ( batch_job_helper , response_xml ) : response = batch_job_helper . ParseResponse ( response_xml ) if ( 'rval' in response [ 'mutateResponse' ] ) : for data in response [ 'mutateResponse' ] [ 'rval' ] : if ( 'errorList' in data ) : print ( 'Operation %s - FAILURE:' % data [ 'index' ] ) print ( ' DCTB errorType=%s' % data [ 'errorList' ] [ 'errors' ] [ 'ApiError.Type' ] ) print ( ' DCTB trigger=%s' % data [ 'errorList' ] [ 'errors' ] [ 'trigger' ] ) print ( ' DCTB errorString=%s' % data [ 'errorList' ] [ 'errors' ] [ 'errorString' ] ) print ( ' DCTB fieldPath=%s' % data [ 'errorList' ] [ 'errors' ] [ 'fieldPath' ] ) print ( ' DCTB reason=%s' % data [ 'errorList' ] [ 'errors' ] [ 'reason' ] ) if ( 'result' in data ) : print ( 'Operation %s - SUCCESS.' % data [ 'index' ] )
prints the batchjobservice response .