Problem


Uploading an XML file fails. Clicking to review the status details, the message includes the phrase "Reference to undeclared ID".



Solution


This error message is explaining that something is referenced within the file that should also be defined in the file. In the example details shown above, the undefined reference is to Offense280.


To confirm the issue:


  1. Open the failed file in a text editor such as Notepad++.
  2. Search the file for the undefined reference. Here are the results for Offense280 in our example file:


    Notice that in both instances where Offense280 is found in the file, it exists only as a reference. Compare with Offense_561 from the same example file, where we see both references and an ID:


  3. Take the information from the error back to the vendor of the system which generated the XML file, as they will need to know what must be fixed.