Migrating Post Lists from Oracle to CDA
This tutorial will teach you how to migrate your existing Post Lists from using a local Oracle database to use a CWMS Data API (CDA) connection. This is important as all offices migrate to the cloud and are required to use CDA to connect to the national database.
Prerequisites
Before beginning the migration, ensure you have a configured login and write privileges for your target CDA connection. If you need to set up a new connection, please refer to the Setting up a CDA Extract Group documentation before proceeding.
Step 1: Create a Copy of the Post XML File
- Close HEC-RTS.
- Open Windows Explorer and navigate to the post folder inside your watershed (<watershed name>/shared/post).
- Locate the XML file for the Post List you need to update (named [post list].xml) and create a copy of it.
- Rename the copy to CDA_[original name].xml.
- Repeat this process for any additional Post Lists requiring migration.
Step 2: Update the Destination
For Post Lists, the Datastore defines where HEC-RTS posts its data. This configuration sits at the top of the XML file.
The image below is an example of what the file should look like before any edits.

- Open the newly created CDA_[original_name].xml file in a text editor (Notepad++ is highly recommended).
- Near the top of the file, locate the <datastore> block.
- Change the opening and closing tags from Oracle to RADAR:
- Replace <oracle id="Oracle"> with <radar id="RADAR">.
- Replace </oracle> with </radar>.
- Delete the old connection lines within that block and replace them with your new authentication source string:
- <cwms_authentication_source version="v1" cwms_source_type="cwms_radar" cwms_radar_url="https://cwms-data-test.cwbi.us/cwms-data/" office_id="[YOUR_OFFICE_ID]">[YOUR_OFFICE_ID]_CDA</cwms_authentication_source>
- Replace [YOUR_OFFICE_ID] with your specific office code, e.g., MVS.
- <cwms_authentication_source version="v1" cwms_source_type="cwms_radar" cwms_radar_url="https://cwms-data-test.cwbi.us/cwms-data/" office_id="[YOUR_OFFICE_ID]">[YOUR_OFFICE_ID]_CDA</cwms_authentication_source>
The image below is an example of what the file should look like after you complete the necessary edits.

Step 3: Rename the Post List
Renaming the list ensures users can easily differentiate between Oracle and CDA sources inside the watershed.
The image below is an example of what the file should look like before any edits.

- Locate the <ts-dataexchange-set> tags further down in the file.
- Update the id attribute (id="[original_name]") to include the CDA prefix (e.g., id="CDA_[original_name]").
Update the secondary id attribute (id="[original_name]1") to also include the CDA prefix (e.g., id="CDA_[original_name]1").
- This name must have the 1 appended to the end of the text.
- Update the datastore references within these same lines to point to RADAR.
- Change the <datastore-ref> from id="Oracle" to id="RADAR" office-id="[YOUR_OFFICE_ID]".
- In this example, the Office ID used is MVS.
- Update the store rules from oracle-ts-store-rule to dss-ts-store-rule.
The image below is an example of what the file should look like after you complete the necessary edits.

Step 4: Update Timeseries Datastore IDs
You now need to change the references for each timeseries listed in the Post XML file.
Do not use global Find and Replace for this step. Update each entry individually to avoid breaking unintended lines of code.
The image below is an example of what the file should look like before any edits.

- Scroll down to the <cwms-timeseries> mappings in the file.
- In this example, it starts on line 25 (the Roselle-St Francis timeseries).
- Change datastore-id="Oracle" to datastore-id="RADAR".
- Repeat this adjustment manually for every remaining timeseries entry in the file.
- Save and close the file.
The image below is an example of what the file should look like after you complete the necessary edits.

Step 5: Verify Changes to the Post List
- Launch HEC-RTS and open your watershed.
- Switch to the Setup tab.
- From the Models menu, select Edit Post.
- Select your newly created CDA Post List.
- Verify that the data location successfully displays as CDA.
- Create a test Forecast and run the post to ensure data is posting correctly without errors.
Final Steps
Repeat Steps 2 through 5 individually for each new XML file you created to ensure all data sources and timeseries are properly mapped and tested.