title: Args object not initialized AX 2012
body: <p>This is my code:</p>
  
  <pre><code>static void main(Args args)
  {
      LedgerJournalId ledgerJournalId;
      HSinvoiceAcknowledgement hSinvoiceAcknowledgement = new HSinvoiceAcknowledgement();
  
      if (classidget(args.caller()) == classnum(syssetupformrun))
      {
          if (formhasmethod(args.caller(), identifierstr(HSjournalnum)))
          {
              ledgerjournalid = args.caller().HSjournalnum();
          }
      }
  
      if(ledgerJournalId)
      {
          hSinvoiceAcknowledgement.parmJournalNum(ledgerJournalId);
      }
      if (hSinvoiceAcknowledgement.prompt())
      {
          hSinvoiceAcknowledgement.run();
      }
  }
  </code></pre>
  
  <p>I have <strong>Args args</strong> parameters in my main method however it says that </p>
  
  <blockquote>
    <p>Args object not initialized</p>
  </blockquote>
  
  <p>what could be wrong?</p>