[midPoint] modify extension attributes using a bulk task

Jason Everling jeverling at bshp.edu
Tue Aug 9 22:29:49 CEST 2016


midpoint 3.2 - I keep getting a schema exception when trying to use a bulk
task to modify an attribute for all users matching another extension
attribute, a sample is below

      <se:executeScript xmlns:s="
http://midpoint.evolveum.com/xml/ns/public/model/scripting-3">
         <s:search>
            <s:type>c:UserType</s:type>
            <s:searchFilter>
               <q:ref>
                  <q:path xmlns:bshp="http://midpoint.bshp.edu/bshp">declare
namespace bshp='http://midpoint.bshp.edu/bshp';
$c:user/c:extension/bshp:attribute1</q:path>
                  <q:value>oldvalue</q:value>
               </q:ref>
            </s:searchFilter>
            <s:action>
               <s:type>modify</s:type>
               <s:parameter>
                  <s:name>delta</s:name>
                  <value xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:type="t:ObjectDeltaType">
                     <t:changeType>modify</t:changeType>
                     <t:itemDelta>
                        <t:modificationType>replace</t:modificationType>
                        <t:path
xmlns:bshp="http://midpoint.bshp.edu/bshp">declare
namespace bshp='http://midpoint.bshp.edu/bshp';
$c:user/c:extension/bshp:attribute2</t:path>
                        <t:value>newvalue</t:value>
                     </t:itemDelta>
                  </value>
               </s:parameter>
            </s:action>
         </s:search>
      </se:executeScript>

   <result>
      <operation>run</operation>
      <status>fatal_error</status>
      <token>1000000000010283137</token>
      <message>Couldn't execute script: Couldn't parse object filter due to
schema exception</message>
      <partialResults>

 <operation>com.evolveum.midpoint.model.impl.scripting.ScriptExecutionTaskHandler.run</operation>
         <status>fatal_error</status>
         <token>1000000000010283151</token>
         <message>Couldn't execute script: Couldn't parse object filter due
to schema exception</message>
         <partialResults>
            <operation>class
com.evolveum.midpoint.model.impl.scripting.ScriptingExpressionEvaluator.evaluateExpression</operation>
            <status>unknown</status>
            <token>1000000000010283152</token>
         </partialResults>
      </partialResults>
   </result>


JASON

-- 


CONFIDENTIALITY NOTICE:
This e-mail together with any attachments is proprietary and confidential; 
intended for only the recipient(s) named above and may contain information 
that is privileged. You should not retain, copy or use this e-mail or any 
attachments for any purpose, or disclose all or any part of the contents to 
any person. Any views or opinions expressed in this e-mail are those of the 
author and do not represent those of the Baptist School of Health 
Professions. If you have received this e-mail in error, or are not the 
named recipient(s), you are hereby notified that any review, dissemination, 
distribution or copying of this communication is prohibited by the sender 
and to do so might constitute a violation of the Electronic Communications 
Privacy Act, 18 U.S.C. section 2510-2521. Please immediately notify the 
sender and delete this e-mail and any attachments from your computer. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20160809/ca792cbd/attachment.htm>


More information about the midPoint mailing list