My Oracle Support Banner

"Invalid to part type. When performing the assign operation" Assign Activity Fails When Assigning the Same Variable to Itself in PS2 (Doc ID 1194228.1)

Last updated on MARCH 30, 2019

Applies to:

Oracle(R) BPEL Process Manager 10g - Version and later
Information in this document applies to any platform.


In SOA Suite 11g R1 PS2 code starts giving out errors when trying to assign a string to itself. For eg.

1. Create a String variable in BPEL (eg. stringVar) and assign a value through assign action

2. In Java activity assign a string value to stringVar.

String newVal = "Newvalue";
setVariableData("stringVar", newVal);

3. Create another assign action and assign stringVar to itself.

when the above code is executed, it fails with the following exception:


  <selectionFailure xmlns="">
   <part name="summary">
    <summary>Invalid to part type. When performing the assign operation, the to node TEMP VAR ASSIGN STRING is invalid. The node named in the error message was either null or an empty node set, and it was not an instance of org.w3c.Element. Verify the node value at line number 76 is not null and is an instance of org.w3c.Element.


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.