# Flat file target contains only data from the latest job in Informatica: cause and fix

Source page: https://ipaaserrors.com/informatica/flat-file-target-contains-only-latest-data
Platform: Informatica · Synchronization tasks
Checked against vendor docs: 2026-11-20

An Informatica synchronization task truncates a flat file target before it writes to it, so the file holds only the latest job's data. To keep earlier data, use a post-session command to merge the target data into a master file in a different location.

## Error text

```
The flat file target contains only data from the latest job, not from earlier jobs.
```

## Likely causes

- The synchronization task truncates a flat file target before writing to it.

## How to fix it

1. Add a post-session command to the task that merges the target data with a master target file in a different location.
2. Read the combined data from the master file instead of the task's target file.

## Notes

The docs describe this as a problem and do not quote a fixed error message, so the text above describes it in the docs' terms.

## Sources

- [Synchronization task errors](https://docs.informatica.com/integration-cloud/data-integration/current-version/troubleshooting/troubleshooting/troubleshooting-a-synchronization-task/synchronization-task-errors.html)

From iPaaS Errors (https://ipaaserrors.com), part of iPaaS Group. When citing, link to https://ipaaserrors.com/informatica/flat-file-target-contains-only-latest-data and the vendor documentation above.
