1. Identify the Issue

XRAY: Troubleshooting "Component is not found for given SHA" Error in exportDetails REST-API

AuthorFullName__c
Bassel Mbariky
articleNumber
000005992
FirstPublishedDate
2024-01-22T07:22:45Z
lastModifiedDate
2025-07-20
VersionNumber
1
The error message suggests that either the component name or SHA256 is incorrect. To confirm, try running the exportDetails API call without specifying the component name, (as an example):
curl -XPOST -H "Content-Type: application/json" <artifactory-url>/xray/api/v1/component/exportDetails -d '{"license": true, "security": true, "exclude_unknown": true, "sha_256":"5cbde1b4c6cb34db1771c93929d49a293b8ad5017f9bd76ed127d2fc7b7d8a1d", "package_type": "maven", "output_format": "json" }' -o components.zip
If successful, it implies that the provided component name is the issue, if giving the only SHA256 and still the issue persists, it means that the file doesn’t exist in the database.