Click HERE to see how Saviynt Intelligence is transforming the industry. |
10/16/2023 01:18 AM
Hi Team,
I am trying to use the Transport feature via apis (import package api), however, I am getting import failed because of the file not found at the location.
Please find the below details of both the api calls. I am doing on lower tenant first before using this to higher environment.
Both api calls to same test tenant.
Export Package (/ECM/api/v5/exportTransportPackage)
Payload
{
"updateuser": "admin",
"transportowner": "true",
"transportmembers": "true",
"exportonline": "false",
"exportpath": "/Users/Documents/transportPackage/",
"objectstoexport": {
"savRoles": [
"ROLE_PS_TEST", "ROLE_PS_RETEST"
]
},
"businessjustification": "justified..."
}
Status : 200 OK
Import Package (ECM/api/v5/importTransportPackage)
Payload
{
"updateuser": "admin",
"packagetoimport": "/Users/Documents/transportPackage/transport_admin_2023-10-14_05-34-35(UTC).zip",
"businessjustification": "test justification"
}
Status : 412 Precondition Failed
{
"msg": "Failed",
"msgDescription": "Import Failed. file /Users/Documents/transportPackage/transport_admin_2023-10-14_05-34-35(UTC).zip not found.",
"errorcode": 1
}
Please note I use the same file name “transport_admin_2023-10-14_05-34-35(UTC).zip
” which is created as an Export package.
10/20/2023 07:26 AM
Hi @PrashantS
Thanks for reaching out.
Please refer to the below post and make the changes accordingly
https://forums.saviynt.com/t5/identity-governance/couldn-t-run-the-transport-api-with-mention-path-f...
10/20/2023 07:46 AM
I did the same and I am trying to use the test tenant for export and import both. So there is no need to put file explicitly. The export api do put .zip file already and then I am using the same path on saviynt tenant in the import api payload.
That is where I am getting error file not found.
10/22/2023 06:38 PM
File should be placed on server not on local
10/23/2023 01:08 AM
Yes, it is on the server. @rushikeshvartak