Unknown user-defined function DOC_EXTRACTION.CLOUD_EXTRACT_DOC_STRUCTURE

This error may occur when you try to run Cloud Processing and the database for the Snowsight Worksheet doesn’t match the database defined in your code. To resolve this issue, update the database to match the database that has the files you want to process.

Request failed for external function SNOWFLAKE_EXTRACT_DOC_STRUCTURE with remote service error: 500

You might get an error similar to the following when you try to run Local Processing:
100351 (P0000): Request failed for external function SNOWFLAKE_EXTRACT_DOC_STRUCTURE with remote service error: 500 '{"message":"Internal Server Error"}'; requests batch-id: 01beadad-0206-5638-0065-4b070147f522:1:1:0:0; request batch size: 1 rows; request retries: 3; response time (last retry): 3.88708s
To resolve the issue, try these troubleshooting tips:

Object ‘STATEMENTS’ does not exist or not authorized.

You might get an error similar to the following when you try to run Local Processing on a list of documents in a table:
002003 (42S02): SQL compilation error:
Object 'your_table' does not exist or not authorized.
This error may occur if the app does not have permissions to access the table. To grant the app access to the table, run the command below. Replace these placeholders with your information: your_db, your_schema, your_stage, and APP_NAME.
GRANT SELECT ON TABLE your_db.your_schema.your_table TO APPLICATION APP_NAME;