This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Problems with AML script

BKolb - Friday, November 8, 2013 10:21 AM:

I have a very basic AML script I want to use to change email addresses of multiple users.   Currently, I can't even get it to change one.   Can someone help me determine what's wrong?  I'm running AML Studio 2.0 on ARAS Innovator 9.3 SP7

My script is as follows:

 

<AML>
  <Item here="[User].login_name like '%1'" action="edit" type="User">
    <email>[email protected]</email>
  </Item>
</AML>

 

and the error I am getting is this:

 

<SOAP-ENV:Envelope
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Body>
    <SOAP-ENV:Fault
      xmlns:af="http://www.aras.com/InnovatorFault">
      <faultcode>SOAP-ENV:Server.MissingCriteriaException</faultcode>
      <faultstring>
        <![CDATA[Aras.Server.Core.MissingCriteriaException]]>
      </faultstring>
      <detail>
        <af:legacy_detail>
          <![CDATA[Aras.Server.Core.MissingCriteriaException]]>
        </af:legacy_detail>
        <af:exception message="Aras.Server.Core.MissingCriteriaException" type="Aras.Server.Core.MissingCriteriaException"/>
      </detail>
    </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>



zahar - Friday, November 8, 2013 1:23 PM:

<AML>

<Item type="User" action="edit" where="[User].login_name like '%1'">

<email>[email protected]</email>

</Item>

</AML>

 

Make sure you logged in as root and not admin or your code has identity or root

 



BKolb - Friday, November 8, 2013 2:51 PM:

Thanks but that was not the problem.  I figured it out finally.  The snippet I initially gave was not enough to solve the problem.  I had multiple lines like this:

 

<Item type="User" action="edit" where="[User].login_name like '%1'">

     <email>[email protected]</email>

</Item>

 

The problem was, most (but not all) of them had HERE instead of WHERE.  Once I changed them to WHERE, I was successful at runnining them while logged in as admin.  Thanks!