title: Microsoft Dynamics AX 2009: Error executing code: Wrong argument types in variable assignment
body: <p>I have added an object member to InventMovement class and have created one parameter method for the same but following line of code is popping up above error:</p>
  
  <pre><code>movement.parmProdJournalId(this.JournalId);
  
  JournalId parmProdJournalId(JournalId _prodJournalId = prodJournalId)
  {
      ;
      prodJournalId =  _prodJournalId;
      return prodJournalId;
  }
  </code></pre>
  
  <p>After adding the object member and parameter method I have also compile forward InventMovement but no success. Will appreciate if anyone of you could help me in this regard</p>
  
  <p>Rgds</p>
  
  <p>PS: I am doing the same thing which is mentioned in this blog post: <a href="http://www.artofcreation.be/2009/04/04/wrong-argument-types-in-variable-assignment/" rel="nofollow noreferrer">http://www.artofcreation.be/2009/04/04/wrong-argument-types-in-variable-assignment/</a></p>