<div dir="ltr">Hi Hsin-Fang,<div>Retry only works with ShadowType currently.</div><div>You can find some explanations here, some topics before. See for "errorHandling controlFlow for tasks"</div><div><br></div><div>BR</div><div>Yakov</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 26 Apr 2023 at 16:19, Hsin-Fang Hsu via midPoint <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg3522826391886995916">
<div lang="en-CH" style="overflow-wrap: break-word;">
<div class="m_3522826391886995916WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I want to ignore fatal error in task so it can keep running without stop.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I have tried in singleBulkActionTask and LiveSyncTask but none of it works. The task still suspends after a fatal error occurs.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Below please find the configuration of the tasks:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks a lot for your help in advance!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Hsin-Fang<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US">singleBulkActionTask<u></u><u></u></span></b></p>
<p class="MsoNormal" style="background:rgb(43,43,43)"><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"><task
</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">xmlns</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">=<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a><br>
</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">xmlns:</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">c</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">=<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a><br>
</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">xmlns:</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">q</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">=<a href="http://prism.evolveum.com/xml/ns/public/query-3" target="_blank">http://prism.evolveum.com/xml/ns/public/query-3</a><br>
</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">xmlns:</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">org</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">=<a href="http://midpoint.evolveum.com/xml/ns/public/common/org-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/common/org-3</a><br>
</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">oid</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">="0819890e-acea-4afe-80d7-aff79f4d9bff"</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">><br>
<name></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)">mustChangePwd</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"></name><br>
<assignment><br>
<targetRef </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">oid</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">="00000000-0000-0000-0000-000000000508"
</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">relation</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">="org:default"
</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">type</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">="c:ArchetypeType"</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">/><br>
</assignment><br>
<archetypeRef </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">oid</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">="00000000-0000-0000-0000-000000000508"
</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">relation</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">="org:default"
</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">type</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">="c:ArchetypeType"</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">><br>
</archetypeRef><br>
<roleMembershipRef </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">oid</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">="00000000-0000-0000-0000-000000000508"
</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">relation</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">="org:default"
</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">type</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">="c:ArchetypeType"</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">><br>
</roleMembershipRef><br>
<ownerRef </span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">oid</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">="00000000-0000-0000-0000-000000000002"</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">/><br>
<executionState></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)">runnable</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"></executionState><br>
<category></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)">BulkActions</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"></category><br>
<handlerUri></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)"><a href="http://midpoint.evolveum.com/xml/ns/public/model/scripting/handler-3%3c/handlerUri" target="_blank">http://midpoint.evolveum.com/xml/ns/public/model/scripting/handler-3</handlerUri</a></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">><br>
<schedule><br>
<recurrence></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)">single</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"></recurrence><br>
</schedule><br>
<extension><br>
<</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">scext</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:executeScript<br>
</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">xmlns:</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">scext</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">=<a href="http://midpoint.evolveum.com/xml/ns/public/model/scripting/extension-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/model/scripting/extension-3</a></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">><br>
<</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">s</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:search
</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(186,186,186)">xmlns:</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">s</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(106,135,89)">=<a href="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/model/scripting-3</a></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">><br>
<</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">s</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:type></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)">UserType</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"></</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">s</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:type><br>
<</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">s</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:action><br>
<</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">s</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:type></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)">modify</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"></</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">s</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:type><br>
<</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">s</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:parameter><br>
<</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">s</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:name></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)">delta</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"></</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">s</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:name><br>
<</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">c</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:value><br>
<changeType></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)">modify</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"></changeType><br>
<itemDelta><br>
<modificationType></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)">replace</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"></modificationType><br>
<path></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)">extension/mustChangePwd</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"></path><br>
<value></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)">true</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"></value><br>
</itemDelta><br>
</</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">c</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:value><br>
</</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">s</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:parameter><br>
</</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">s</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:action><br>
</</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">s</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:search><br>
</</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(152,118,170)">scext</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)">:executeScript><br>
</extension><br>
<activity><br>
<controlFlow><br>
<errorHandling><br>
<entry><br>
<situation><br>
<status></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)">fatal_error</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"></status><br>
</situation><br>
<reaction><br>
<retryLater><br>
<initialInterval></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)">PT1S</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"></initialInterval><br>
<nextInterval></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)">PT1S</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(232,191,106)"></nextInterval><br>
</retryLater><br>
</reaction><br>
</entry><br>
</errorHandling><br>
</controlFlow><br>
</activity><br>
</task></span><span style="font-size:10pt;font-family:"Courier New";color:rgb(169,183,198)"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b><span lang="EN-US">LiveSyncTask<u></u><u></u></span></b></p>
<pre style="background:rgb(43,43,43)"><span style="color:rgb(232,191,106)"><task </span><span style="color:rgb(186,186,186)">xmlns</span><span style="color:rgb(106,135,89)">=<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a><br> </span><span style="color:rgb(186,186,186)">xmlns:</span><span style="color:rgb(152,118,170)">c</span><span style="color:rgb(106,135,89)">=<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a><br> </span><span style="color:rgb(186,186,186)">xmlns:</span><span style="color:rgb(152,118,170)">icfs</span><span style="color:rgb(106,135,89)">=<a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3</a><br> </span><span style="color:rgb(186,186,186)">xmlns:</span><span style="color:rgb(152,118,170)">org</span><span style="color:rgb(106,135,89)">=<a href="http://midpoint.evolveum.com/xml/ns/public/common/org-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/common/org-3</a><br> </span><span style="color:rgb(186,186,186)">xmlns:</span><span style="color:rgb(152,118,170)">q</span><span style="color:rgb(106,135,89)">=<a href="http://prism.evolveum.com/xml/ns/public/query-3" target="_blank">http://prism.evolveum.com/xml/ns/public/query-3</a><br> </span><span style="color:rgb(186,186,186)">xmlns:</span><span style="color:rgb(152,118,170)">ri</span><span style="color:rgb(106,135,89)">=<a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a><br> </span><span style="color:rgb(186,186,186)">xmlns:</span><span style="color:rgb(152,118,170)">t</span><span style="color:rgb(106,135,89)">=<a href="http://prism.evolveum.com/xml/ns/public/types-3" target="_blank">http://prism.evolveum.com/xml/ns/public/types-3</a> </span><span style="color:rgb(186,186,186)">xmlns:</span><span style="color:rgb(152,118,170)">xsi</span><span style="color:rgb(106,135,89)">=<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><br> </span><span style="color:rgb(186,186,186)">oid</span><span style="color:rgb(106,135,89)">="ed760bf8-9bda-4f2d-88e0-077e37159403" </span><span style="color:rgb(186,186,186)">version</span><span style="color:rgb(106,135,89)">="1"</span><span style="color:rgb(232,191,106)">><br> <name></span><span style="color:rgb(169,183,198)">LiveSync Accounts</span><span style="color:rgb(232,191,106)"></name><br> <assignment><br> <targetRef </span><span style="color:rgb(186,186,186)">oid</span><span style="color:rgb(106,135,89)">="00000000-0000-0000-0000-000000000504" </span><span style="color:rgb(186,186,186)">relation</span><span style="color:rgb(106,135,89)">="org:default" </span><span style="color:rgb(186,186,186)">type</span><span style="color:rgb(106,135,89)">="c:ArchetypeType"</span><span style="color:rgb(232,191,106)">/><br> </assignment><br> <archetypeRef </span><span style="color:rgb(186,186,186)">oid</span><span style="color:rgb(106,135,89)">="00000000-0000-0000-0000-000000000504" </span><span style="color:rgb(186,186,186)">relation</span><span style="color:rgb(106,135,89)">="org:default" </span><span style="color:rgb(186,186,186)">type</span><span style="color:rgb(106,135,89)">="c:ArchetypeType"</span><span style="color:rgb(232,191,106)">/><br> <roleMembershipRef </span><span style="color:rgb(186,186,186)">oid</span><span style="color:rgb(106,135,89)">="00000000-0000-0000-0000-000000000504" </span><span style="color:rgb(186,186,186)">relation</span><span style="color:rgb(106,135,89)">="org:default" </span><span style="color:rgb(186,186,186)">type</span><span style="color:rgb(106,135,89)">="c:ArchetypeType"</span><span style="color:rgb(232,191,106)">/><br> <ownerRef </span><span style="color:rgb(186,186,186)">oid</span><span style="color:rgb(106,135,89)">="00000000-0000-0000-0000-000000000002" </span><span style="color:rgb(186,186,186)">relation</span><span style="color:rgb(106,135,89)">="org:default" </span><span style="color:rgb(186,186,186)">type</span><span style="color:rgb(106,135,89)">="c:UserType"</span><span style="color:rgb(232,191,106)">/><br> <executionState></span><span style="color:rgb(169,183,198)">runnable</span><span style="color:rgb(232,191,106)"></executionState><br> <schedulingState></span><span style="color:rgb(169,183,198)">ready</span><span style="color:rgb(232,191,106)"></schedulingState><br> <objectRef </span><span style="color:rgb(186,186,186)">oid</span><span style="color:rgb(106,135,89)">="81c8ae58-3950-457d-a814-a7385372d131" </span><span style="color:rgb(186,186,186)">relation</span><span style="color:rgb(106,135,89)">="org:default" </span><span style="color:rgb(186,186,186)">type</span><span style="color:rgb(106,135,89)">="c:ResourceType"</span><span style="color:rgb(232,191,106)">/><br> <binding></span><span style="color:rgb(169,183,198)">loose</span><span style="color:rgb(232,191,106)"></binding><br> <schedule><br> <recurrence></span><span style="color:rgb(169,183,198)">recurring</span><span style="color:rgb(232,191,106)"></recurrence><br> <interval></span><span style="color:rgb(169,183,198)">300</span><span style="color:rgb(232,191,106)"></interval><br> <misfireAction></span><span style="color:rgb(169,183,198)">executeImmediately</span><span style="color:rgb(232,191,106)"></misfireAction><br> </schedule><br> <errorHandlingStrategy><br> <entry><br> <situation><br> <status></span><span style="color:rgb(169,183,198)">fatal_error</span><span style="color:rgb(232,191,106)"></status><br> </situation><br> <reaction><br> <retryLater><br> <initialInterval></span><span style="color:rgb(169,183,198)">PT5S</span><span style="color:rgb(232,191,106)"></initialInterval><br> <nextInterval></span><span style="color:rgb(169,183,198)">PT5S</span><span style="color:rgb(232,191,106)"></nextInterval><br> </retryLater><br> </reaction><br> </entry><br> </errorHandlingStrategy><br> <activity><br> <work><br> <liveSynchronization><br> <resourceObjects><br> <resourceRef </span><span style="color:rgb(186,186,186)">oid</span><span style="color:rgb(106,135,89)">="81c8ae58-3950-457d-a814-a7385372d131" </span><span style="color:rgb(186,186,186)">relation</span><span style="color:rgb(106,135,89)">="org:default" </span><span style="color:rgb(186,186,186)">type</span><span style="color:rgb(106,135,89)">="c:ResourceType"</span><span style="color:rgb(232,191,106)">/><br> <kind></span><span style="color:rgb(169,183,198)">account</span><span style="color:rgb(232,191,106)"></kind><br> <intent></span><span style="color:rgb(169,183,198)">default</span><span style="color:rgb(232,191,106)"></intent><br> <objectclass></span><span style="color:rgb(169,183,198)">ri:AccountObjectClass</span><span style="color:rgb(232,191,106)"></objectclass><br> </resourceObjects><br> </liveSynchronization><br> </work><br> <distribution><br> <workerThreads></span><span style="color:rgb(169,183,198)">2</span><span style="color:rgb(232,191,106)"></workerThreads><br> </distribution><br> </activity><br></task></span><span style="color:rgb(169,183,198)"><u></u><u></u></span></pre>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</div></blockquote></div>