<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body 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="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
    <div class="moz-cite-prefix">On 03.01.2017 16:33, Ana Pereyra wrote:<br>
    </div>
    <blockquote
cite="mid:CAO5EgRqyH-5zS6AZLu=UAN0WWBvzFDxK1LY0YsPaMq9ALvky6w@mail.gmail.com"
      type="cite">
      <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="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
                                style="font-size:12.8px" face="verdana,
                                sans-serif"><img moz-do-not-send="true"
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
                                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 moz-do-not-send="true"
href="mailto:apereyra@identicum.com" style="color:rgb(17,85,204)"
                                        target="_blank">apereyra@identicum.com</a></font></i><br>
                                  <a moz-do-not-send="true"
                                    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="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>