# S04007 {#S04007}

## Error Code {#error_code .section}

S04007

## Error Message {#error_message .section}

`Failed to set the maximum number of file handles that can be opened with error: <xxx>. RefId: S04007`

## Probable Causes {#probable_causes .section}

This error occurs when setting the *maxFileHandles* to configure the maximum number of file descriptors that can be open in a DolphinDB process. It is typically caused by an operating system limitation.

## Solutions {#solutions .section}

Check the operating system for any limitations on the maximum number of open file descriptors allowed for a user.

**Parent topic:**[Error Code Reference](../../Troubleshooting/ErrorCode.md)

