When a destination table changes unexpectedly, tracing which node is responsible requires opening nodes one by one. Code search scans the code content of all nodes in your workspace by keyword, so you can find the responsible node without manually checking each one.
Supported edition
Code search requires DataWorks Standard Edition or a higher edition.
After you upgrade to a supported edition, historical data is automatically synchronized the next day. On the day of the upgrade, searches may return no results or incomplete results.
Search for code
-
Go to the DataStudio page. Log in to the DataWorks console. In the top navigation bar, select the region. In the left-side navigation pane, choose Data Development and O&M > Data Development. Select your workspace from the drop-down list, then click Go to Data Development.
-
In the upper part of the Scheduled Workflow pane, click the
icon. The Search Code tab opens on the right. 
-
Enter keywords in Area 1.

Code search matches against the code content of nodes in your workspace. The more specific the keyword, the more relevant the results.
Keyword type What to enter Example SQL operation A statement fragment to find nodes that run a specific operation alter table testTable name The table name to find all nodes that reference it rpt_user -
(Optional) Narrow the scope with filters. Click Show next to the search box to open the advanced filters: Without filters, the search covers all nodes in the current workspace.
Code search covers nodes in the Scheduled Workflow, Ad Hoc Query, Manually Triggered Workflows, Manually Triggered Nodes, and Recycle Bin tabs. The Manually Triggered Nodes tab is available only in DataWorks V1.0. For details, see Features on the DataStudio page.
Filter Use when Node Type You want results from a specific node type only Owner You want to find nodes owned by a specific person Modification Time You want to limit results to a recent time window -
Click Search.
-
Review the results in Area 2. Each result shows the matching code snippet and the node that contains it. From the results list, you can:
-
Click the node name to open the node details.
-
Click Copy code to copy the code snippet.
-