title: Error while assigning the value to the repeating element in BPEL 11g
body: <p>I want to generate the below request for my webservice in BPEL 11g</p>
  
  <p></p>
  
  <pre><code>&lt;!--1 or more repetitions:--&gt;
  
  &lt;dep:KeyValuePair&gt;
  
      &lt;dep:KEY&gt;AuthenticationString&lt;/dep:KEY&gt;
  
      &lt;dep:VALUE&gt;Basic c2ZhcGlAQWhvbGRUU1Q6UjEyMDBncw==&lt;/dep:VALUE&gt;
  
  &lt;/dep:KeyValuePair&gt;
  
              &lt;dep:KeyValuePair&gt;
  
      &lt;dep:KEY&gt;$filter&lt;/dep:KEY&gt;
  
      &lt;dep:VALUE&gt;lastModifiedOn ge datetime'2014-01-13T18:18:14Z'&lt;/dep:VALUE&gt;
  
  &lt;/dep:KeyValuePair&gt;
  </code></pre>
  
  <p></p>
  
  <p>where KeyValuePair is a unbounded element. For this i have taken a assign activity in BPEL 11g and did the following</p>
  
  <p></p>
  
  <pre><code>        &lt;copy&gt;
  
              &lt;from expression='concat("Basic ",$Base64AuthenticationString)'/&gt;
  
              &lt;to variable="EncodedString"/&gt;
  
          &lt;/copy&gt;
  
          &lt;copy&gt;
  
              &lt;from expression="'AuthenticationString'"/&gt;
  
              &lt;to variable="InvokeDepartmentDetailsPSReqMsg"
  
                  part="DepartmentProxyRequest"
  
                  query="/sfabmabo:DepartmentProxyRequest/sfabmabo:KeyValuePair[1]/sfabmabo:KEY"/&gt;
  
          &lt;/copy&gt;
  
          &lt;copy&gt;
  
              &lt;from expression="bpws:getVariableData('EncodedString')"/&gt;
  
              &lt;to variable="InvokeDepartmentDetailsPSReqMsg"
  
                  part="DepartmentProxyRequest"
  
                  query="/sfabmabo:DepartmentProxyRequest/sfabmabo:KeyValuePair[1]/sfabmabo:VALUE"/&gt;
  
          &lt;/copy&gt;
  
          &lt;copy&gt;
  
              &lt;from expression="'$filter'"/&gt;
  
              &lt;to variable="InvokeDepartmentDetailsPSReqMsg"
  
                        part="DepartmentProxyRequest"
  
                        query="/sfabmabo:DepartmentProxyRequest/sfabmabo:KeyValuePair[2]/sfabmabo:KEY"/&gt;
  
          &lt;/copy&gt;
  
          &lt;copy&gt;
  
              &lt;from expression="concat(&amp;quot;lastModifiedOn ge datetime'&amp;quot;,$SuccessFactorTimeStamp,&amp;quot;'&amp;quot;)"/&gt;
  
              &lt;to variable="InvokeDepartmentDetailsPSReqMsg"
  
                        part="DepartmentProxyRequest"
  
                        query="/sfabmabo:DepartmentProxyRequest/sfabmabo:KeyValuePair[2]/sfabmabo:VALUE"/&gt;
  
          &lt;/copy&gt;
  
      &lt;/assign&gt;
  </code></pre>
  
  <p>but i am getting the below error while doing the same</p>
  
  <p>XPath query string returns zero node. The assign activity of the to node query is returning zero node. Either the to node data or the xpath query in the to node was invalid. According to BPEL4WS spec 1.1 section 14.3, verify the to node value at line number 327 in the BPEL source. </p>
  
  <p>Can anyone please help me to resolve the same.</p>
  
  <p>Thanks</p>