Ask Your Question

Revision history [back]

DELIMITER = ';'

for record in records:
  try:
    if record.value['text'].endswith(DELIMITER):
      record.value['text'] = record.value['text'][:-1]

    output.write(record)

  except Exception as e:
    # Send record to error
    error.write(record, str(e))

image description

DELIMITER = ';'

DELIMITER = ';'

for record in records:
  try:
    # Assuming the data is in the /text field
    if record.value['text'].endswith(DELIMITER):
      record.value['text'] = record.value['text'][:-1]

    output.write(record)

  except Exception as e:
    # Send record to error
    error.write(record, str(e))

image description