[midPoint] modify extension attributes using a bulk task
Jason Everling
jeverling at bshp.edu
Wed Aug 10 15:59:41 CEST 2016
It works now, I also had to change " $c:user/c:extension/bshp:attribute" to
"c:extension/bshp:attribute" . This task will help out our registrars since
the change will automatically get propagated back to our campus system.
Thanks again!
JASON
On Wed, Aug 10, 2016 at 2:39 AM, Pavol Mederly <mederly at evolveum.com> wrote:
> Hello Jason,
>
> in your log file there would be a more detailed explanation of the error,
> but even without it - let me guess:
>
> <q:ref> is for matching references. For matching properties, please use
> <q:equal>.
>
> If this would not help, please try to find the exception in your log, and
> send it here.
>
> Best regards,
>
> Pavol Mederly
> Software developerevolveum.com
>
> On 09.08.2016 22:29, Jason Everling wrote:
>
> 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.
>
>
> _______________________________________________
> midPoint mailing listmidPoint at lists.evolveum.comhttp://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
--
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/20160810/9ded870a/attachment.htm>
More information about the midPoint
mailing list