---
url: >-
  /statelake/scripting-reference/classes/file-connection-class-tflofilecon/filecon.processerrordir.md
---

# FileCon.ProcessErrorDir

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.

**Declaration**: function ProcessErrorDir : string

Example.

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