---
title: "[Xray DC] I'm unable to import Tests"
canonical: "https://docs.getxray.app/space/ProductKB/46269676/%5BXray%20DC%5D%20I'm%20unable%20to%20import%20Tests"
format: markdown
---
> Macro (toc)


# Introduction


This article provides a guide to troubleshooting common issues and optimizing your testing workflow when importing tests using the Xray API or UI on both Jira Data Center and Jira Cloud.


---

# Common Issues & Potential Solutions:


- **Software Version**

Confirm whether you are using Xray Cloud or Xray Data Center and adapt to our documentation accordingly.

> Macro (legacy-content)

<span style="color: #172b4d">You may also have authentication errors as described below:</span>

- **<span style="color: #172b4d">400 Bad Request </span>**<span style="color: #172b4d">- </span>
  - <span style="color: #172b4d">Possibly linked to a w</span><span style="color: #333333">rong request syntax. </span>
  - <span style="color: #333333">No import test job was created.</span>**<span style="color: #333333"> </span>**<span style="color: #333333">The content may be in the wrong format or a job might already be in progress.</span><span style="color: #333333"> </span>
  - <span style="color: #333333">Each user can only have one import job running at each given time. So if a job is running and the user tries to start another one, this will result in a 400 response. </span>
  - <span style="color: #333333">There is a maximum of 1000 tests that can be imported each time, if the input contains more tests than this, the request will also result in a 400 response.</span>
- **<span style="color: #172b4d">401 Unauthorized</span>**<span style="color: #172b4d"> - Possibly linked to your Xray license may no longer be valid</span>
- **500 INTERNAL SERVER ERROR** - <span style="color: #333333">An internal error occurred when authenticating the request.</span>
- <span style="color: #161719">There may be an error if your authentication token is revoked, in which case you should submit a new authentication.</span>


> ℹ️ **Readme**
> ℹ️ 
> ℹ️ The method you choose to import your test will determine the aspects you need to address.


## Importing using API

> Macro (legacy-content)

## Importing using UI

- **Data Format Issues: **
  Ensure your *Tests* are in the correct format. For example, when importing using JUnit, make sure your tests are generating reports in the correct format.
  - Verify JUnit Structure → [Taking advantage of JUnit XML reports](https://getxraydocs.atlassian.net/wiki/display/XRAYCLOUD/Taking+advantage+of+JUnit+XML+reports)



> ⚠️ **Note:**
> ⚠️ 
> ⚠️ # Other Common Issues: 
> ⚠️ 
> ⚠️ **Error Messages:** Understand common error messages and their solutions. 
> ⚠️ 
> ⚠️ For example, a **404** error might indicate that you’re trying to import *Tests* to the wrong server. 
> ⚠️ 
> ⚠️ A “**No Project**” error might indicate an issue with the project key in your import file.
> ⚠️ 
> ⚠️ **Software Version Issues:** If you’re encountering issues after an Xray or Jira update, it could be a software bug. Check the Xray [support portal](https://jira.getxray.app/servicedesk/customer/portal/2) for known issues and updates.
> ⚠️ 
> ⚠️ 
> ⚠️ # Looking to learn more:
> ⚠️ 
> ⚠️ Check out this: [TTT: Examples using JUnit](https://getxraydocs.atlassian.net/wiki/display/XRAY/TTT%3A+Examples+using+JUnit)