Option 1: Using REST API

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
2024-01-21
VersionNumber
1
Execute the following REST API POST /dependencyGraph/artifact to retrieve the component ID, which can serve as the correct component name:
In the CURL request, I just gave the path for the Artifact  /artifactory/"artifactpath.
curl -u admin:password -X POST -H "Content-Type: application/json" "<artifactory-url>/xray/api/v1/dependencyGraph/artifact" -d '{"path": "/artifactory/test-libs-release-local/mysql-connector-java/mysql-connector-java/5.1.41/mysql-connector-java-5.1.41.jar"}' | jq -r '.artifact.component_id'
The response will contain the component_id which should be used for exporting the SBOM file.