The request could not be understood by the server due to malformed syntax

Hi,

I want to send documents from one Pega system to another pega system, for that I am using below Pega APIs.

1.Case, 2.Upload and 3.attachment.

Case API is creating a case in the Target Pega Application. Upload API is creating a temp instance of a document in the Target application, and attachment api will link this document to the case that created as part of case API.

If I run all 3 APIs standalone they are working but when I run all 3 APIs as part of the workflow, for 3rd API(attachment) I am getting 400 error with message “The request could not be understood by the server due to malformed syntax”

but when I take my payload from the tracer and run the attachment service rest stand-alone with same payload its working. it seems the payload looks good, please refer the attached screenshots.

Can someone please help me to resolve this issue?

Thanks,

Chandra Nelapati.

@Chandrababu : I am also exactly facing the same issue. Standalone hit works perfectly fine with the same input but fails at runtime. Any help would be very much appreciated. I am facing this issue in 8.7.

@Chandrababu please log a support issue on the MSP if you need any further help

@MarijeSchillern it’s working now after clearing pyRequestAttachmentPage.

@Chandrababu Thanks for the confirmation. I have tried and it is working fine after removing pyRequestAttachmentPage page.

@Vinod.Raj , After upload API, remove pyRequestAttachmentPage page before triggering any other API. It will work.

Thanks,

Chandra Nelapati.