# Open File

Displays a dialog window that allows the User to open a file.

<table data-header-hidden><thead><tr><th width="179.75" valign="top"></th><th width="289.8333740234375" valign="top"></th></tr></thead><tbody><tr><td valign="top">Title</td><td valign="top">[Text] The text, variable value, or result of calculations that will be displayed in the title of the dialog window.</td></tr><tr><td valign="top">Filter</td><td valign="top"><p>[Text] If necessary, a file filter can be specified. For each filtering parameter, the filter string contains a description of the filter followed by a vertical bar (<code>|</code>) and the filter pattern. Strings for different filtering parameters are separated by a vertical bar.</p><p>For example, <code>"Text files (*.txt)|*.txt|All files (*.*)|*.*"</code> - the dialog will provide a choice between two options: <code>"Text files (*.txt)"</code> and <code>"All files (*.*)"</code></p></td></tr><tr><td valign="top">Default Extension</td><td valign="top"><p>[Text] The default file name extension.</p><p>This property is used only if "All files (*.*)" is selected in the filter field and the User has not specified an extension.</p><p>For example, <code>"txt"</code> (without the dot).</p></td></tr><tr><td valign="top">File Path</td><td valign="top">[Text] Returns the path to the file selected by the User.</td></tr><tr><td valign="top">Error Handling Level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - by default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are handled.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error Output Direction</td><td valign="top"><p>Select the output direction from the block in case of an error. Possible values:</p><ul><li>"Default" - by default;</li><li>"Right" - to the right;</li><li>"Bottom" - down.</li></ul><p>This property allows you to determine the output direction in case of errors for blocks that do not contain the "If Error" connector (for example, the "Condition" block).</p><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Message Level</td><td valign="top"><p>Select the message level that the blocks will output during operation. Possible values:</p><ul><li>"Default" - by default;</li><li>"Release" - output is disabled;</li><li>"Debug" - main information output;</li><li>"Detailed" - detailed information output.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error Text</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block's work.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sherparpa.ru/en/sherpa-rpa/sherpa-designer/spravochnik-blokov/dialogovye-okna-dialogs/otkryt-fail-openfiledialog.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
