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

(Doc ID 2245987.1)

Last updated on AUGUST 21, 2017

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, when we try set SegmentContentType property to "application/pdf" or "application/xml" of message object the process stops at the command, and errors out the program without any error message. Same thing is happening when we try 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