<div dir="ltr">Thank you very much for your answer, Pavol.<div><br></div><div>Best regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-09 10:55 GMT-03:00 Pavol Mederly <span dir="ltr"><<a href="mailto:mederly@evolveum.com" target="_blank">mederly@evolveum.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Hello Ana,</p>
    <p>yes, tasks are a bit different in this respect. (Partly caused by
      the fact that there can be more tasks with the same name; this is
      not possible for majority of other object types.)</p>
    <p>There are three possible solutions:</p>
    <ol>
      <li>update the task by executing "modify" (REST POST) operation
        instead of "overwrite" (REST PUT) operation;</li>
      <li>keep using REST PUT, but delete the task beforehand;</li>
      <li>file a JIRA request to fix this bug (but I cannot guarantee it
        will be done quickly).</li>
    </ol>
    <p>Best regards,<br>
    </p>
    <pre class="m_-517431922860403395moz-signature" cols="72">Pavol Mederly
Software developer
<a href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre><div><div class="h5">
    <div class="m_-517431922860403395moz-cite-prefix">On 03.01.2017 16:33, Ana Pereyra wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hi everyone. Happy New Year!
        <div><br>
        </div>
        <div>I'm writing because I have the following issue.</div>
        <div><br>
        </div>
        <div>When I try to perform an update of a task object via rest
          (using PUT method), I get the error 500 "Object 'TaskType'
          with oid 'XXXXXXXXXXXXXX' already exists."</div>
        <div><br>
        </div>
        <div>This only happens with tasks; it works fine for roles,
          resources, value policies, and others.</div>
        <div><br>
        </div>
        <div>Do I need to approach this tasks updates in a different
          way?</div>
        <div><br>
        </div>
        <div>Thanks in advance.</div>
        <div>Regards</div>
        <div><br>
          -- <br>
          <div class="m_-517431922860403395gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr"><b style="font-size:12.8px">Ana
                                Pereyra</b><br>
                            </div>
                            <div dir="ltr"><font style="font-size:12.8px" face="verdana,
                                sans-serif"><img> Identicum S.A.<br>
                                <i><font color="#666666">Jorge Newbery
                                    3226, Argentina<br>
                                    Tel: +54 (11) </font></i></font><font style="font-size:12.8px" face="verdana,
                                sans-serif" color="#666666"><i>4552.3050</i></font>
                              <div style="font-size:12.8px"><font face="verdana, sans-serif"><i><font size="1"><a href="mailto:apereyra@identicum.com" style="color:rgb(17,85,204)" target="_blank">apereyra@identicum.com</a></font></i><br>
                                  <a href="http://www.identicum.com/" style="color:rgb(17,85,204)" target="_blank"><font color="#000000">www.identicum.com</font></a></font></div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="m_-517431922860403395mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
midPoint mailing list
<a class="m_-517431922860403395moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a class="m_-517431922860403395moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b style="font-size:12.8px">Ana Pereyra</b><br></div><div dir="ltr"><font face="verdana, sans-serif" style="font-size:12.8px"><img src="http://www.identicum.com/img/favicon.ico"> Identicum S.A.<br><i><font color="#666666">Jorge Newbery 3226, Argentina<br>Tel: +54 (11) </font></i></font><font color="#666666" face="verdana, sans-serif" style="font-size:12.8px"><i>4552.3050</i></font><div style="font-size:12.8px"><font face="verdana, sans-serif"><i><font size="1"><a href="mailto:apereyra@identicum.com" style="color:rgb(17,85,204)" target="_blank">apereyra@identicum.com</a></font></i><br><a href="http://www.identicum.com/" style="color:rgb(17,85,204)" target="_blank"><font color="#000000">www.identicum.com</font></a></font></div></div></div></div></div></div></div></div></div></div></div>
</div>