# S04002 {#s04002}

## Error Code {#error_code .section}

S04002

## Error Message {#error_message .section}

`The function view <xxx> does not exist. RefId: S04002`

## Probable Causes {#probable_causes .section}

This error occurs when granting a user the VIEW\_EXEC privilege to a function view that does not exist.

## Solutions {#solutions .section}

Log in as the admin and execute `rpc(getControllerAlias()`, `getFunctionViews`\) to check if the specified function view exists. If not, add this function view before granting the VIEW\_EXEC privilege.

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

