--- title: "Reassign the location of an action - Web harvesting. Mozenda" slug: "reassign-the-location-of-an-action" description: "Updates to a website can cause an agent to "lose" an element that contained data it was previously harvesting. If an element's location changes, ..." tags: ["troubleshooting", "error", "element not found", "alternate", "location", "change", "another", "other", "new"] updated: 2024-05-14T12:14:05Z published: 2024-05-14T12:14:05Z canonical: "help.mozenda.com/reassign-the-location-of-an-action" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mozenda.com/llms.txt > Use this file to discover all available pages before exploring further. # Reassign the location of an action Updates to a website can cause an agent to "lose" an element that contained data it was previously harvesting. If an element's location changes, you can reassign any associated actions to the element's new location to fix any errors. #### Reassign the location of an errored action In the Agent Builder: 1. Open the agent. 2. Test the agent on the page that it is not finding the information. 3. Click **Change where this Action looks for the element**. ![Reassign the Location of an Action_Image1(1)](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/Reassign%20the%20Location%20of%20an%20Action_Image1%281%29.PNG) 1. Click **Reassign Current Location** in the **Change Location** panel. ![Reassign the Location of an Action_Image2(1)](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/Reassign%20the%20Location%20of%20an%20Action_Image2%281%29.png) 1. Click the item that the agent was unable to find. This will replace the old XPath expression with a new one. ![Reassign the Location of an Action_Image3(1)](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/Reassign%20the%20Location%20of%20an%20Action_Image3%281%29.png) #### Reassign the location of an action In the Agent Builder: 1. Open the agent. 2. Right-click the action. 3. Select **Location** > **Reassign Current Location**. ![Reassign the Location of an Action_Image4(1)](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/Reassign%20the%20Location%20of%20an%20Action_Image4%281%29.PNG) 1. Click the item the agent was unable to find. This will replace the old XPath expression with a new one. ![Reassign the Location of an Action_Image5(1)](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/Reassign%20the%20Location%20of%20an%20Action_Image5%281%29.png)