Question
Bank of America
US
Last activity: 7 Aug 2023 10:33 EDT
multipart REST request is failing when upgrade from Pega 7.1 to pega 8.5
Hi,
We have a Connect-REST where we send request along with a attachment using POST method.
I am creating Page pyRequestAttachmentPage(Data-ServiceMessage) before calling Connect-REST in which I am setting the pyAttachNames, pyAttachValues, pyAttachTypes, pyAttachFileNames. Please note I am sending pyAttachValues after Encoding using the function @Default.Base64Encode.
It is working fine in Pega 7.1 for the same data and same attachment but failing in 8.5.4, it is giving me below response in Pega 8.5.4
{ “document_type”: [ “Incorrect type. Expected pk value, received str.” ],
”status_code”: 400 }
Where document_type is one of the pyAttachValues value set after @Default.Base64Encode.
Anyone faced similar issue? Can some one help me understand what could be the issue.