"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 NOVEMBER 01, 2010

Applies to:

Oracle(R) BPEL Process Manager - Version: 11.1.1.3.0 to 11.1.1.3.0 - Release: 11gR1 to 11gR1
Information in this document applies to any platform.

Symptoms

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:

Error:

<bpelFault>
 
<faultType>0</faultType>
  <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
   <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.
    </summary>
   </part>
   </selectionFailure>
</bpelFault>

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