# Troubleshooting - [Hive Troubleshooting](/en/tools/hive/hive_troubleshooting#hive-troubleshooting) - [Trino(Presto) Troubleshooting](/en/tools/presto/presto_troubleshooting#presto-troubleshooting) - [Audit Logs Troubleshooting](https://docs.treasuredata.com/display/public/PD/Audit+Logs+Troubleshooting) - [Data Import Error Troubleshooting](https://docs.treasuredata.com/display/public/PD/Data+Import+Error+Troubleshooting) - [Profiles API Troubleshooting](https://docs.treasuredata.com/display/public/PD/Profiles+API+Troubleshooting) - [Submitted Workflows Troubleshooting](#submitted-workflows-troubleshooting) - [Policy Troubleshooting](#troubleshooting-enabled-or-disabled-policies) - [30-Day Data Retention Troubleshooting](/en/api/troubleshooting/30-day-data-retention-troubleshooting/) - [Log Troubleshooting](/en/api/troubleshooting/log-troubleshooting/) - [IP Allowlist Troubleshooting ](/en/api/troubleshooting/ip-allowlist-troubleshooting/) - Error Code Troubleshooting - [TOO_MANY_REQUESTS_FAILED](/en/tools/presto/presto_troubleshooting#too-many-requests-failed) - [ Bulk Import Status Code 409](/en/api/td-api/bulk-import-status-409#bulk-import-status-code-409) - [Trino(Presto) error: mismatched input 'xxxx' expecting .. SYNTAX_ERROR](/en/tools/presto/presto_troubleshooting#presto-error---mismatched-input-xxxx-expecting---syntax-error) - [Trino(Presto) Error: second argument of max_n/min_n must be less than or equal to 10000; found xxxx](/en/tools/presto/presto_troubleshooting#presto-error---second-argument-of-max-n-min-n-must-be-less-than-or-equal-to-10000---found-xxxx) - [Trino(Presto) error: column 'xxxx' cannot be resolved ... SYNTAX_ERROR](/en/tools/presto/presto_troubleshooting#presto-error---column-xxxx-cannot-be-resolved---syntax-error) - [Hive Queries Fail Automatically when Disk Space Limits Reached](/en/tools/hive/hive_troubleshooting#disk-space-exceeded-errors) - [Trino(Presto) error: Unexpected parameters (xxxx, xxxx) for function yyyy)](/en/tools/presto/presto_troubleshooting#presto-error---unexpected-parameters-for-function-yyyy) - [Invalid Table Alias or Column Reference](/en/tools/hive/hive_troubleshooting#invalid-table-alias-or-column-reference) # Submitted Workflows Troubleshooting In this article, we create an error in a workflow to guide you through the process of troubleshooting a workflow that you’ve submitted to Treasure Data. ## Introductory Tutorial If you haven’t already, start by going through the [TD Workflows Introductory Tutorial](https://docs.treasuredata.com/display/public/PD/Treasure+Workflow+Quick+Start+using+TD+Toolbelt+in+a+CLI). You will download and use the workflow project in the tutorial. ## Create an Error to Debug Navigate to the `nasdaq_analysis` directory from the introductory tutorial. Use the following syntax to create an error for us to debug: ```sql $ cat > queries/monthly_open.sql < ``` The command should return output similar to the following: ``` 2016-05-16 21:18:19 -0700: Digdag v0.7.1 id: 1105 name: +nasdaq_analysis state: group_error config: {"schedule":{"daily>":"07:00:00"},"_export":{"td":{"database":"workflow_temp"}}} parent: null upstreams: [] export params: {"td":{"database":"workflow_temp"}} store params: {} state params: {} id: 1106 name: +nasdaq_analysis+task1 state: success config: {"td>":"queries/daily_open.sql","create_table":"daily_open"} parent: 1105 upstreams: [] export params: {} store params: {"td":{"last_job_id":"66338029"}} state params: {} id: 1107 name: +nasdaq_analysis+task2 state: error config: {"td>":"queries/monthly_open.sql","create_table":"monthly_open"} parent: 1105 upstreams: [1106] export params: {} store params: {} state params: {} ``` You can see under the last task listed, named **+nasdaq_analysis+task2** that **state: error**, meaning this task is the one that failed. ### Review Logs of the Failed Task The command to get the logs for a particular tasks is as follows ``` $ td wf logs ``` Specifically, put the following: ``` $ td wf logs +nasdaq_analysis+task2 ``` Review the output to determine the cause of the errors. You can also use the job id to review error logs in TD Console. ### Fix the Query Fix the query and rerun the workflow. ```sql $ cat > queries/monthly_open.sql < --name fix-typo --latest-revision --all ``` Quickly run `td wf attempts` to see the new session attempt running. Run it again, and you’ll likely see it succeeded successfully. The most recent attempt has the same `session time` as the previous attempt that failed. This is the benefit of using `retry` in this instance, instead of `start`. This is particularly important if you have a daily scheduled workflow, and you only want to retry the current day’s session using any time-related parameters embedded into the workflow. Alternatively, you can use `--resume` to only rerun starting at the failed task and all subsequent tasks. # Troubleshooting Enabled or Disabled Policies As the account owner, be aware of the actions that occur when you enable or disable policies. **Enabling the Policies Feature** When you enable the Policies feature, you must: 1. Create policies that contain specified permissions 2. Assign existing users to policies **Disabling the Policies Feature** When you disable the Policies feature, the Policies pane is no longer visible. To view the permissions for your users, you must: 1. Go to **Administration > Users**. 2. Select a user to view. 3. Select **Permissions** to view and specify permissions.