---
title: Restore an Animal Record
slug: help/en-us/dairycomp/restore-animal
docTags: 
createdAt: 2026-01-26T11:43:17.811Z
---

<font color="#67854E">**Question**</font>: I have mistakenly marked an animal as SOLD or DIED. How can I bring the animal back to its previous status?

<font color="#67854E">**Answer**</font>: An animal that has previously been marked as SOLD or DIED can be returned to its previous status in DairyComp by restoring its animal record.

:::hint{type="info"}
**NOTE:&#x20;**&#x46;or information about removing a mistakenly added FRESH event, see [Fix a Fresh Event](docId\:vPzQqzY3nvq5H8YGr3Kwo).
:::

You need the animal's ID number to proceed, so if you need to look it up, enter a LIST ID command with an appropriate switch to find it. For example, use `LIST ID RPRO \D` in the command line to view a list of sold and dead animals. See [Command Line](docId\:u_NbRVeQbF6NzSP1bc9E0) to learn more.

::::hint{type="success"}
**TIP:&#x20;**&#x53;till can't find the animal you're looking for? It may have been moved to the archive file.

:::ExpandableHeading
### Click here for instructions on locating archived animals.

1. In the command line, enter **CHKFILE\2** and press **Enter**. The CHKFILE command will be used to tell you if the animal you're looking for is in the archive file.

   ::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/X2Ff6SzdvZQiUPcEHSHNu_chkfilecommand.png" size="32" width="671" height="164" position="flex-start" showCaption="false"}
2. In the CHKFILE pop‑up, enter the ID number of the animal you're looking for and click **OK**.

   ::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/u-SJ_wEdtkmzUGZO4qZ6E_chkfile-enterid.png" size="39" width="786" height="170" darkWidth="786" darkHeight="170" position="flex-start" showCaption="false"}

&#x20;       If the animal you're searching for has been archived, the system displays the following window.

::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/SPpyTIfS9W4N-MYUjVnl2_archivefiles.png" size="32" width="974" height="189" position="flex-start" showCaption="false" indent="2"}

&#x20;       In this example, the animal is listed multiple times because its cowfile is archived every time its lactation (LACT) status changes.
&#x20;       Also, note the number in the file name of the cowfile. This is the number of the cowfile. In the example above, all of the cowfiles listed for the lactations contain the number 1 (i.e., COWFILE**1**.ARC).

3. To restore the animal's record from the archive file, enter **GETCOW** in the command line.

   ::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/pDZeopb2ZFdnBh0Ya-Pjw_getcowcommand.png" size="32" width="849" height="115" position="flex-start" showCaption="false"}
4. In the GETCOW pop‑up, confirm the cowfile number and click **OK**.

   ::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/veb87KvT36e2mjilZae5n_cowfileselect.png" size="32" width="867" height="240" position="flex-start" showCaption="false"}

&#x20;       Most of the time, you'll keep the default value of **1** for this field, depending on the number of the cowfile archive that displayed when you entered the **CHKFILE\2** command above. If you need to use a different cowfile, replace the 1 with the proper cowfile number.

5. Confirm the location of the cowfile and click **OK**.

   ::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/1oEX-zNd8wHUkhkRwX2XY_cowfiledir.png" size="32" width="868" height="254" position="flex-start" showCaption="false"}
6. In the next pop‑up, select **3 ARC** for the source cowfile type and press **Enter**.

   ::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/dCFwRl4ycu9lDPHgMG0Nn_3arc.png" size="32" width="901" height="162" position="flex-start" showCaption="false"}
7. In the next pop‑up, enter the ID number of the animal you want to bring back into your cowfile from the archive and click **OK**.

   ::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/eK6yinhdpsXDYVTXtiysG_cownumberprompt.png" size="32" width="867" height="217" position="flex-start" showCaption="false"}
8. Click **Yes** to confirm.

   ::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/a3yKgTl0nl_l_j3FN4m6N_getcowconfirm.png" size="32" width="791" height="207" position="flex-start" showCaption="false"}
9. The system then prompts you for another animal to retrieve from the archive file. If you want to retrieve another animal, enter its ID and repeat the steps above. If you don't have any more animals to add to the cowfile, click **Cancel**.


::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/QoAZMvMJSWDAft5r2z5nn_getcowid.png" size="32" width="1004" height="161" position="flex-start" showCaption="false"}




:::
::::

Once you have the animal's ID, you can restore its animal record. To do so, enter `RESTORE` in the command line, and then enter the ID of the animal record you want restored.

::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/UaOvlY_UytwAhHfcOLI_2_restore.png" size="32" width="844" height="494" position="flex-start" showCaption="false"}

If the system locates the animal and can restore its record, the recent SOLD or DIED event will no longer appear on the animal's CowCard.

:::ExpandableHeading
## What if DairyComp doesn't find an archive record for the animal?

When you erase a SOLD or DIED event, DairyComp attempts to restore the animal's status from its archive record, since the archive record provides the best representation of the animal at the time the event occurred. Whether or not an archive record is available for the animal depends on the settings of the CLEANUP command for your DairyComp.

If there is no archive record available to restore for the animal, DairyComp displays the following message when you erase the event.

::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/X7uakqXJy94d-Ji0fbr9b_noarchiverecordmessage.png" size="32" width="346" height="185" position="flex-start" showCaption="false"}

In this case, click **OK**. The SOLD or DIED event will still be removed and the animal's REPRO status will be set to the correct state.
:::

::::ExpandableHeading{customAnchorSlug="ErasingEvents"}
## Erasing an Event from a CowCard

Another way to restore an animal record after mistakenly marking it as SOLD or DIED is to erase the event directly from the animal's CowCard.

:::hint{type="info"}
**NOTE:&#x20;**&#x54;his method erasure method works for any type of DairyComp event, not just SOLD or DIED events.
:::

1. In the command line, enter the ID number for the animal to display its details.

   ::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/zk5ycRS3RglOxQKlNZ5je_find-record.png" size="32" width="1321" height="269" position="flex-start" showCaption="false"}
2. Hover your mouse over the event you want to remove and right-click to display the following menu options:

   - Change This Event
   - Erase This Event

   ::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/I18V6S0FVV10S6l5EJ_2n_eraseevent.png" size="32" width="1104" height="289" position="flex-start" showCaption="false"}
3. Click **Erase This Event** and then click **Yes** in the confirmation message.

   ::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/8svzwkJcSF8OJTpQTWe--_eraseeventconfirm.png" size="32" width="1071" height="338" position="flex-start" showCaption="false"}

:::Paragraph{indent="1"}
If DairyComp locates an archive record for the animal, it displays the following message to confirm that the animal's record has been restored.
:::

::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/71l_4SWw2Lnaf_42bqOK7_cowrecordrestored.png" size="32" width="1076" height="390" position="flex-start" showCaption="false" indent="1"}

:::Paragraph{indent="1"}
Once you click **OK** to close this message, the CowCard will no longer indicate the SOLD or DIED event for the animal.
:::
::::

