Failed to publish the test package due to missing test case(s) in UiPath

I’m sharing this post to help others who might face the same issue and explain how to resolve it step by step. when I was publishing my test case with studio to Test manager then I faced this error.

This error usually happens when a test case (.xaml file) was previously created but later deleted or renamed. Even though the file is gone, its reference may still exist in the project metadata, which causes the publishing process to fail.

Let’s assume the error mentions a missing file like:

TestCase.xaml is missing from TestCase\Common Process\TestCase.xaml

  1. Carefully check the error message to find the exact file name and folder path that is missing.
  2. We need to Recreate the missing test case, Navigate to the specified folder structure.
  3. If the folder doesn’t exist, create it.
  4. Create a new test case with the same name as the missing file (e.g., TestCase.xaml).
  5. Mark it as Unpublishable
  6. Convert this test case into a workflow.
  7. Delete the recreated test case.

Now try publishing your test case or test case template again. The issue should be resolved.

If the error is still persists

  • Try publishing before Step 7.
  • Then complete Step 7 and publish again with a new version number.

This issue is mainly caused by leftover references to deleted or renamed test cases. Recreating the file temporarily helps clear those references and allows successful publishing.

Please share your feedback also if you faced this type of error, and how did you solve.

Thanks,
Ankit Kumar

1 Like