Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Import Package file not found

PrashantS
New Contributor II
New Contributor II

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.

4 REPLIES 4

saikanumuri
Saviynt Employee
Saviynt Employee

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...

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.

File should be placed on server not on local


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Yes, it is on the server. @rushikeshvartak