Validation and Errors
RAP Builder validates your application components during the build process and reports errors when issues are detected. This page documents all validation checks, error messages, and SDK version verification.
How Validation Works
When you run relsvr-rap build, the tool performs the following checks in order:
- Input validation - Verifies that required arguments are provided and valid.
- Schema validation - Confirms that
application.xmlexists and can be parsed. - Destination validation - Checks that
<Destination>ends with.rap. - Assembly validation - Cross-references assemblies between
build.xmlandapplication.xml. - Resource file validation - Cross-references resource files between the two XML files.
- Custom page validation - Cross-references custom page GUIDs between the two XML files.
- SDK version validation - Verifies that Relativity SDKs referenced in any assemblies match the expected versions for the target Relativity Server release.
- Target framework validation (Server 2026) - Verifies that every assembly in the RAP targets .NET Framework 4.8.1 unless exempt in a target framework exemptions file (Server 2026 builds only).
If any check fails, RAP Builder reports the error and exits with a non-zero exit code - 1 for general errors (bad paths, missing files) or 4 for validation and build logic errors (schema mismatches, SDK failures).
Error Messages
Find the message from your build output in the table below. Input errors occur when required command-line arguments are missing or invalid.
| Check | Error | Cause | Fix |
|---|---|---|---|
| Input | Unsupported Relativity Server Release
The Relativity Server Release value of <value> is less than the minimum compatible Relativity Server Release of 2024
|
The --relativity-server-release value is less than 2024. RAP Builder only supports Relativity Server 2024 and later. |
|
| Schema | Missing Application Schema
Missing application schema, cannot make RAP!
|
The <ApplicationSchema> element is missing from build.xml, or its value is empty. |
Add the <ApplicationSchema> element to your build.xml. See Example Fixes. |
| Schema | Invalid Application Schema
Cannot find application schema file, cannot make RAP!
|
The application.xml file referenced in the <ApplicationSchema> element of build.xml does not exist at the resolved path, or cannot be parsed as valid XML. |
Verify the application.xml path is correct relative to the --source directory and that the content of the application.xml file is well-formed XML. |
| Destination | Missing Destination Path
Missing destination path, please add destination path to build RAP!
|
The <Destination> element is missing from build.xml. |
Add a <Destination> element. See Example Fixes. |
| Destination | Invalid Destination Path
Destination path does not end in '.rap', please name your destination with the .rap extension to proceed!
|
The <Destination> value does not end with .rap. |
Ensure the output path ends with the .rap extension. See Example Fixes. |
| Assembly | Assembly Not Found in application.xml
DLL(s) <names> was/were not found in schema. Please check that you have added all required assemblies to the application.xml file.
|
One or more assemblies listed in build.xml do not have a corresponding <Assembly><Name> entry in application.xml. |
Add the missing assembly to application.xml. To avoid configuration issues, it is recommended to add new elements to your application through the Relativity UI and then export the XML, rather than modifying application.xml manually. See Example Fixes. |
| Assembly | Assembly in application.xml Not Found in build.xml
DLL in schema was not found. Please check that you have added all required assemblies to the build.xml file.
|
An assembly defined in application.xml does not have a corresponding <Assembly> path in build.xml. |
Either add the missing assembly path to build.xml, or remove the entry from application.xml. |
| Assembly | Assembly Name Case Mismatch
DLL file name case mismatch. Please ensure DLL file name <filename> and schema node text <nodeName> match exactly.
|
The assembly filename in the build.xml path differs in letter case from the <Name> value in application.xml. For example, myapp.dll vs. MyApp.dll. |
Make the names match exactly in both files. File names in RAP Builder are case-sensitive. |
| Resource file | Resource File Not Found in application.xml
Resource File(s) <names> was/were not found in schema
|
One or more resource files in build.xml do not have a corresponding <ResourceFile><Name> entry in application.xml. |
Add the missing resource file to application.xml. To avoid configuration issues, it is recommended to add new elements to your application through the Relativity UI and then export the XML, rather than modifying application.xml manually. See Example Fixes. |
| Resource file | Resource File in application.xml Not Found in build.xml
Resource File <filename> in schema was not found
|
A resource file defined in application.xml does not have a corresponding <ResourceFile> path in build.xml. |
Either add the missing resource file path to build.xml, or remove the entry from application.xml. |
| Resource file | Resource File Name Case Mismatch
Resource file name case mismatch. Please ensure resource file name <filename> and schema node text <nodeName> match exactly.
|
The resource file's name differs in letter case between build.xml and application.xml. |
Ensure the filename matches exactly, including case. |
| Custom page | Custom Page Not Found in application.xml
Custom Page <guid> in schema was not found
|
A custom page GUID in build.xml does not have a corresponding <CustomPage><Guid> entry in application.xml. |
Add the custom page to application.xml with the matching GUID. To avoid configuration issues, it is recommended to add new elements to your application through the Relativity UI and then export the XML, rather than modifying application.xml manually. See Example Fixes. |
| Custom page | Custom Page in application.xml Not Found in build.xml
Custom Page in schema was not found
|
A custom page defined in application.xml does not have a corresponding <CustomPage> entry in build.xml. |
Either add the custom page to build.xml, or remove it from application.xml. |
| Test directory | Missing Test Directory
Cannot find test directory.
|
A <TestDirectory> element is specified in build.xml, but the directory does not exist at the resolved path. |
1. Verify the path is correct relative to --source.2. Ensure you have built your test project before running RAP Builder. 3. If you don't need test assemblies, remove the <TestDirectory> element from build.xml. |
Example Fixes
Use these snippets as a starting point for the fixes above.
The path examples assume the layout below. Paths in build.xml are relative to the --source directory, which is the root of your repository. ApplicationsXML holds the application schema, and Artifacts is the output folder that RAP Builder creates during the build. For a complete layout, see Project Structure.
MyRelativityApp/ # --source directory
─ ApplicationsXML/
│ └── application.xml # Referenced by <ApplicationSchema>
─ DevelopmentScripts/
│ └── build.xml # Passed with --input
└── Artifacts/ # Created by the build
└── MyApp.rap # Output file set by <Destination>
Application schema in `build.xml
<ApplicationSchema>ApplicationsXML/application.xml</ApplicationSchema>
Destination in `build.xml
<Destination>Artifacts\MyApp.rap</Destination>
Assembly in `application.xml
<Assembly>
<ArtifactId>1000002</ArtifactId>
<Keywords />
<Name>MyApp.Core.dll</Name>
<Notes />
</Assembly>
Resource file in `application.xml
<ResourceFile>
<ArtifactID>1016210</ArtifactID>
<Name>image.jpg</Name>
<FileType>1</FileType>
</ResourceFile>
Custom page in `application.xml
<CustomPage>
<ArtifactID>1040001</ArtifactID>
<Guid>a1b2c3d4-e5f6-7890-abcd-ef1234567890</Guid>
<Name>MyCustomPage</Name>
<FileName>MyCustomPage.zip</FileName>
<Keywords />
<Notes />
</CustomPage>
SDK Version Validation
RAP Builder validates that the Relativity SDK assemblies referenced in your RAP match the versions required by the target Relativity Server release, helping prevent deployment failures caused by SDK version incompatibilities.
How SDK Validation Works
- RAP Builder maintains a list of known Relativity SDK assemblies and their expected versions for each supported Relativity Server release (2024, 2025, 2026).
- During the build, RAP Builder inspects each assembly included in the RAP.
- If any referenced assembly matches a known Relativity SDK assembly name, its version is compared against the expected version.
- Mismatches are reported as errors.
SDK Mismatch Examples
An SDK assembly in your RAP is a version that is not supported:
Relativity.ObjectManager.dll - Is an SDK version that is unsupported (found: 12.1.0.0, required: 5000.0.2.0). Fix: install/update to 5000.0.2.0.
An assembly in your RAP references an SDK version that is not supported:
MyApp.dll - Has a reference to an SDK version that is unsupported (SDK name: Relativity.API, version found: 12.1.0.0, version required: 5000.0.2.0). Fix: install/update to 5000.0.2.0.
The versions shown are examples. The required version depends on the Relativity Server release you target.
Caution: Deploying a RAP with mismatched SDK versions may cause runtime errors in Relativity Server.
Target Framework Validation (Server 2026)
When you build with --relativity-server-release 2026, RAP Builder additionally verifies that every assembly packaged in the RAP targets .NET Framework 4.8.1. Server 2024 and 2025 builds are not subject to this check.
This check applies to every assembly in the RAP, including third-party dependencies (for example, Newtonsoft.Json or log4net). An assembly produces a Warning-level finding when it targets an earlier .NET Framework version, targets a different framework family (for example, .NET Standard or .NET), or has no readable target-framework information.
A finding looks like this (the file name and versions vary):
MyApp.Legacy.dll - Targets an unsupported .NET Framework version (found: 4.6.2, required: 4.8.1 or higher). Fix: rebuild against .NET Framework 4.8.1.
Because --warnings-as-errors defaults to true, these warnings fail the build. This is expected while you migrate an application to .NET Framework 4.8.1. Until every assembly is retargeted, pass --warnings-as-errors false to see the findings without failing the build:
relsvr-rap build ... --relativity-server-release 2026 --warnings-as-errors false
Retarget your own assemblies to .NET Framework 4.8.1, and update or replace third-party dependencies that cannot meet the requirement. Then rebuild with the default --warnings-as-errors true to confirm a clean build.
Target Framework Findings
| Finding | Message |
|---|---|
| Targets an earlier .NET Framework version | <file> - Targets an unsupported .NET Framework version (found: <version>, required: 4.8.1 or higher). Fix: rebuild against .NET Framework 4.8.1.
|
| Targets a different framework family | <file> - Targets an unsupported framework family (found: <family>, required: .NETFramework). Fix: rebuild as a .NET Framework 4.8.1 library.
|
| No target framework attribute | <file> - Has no TargetFrameworkAttribute, so its target framework cannot be verified. Fix: rebuild against .NET Framework 4.8.1 or higher.
|
| Target framework attribute cannot be read | <file> - Has a TargetFrameworkAttribute that could not be parsed (value: '<value>'). Fix: rebuild against .NET Framework 4.8.1 or higher.
|
Exempted Assemblies
If an assembly cannot be retargeted, for example a third-party DLL, you can exempt it by listing it in an exemption text file and passing --target-framework-exemptions <exemption-file>. See CLI: build Command for the file format.
An exempted assembly does not fail the build. RAP Builder logs the finding at Information level and records the assembly in the build results. Exemptions apply to the target framework check only, not to SDK version validation.
| Message | Level | Meaning | Fix |
|---|---|---|---|
<file> - <finding>; error not reported because the file is on the target-framework exemptions file
|
Information | The assembly failed the check but is exempted. | None. |
<file> - listed in the target-framework exemptions file but already meets the required framework version (found: <version>, required: 4.8.1 or higher). Fix: remove this entry.
|
Warning | The assembly already targets .NET Framework 4.8.1, so the exemption is not needed. | Remove the entry from the exemptions file. |
<file> - listed in the target-framework exemptions file but not found in any RAP built in this run. Fix: check for a typo, or remove the entry if it's no longer needed.
|
Warning | No assembly in any RAP built in this run matched the entry. | Correct the file name, or remove the entry. |
If you pass an exemptions file for a release that has no target framework requirement (Server 2024 or 2025), RAP Builder does not apply the file and logs a warning to tell you it was ignored.
Build Results Output
Every build records its full validation outcome in a build results file (buildresults.xml) that ships inside the RAP. Relativity reads this file when the RAP is imported into a Server 2026 or later environment and uses it to display the Application Compatibility Check. Relativity does not re-run validation at import time; it reads the results RAP Builder recorded during the build.
The results include the RAP Builder version and the target Relativity Server release. Assemblies exempted with --target-framework-exemptions are also recorded.
The results are stored in a signed, encoded form so they are not easily altered after the build. You do not need to read or edit this file directly.
For what Relativity displays at import time, see Application Compatibility Verification in Relativity.
Understanding Log Output
RAP Builder logs each validation step. To get more detail, increase the log level:
relsvr-rap build ... --log-level Debug
See the Troubleshooting guide for help resolving specific issues.