Question

2
Replies
529
Views
dhulappar5172 Member since 2015 28 posts
accenture
Posted: 2 years ago
Last activity: 2 years 8 months ago
Closed

Automating import process from Using Import rest API..pyErrorMsg":"No attachments found to import!"

HI all,

I am implementing import and export process from pega rest API, Export and restore point APIs works fine.. But facing issue while using import Rest API,

End point URL: http://ip:port/prweb/PRRestService/SystemManagement/v2/Import

Performing post method by passing below json:

Note: archivePath and Artifacttype are set based on details available on param tab of service activity..

{
"mode":"import",
"nofailonerror":"false",
"existingInstances":"skip",
"commitRate":"100",
"compileLibraries":"true",
"allowImportWithMissingDependencies":"false",
"codesetName":"Customer",
"codesetVersion":"06-01-01",
"async":"false",
"trackData":"false",
"response":"",
"skipBackup":"false",
"repositoryName":"",
"artifactType":"product",
"archivePath":"AUTCG/TestPackage.zip",
"importFromRepository":"false",
"bypassSchema":"false"
}

Has anyone faced same issue, on debugging foung that pyRequestAttachmentPage dont have list of files to be imported. I dont find any code to populate that list..

Pega Version:7.3.1

I always get import failed output with no attachment found error:

{ "pxCreateDateTime":"2018-02-07T05:41:11.941Z" ,"pxCreateOperator":"Dhulappa" ,"pxCreateOpName":"Dhulappa Rajole" ,"pxCreateSystemID":"pega" ,"pxInsName":"IMPORTREQUEST-16" ,"pxObjClass":"Log-PegaRemoteManagement-Import" ,"pxSaveDateTime":"2018-02-07T05:41:11.970Z" ,"pxUpdateDateTime":"2018-02-07T05:41:11.940Z" ,"pxUpdateOpName":"Dhulappa" ,"pyErrorMsg":"No attachments found to import!" ,"pyJobID":"IMPORTREQUEST-16" ,"pyLabel":"IMPORTREQUEST-16" ,"pyStatusCode":"FAILED" ,"pzInsKey":"LOG-PEGAREMOTEMANAGEMENT-IMPORT IMPORTREQUEST-16" }

Has anyone faced same issue, on debugging foung that pyRequestAttachmentPage dont have list of files to be imported. I dont find any code to populate that list..

Pega Version:7.3.1

Data Integration
Moderation Team has archived post
Share this page LinkedIn