---
url: >-
  /flow/guide/scripting-reference/classes/file-connection/filecon.processerrordir.md
---

# FileCon.ProcessErrorDir

## Declaration

`function ProcessErrorDir : string`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := Source.FileCon.ProcessErrorDir; //the exact folder the file will be moved to if an error occurs
end;
```

## Description

Returns the actual file directory (resolved from the ErrorDir pattern) where the input file will be moved to if the processing fails with an error status.

You cannot set this value via script.
