title: Mybatis BindingException Parameter '__frch_e_0' not found
body: <p>I'm trying to insert a list to Mybatis and getting the foloowing error:</p>
  
  <pre><code>org.apache.ibatis.binding.BindingException: Parameter '__frch_e_0' not found. Available parameters are [list]
  </code></pre>
  
  <p>Can you please let know what I'm missing. Thanks</p>
  
  <p>DAO interface:</p>
  
  <pre><code>void saveErrorMessageList(List&lt;ErrorMessage&gt; emList);
  </code></pre>
  
  <p>XML:</p>
  
  <pre><code>&lt;insert id="saveErrorMessageList" parameterType="java.util.List"&gt;
          {call
          declare
              ID PLS_INTEGER;
          begin
          &lt;foreach collection="list" item="e" index="index" &gt;
              SELECT SEQ_ERR_ID.NEXTVAL into ID FROM DUAL;
  
              INSERT INTO ERR (ERR_ID, CREAT_TS, 
              MSG_CD, MSG_TXT) values (ID,CURRENT_TIMESTAMP, 
              #{e.code}, #{e.message});
          &lt;/foreach&gt;
          end
          }
      &lt;/insert&gt;
  </code></pre>
  
  <p>Error Message:</p>
  
  <pre><code>org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter '__frch_e_0' not found. Available parameters are [list]
      at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:75)
      at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:371)
      at com.sun.proxy.$Proxy11.insert(Unknown Source)
      at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:240)
      at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:51)
      at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)
      at com.sun.proxy.$Proxy12.saveBeneErrorMessageList(Unknown Source)
      at ...
      ... 35 more
  </code></pre>