E:IB Unable to create multiple message segments using SetContentString peoplecode method from AE

(Doc ID 2245987.1)

Last updated on JUNE 07, 2018

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.55 and later
Information in this document applies to any platform.

Symptoms

ISSUE
----------
Have a requirement to send binary data through Integration Broker. After creating new segment, attempt to set SegmentContentType property to "application/pdf" or "application/xml" of message object causes the process to stop at the command and error out without any error message. Same thing is happening when trying to set SegmentContentTransfer property to %ContentTransfer_Binary. Using example from peoplebooks to write an AE program it was found not to work but did work successfully from online component

&theMessage.CreateNextSegment();

If (&theMessage.SetContentString(&dataString)) Then
&theMessage.SegmentContentType = "image/jpeg";
&theMessage.SegmentContentTransfer = %ContentTransfer_Binary;
End-If;

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms