i am trying to send the base64 of a document within the request of a REST API, i followed the instruction on how to set the pyRequestAttachmentPage, and from what i can see from the tracer the data are well mapped in the request.
The problem is that it gives me this error "com.pega.pegarules.pub.services.ConnectorException: Caught unhandled exception: java.lang.IllegalArgumentException: byte may not be null", and the API call fails.
@DaniloM16783803 It seems that the issue might be related to the base64-encoded content not being properly set in the pyRequestAttachmentPage. Please ensure that the pyAttachValues property is correctly populated with the base64-encoded content of the document. Also, double-check that all the required properties (pyAttachKeys, pyAttachFileNames, and pyAttachTypes) are set correctly. If the issue persists, you may want to trace the request and verify that the data is being mapped correctly before the API call is made.
As a Support Center moderator, I reviewed the answer and references for accuracy