<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>please check you correlation. In the path-Tag you need to refer
      to an attribute of the projection/account, not to an attribute of
      the focus object.</p>
    <p>You could try this:</p>
    <pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:'JetBrains Mono',monospace;font-size:9,8pt;"><span style="color:#e8bf6a;"><correlation>
</span><span style="color:#e8bf6a;">    <</span><span style="color:#9876aa;">q</span><span style="color:#e8bf6a;">:equal </span><span style="color:#bababa;">xmlns</span><span style="color:#6a8759;">=""</span><span style="color:#e8bf6a;">>
</span><span style="color:#e8bf6a;">        <</span><span style="color:#9876aa;">q</span><span style="color:#e8bf6a;">:path></span>name<span style="color:#e8bf6a;"></</span><span style="color:#9876aa;">q</span><span style="color:#e8bf6a;">:path>
</span><span style="color:#e8bf6a;">        <expression>
</span><span style="color:#e8bf6a;">            <path></span>$projection/attributes/ri:<i><font size="2">TREL_CODIGO</font></i><span style="color:#e8bf6a;"></path>
</span><span style="color:#e8bf6a;">        </expression>
</span><span style="color:#e8bf6a;">    </</span><span style="color:#9876aa;">q</span><span style="color:#e8bf6a;">:equal>
</span><span style="color:#e8bf6a;"></correlation></span></pre>
    <p><br>
    </p>
    <p>You also need to make sure that you are also mapping TREL_CODIGO
      to the midPoint "name" property in the schema handling.<br>
    </p>
    <p>HTH</p>
    <p>Marc<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Am 10.02.22 um 14:14 schrieb Mercedes
      Oncina Deltell via midPoint:<br>
    </div>
    <blockquote type="cite"
      cite="mid:7b623c6f-989c-1cd2-74ad-08e159063317@um.es">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>I have configured it as you wrote and I can see the
        entitlements from de resource in midPoint, but when I try to
        import them, I get the now familiar error:</p>
      <dt id="idd85f" style="box-sizing: border-box; line-height:
        1.42857; font-weight: 700; float: left; width: 100px; clear:
        left; text-align: right; overflow: hidden; text-overflow:
        ellipsis; white-space: nowrap; color: rgb(51, 51, 51);
        font-family: "Source Sans Pro", "Helvetica
        Neue", Helvetica, Arial, sans-serif; font-size: 14px;
        font-style: normal; font-variant-ligatures: normal;
        font-variant-caps: normal; letter-spacing: normal; orphans: 2;
        text-indent: 0px; text-transform: none; widows: 2; word-spacing:
        0px; -webkit-text-stroke-width: 0px; background-color: rgb(255,
        255, 255); text-decoration-thickness: initial;
        text-decoration-style: initial; text-decoration-color: initial;">Message</dt>
      <dd id="idd860" style="box-sizing: border-box; line-height:
        1.42857; margin-left: 130px; word-break: break-word; color:
        rgb(51, 51, 51); font-family: "Source Sans Pro",
        "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 14px; font-style: normal; font-variant-ligatures:
        normal; font-variant-caps: normal; font-weight: 400;
        letter-spacing: normal; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(255, 255, 255); text-decoration-thickness:
        initial; text-decoration-style: initial; text-decoration-color:
        initial;">Could not import account
        shadow:b18c3e63-f2c5-461c-b6c0-27b91e0aa2bb(01)</dd>
      <dd style="box-sizing: border-box; line-height: 1.42857;
        margin-left: 130px; word-break: break-word; color: rgb(51, 51,
        51); font-family: "Source Sans Pro", "Helvetica
        Neue", Helvetica, Arial, sans-serif; font-size: 14px;
        font-style: normal; font-variant-ligatures: normal;
        font-variant-caps: normal; font-weight: 400; letter-spacing:
        normal; orphans: 2; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(255, 255, 255); text-decoration-thickness:
        initial; text-decoration-style: initial; text-decoration-color:
        initial;">
        <table class="paramtable" style="box-sizing: border-box;
          border-collapse: collapse; border-spacing: 0px;
          background-color: transparent; border: 0px;">
        </table>
      </dd>
      <dd style="box-sizing: border-box; line-height: 1.42857;
        margin-left: 130px; word-break: break-word; color: rgb(51, 51,
        51); font-family: "Source Sans Pro", "Helvetica
        Neue", Helvetica, Arial, sans-serif; font-size: 14px;
        font-style: normal; font-variant-ligatures: normal;
        font-variant-caps: normal; font-weight: 400; letter-spacing:
        normal; orphans: 2; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(255, 255, 255); text-decoration-thickness:
        initial; text-decoration-style: initial; text-decoration-color:
        initial;">
        <table class="paramtable" style="box-sizing: border-box;
          border-collapse: collapse; border-spacing: 0px;
          background-color: transparent; border: 0px;">
        </table>
      </dd>
      <dt id="idd861" style="box-sizing: border-box; line-height:
        1.42857; font-weight: 700; float: left; width: 100px; clear:
        left; text-align: right; overflow: hidden; text-overflow:
        ellipsis; white-space: nowrap; color: rgb(51, 51, 51);
        font-family: "Source Sans Pro", "Helvetica
        Neue", Helvetica, Arial, sans-serif; font-size: 14px;
        font-style: normal; font-variant-ligatures: normal;
        font-variant-caps: normal; letter-spacing: normal; orphans: 2;
        text-indent: 0px; text-transform: none; widows: 2; word-spacing:
        0px; -webkit-text-stroke-width: 0px; background-color: rgb(255,
        255, 255); text-decoration-thickness: initial;
        text-decoration-style: initial; text-decoration-color: initial;">Error</dt>
      <dd id="idd862" style="box-sizing: border-box; line-height:
        1.42857; margin-left: 130px; word-break: break-word; color:
        rgb(51, 51, 51); font-family: "Source Sans Pro",
        "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 14px; font-style: normal; font-variant-ligatures:
        normal; font-variant-caps: normal; font-weight: 400;
        letter-spacing: normal; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(255, 255, 255); text-decoration-thickness:
        initial; text-decoration-style: initial; text-decoration-color:
        initial;">No object class found for the shadow</dd>
      <p>My configuration is:<br>
      </p>
      <blockquote>
        <p><i><font size="2"><b>    <schemaHandling></b><br>
                      <objectType id="16"><br>
              <b>            <kind>entitlement</kind></b><b><br>
              </b><b>            <intent>default</intent></b><b><br>
              </b><b>            <default>true</default></b><b><br>
              </b><b>           
                <objectClass>ri:AccountObjectClass</objectClass></b><br>
                          <attribute id="17"><br>
                              <ref>icfs:uid</ref><br>
                              <tolerant>true</tolerant><br>
                              <inbound id="19"><br>
                                 
              <authoritative>true</authoritative><br>
                                 
              <exclusive>false</exclusive><br>
                                 
              <strength>normal</strength><br>
                                  <target><br>
                                      <path>name</path><br>
                                  </target><br>
                              </inbound><br>
                          </attribute><br>
                          <attribute id="18"><br>
                              <ref>ri:TREL_DESCRIPCION</ref><br>
                              <tolerant>true</tolerant><br>
                             
              <exclusiveStrong>false</exclusiveStrong><br>
                              <inbound id="20"><br>
                                 
              <authoritative>true</authoritative><br>
                                 
              <exclusive>false</exclusive><br>
                                 
              <strength>normal</strength><br>
                                  <target><br>
                                     
              <path>displayName</path><br>
                                  </target><br>
                              </inbound><br>
                          </attribute><br>
                      </objectType><br>
                  </schemaHandling><br>
                <b>  <synchronization></b><br>
                      <objectSynchronization><br>
                          <name>SynchroRoles</name><br>
              <b>           
                <objectClass>AccountObjectClass</objectClass></b><b><br>
              </b><b>            <kind>entitlement</kind></b><b><br>
              </b><b>            <intent>default</intent></b><b><br>
              </b><b>           
                <focusType>c:RoleType</focusType></b><b><br>
              </b><b>            <enabled>true</enabled></b><br>
              <b>            <correlation></b><br>
                              <q:equal xmlns=""><br>
                                  <q:path>name</q:path><br>
                                  <expression xmlns=""><br>
                                     
              <path>$focus/attributes/trel_codigo</path><br>
                                  </expression><br>
                              </q:equal><br>
                             
              <q:description>CheckUIDwithCODIGO</q:description><br>
                          </correlation><br>
                          <reconcile>false</reconcile><br>
                          <reaction><br>
                              <situation>deleted</situation><br>
                             
              <synchronize>true</synchronize><br>
                              <action><br>
                                 
              <handlerUri><a class="moz-txt-link-freetext"
                href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#unlink"
                moz-do-not-send="true">http://midpoint.evolveum.com/xml/ns/public/model/action-3#unlink</a></handlerUri><br>
                              </action><br>
                          </reaction><br>
                          <reaction><br>
                              <situation>linked</situation><br>
                             
              <synchronize>true</synchronize><br>
                              <reconcile>false</reconcile><br>
                          </reaction><br>
                          <reaction><br>
                             
              <situation>unlinked</situation><br>
                             
              <synchronize>true</synchronize><br>
                              <action><br>
                                 
              <handlerUri><a class="moz-txt-link-freetext"
                href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#link"
                moz-do-not-send="true">http://midpoint.evolveum.com/xml/ns/public/model/action-3#link</a></handlerUri><br>
                              </action><br>
                          </reaction><br>
                          <reaction><br>
                             
              <situation>unmatched</situation><br>
                             
              <synchronize>true</synchronize><br>
                              <reconcile>false</reconcile><br>
                              <action><br>
                                 
              <handlerUri><a class="moz-txt-link-freetext"
href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus"
                moz-do-not-send="true">http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus</a></handlerUri><br>
                              </action><br>
                          </reaction><br>
                      </objectSynchronization><br>
                  </synchronization></font></i></p>
      </blockquote>
      <p>The Oracle table is:</p>
      <blockquote>
        <p><i><font size="2">CREATE TABLE TIPO_RELACIONES<br>
              (<br>
                TREL_CODIGO         VARCHAR2(2 BYTE),<br>
                TREL_DESCRIPCION    VARCHAR2(60 BYTE),<br>
                TREL_UNIVERSITARIO  VARCHAR2(1 BYTE),<br>
                TREL_PRIORIDAD      NUMBER(2),<br>
                TREL_DURACION       DATE,<br>
                TREL_MESES          NUMBER(4),<br>
                TREL_TIPO_DURACION  VARCHAR2(1 BYTE),<br>
                TREL_VIGENTE        VARCHAR2(1 BYTE),<br>
                TREL_RESPONSABLE    VARCHAR2(8 BYTE),<br>
                TREL_TIPO_EMAIL     VARCHAR2(1 BYTE),<br>
                TREL_EXTERNO        VARCHAR2(1 BYTE)<br>
              )</font></i><br>
        </p>
      </blockquote>
      <p>I only want it for importing and synchronizing data into
        midPoint (inbound).<br>
      </p>
      <p><br>
      </p>
      <div class="moz-cite-prefix">El 10/02/2022 a las 12:00, <a
          class="moz-txt-link-abbreviated moz-txt-link-freetext"
          href="mailto:midpoint-request@lists.evolveum.com"
          moz-do-not-send="true">midpoint-request@lists.evolveum.com</a>
        escribió:<br>
      </div>
      <blockquote type="cite"
        cite="mid:mailman.5.1644490802.19051.midpoint@lists.evolveum.com">
        <pre class="moz-quote-pre" wrap=""><schemaHandling> <objectType> <objectClass>ri:AccountObjectClass</objectClass> <default>true</default> <kind><b class="moz-txt-star"><span class="moz-txt-tag">*</span>entitlement<span class="moz-txt-tag">*</span></b></kind> <intent>default</intent> ...
<synchronization> <objectSynchronization> <objectClass>AccountObjectClass</objectClass> <kind><b class="moz-txt-star"><span class="moz-txt-tag">*</span>entitlement<span class="moz-txt-tag">*</span></b></kind> <intent>default</intent> <focusType>RoleType</focusType> <enabled>true</enabled>

...</pre>
      </blockquote>
      <pre class="moz-signature" cols="72">-- 
Mercedes Oncina Deltell
Servicio de Infraestructuras TICS
ATICA - Universidad de Murcia
Telf: +34 868881983</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Marc Füller
Consultant

DAASI International GmbH
Europaplatz 3
D-72072 Tübingen
Germany

phone: +49 7071 407109-0
fax:   +49 7071 407109-9
email: <a class="moz-txt-link-abbreviated" href="mailto:marc.fueller@daasi.de">marc.fueller@daasi.de</a>
web:   <a class="moz-txt-link-abbreviated" href="http://www.daasi.de">www.daasi.de</a>
Sitz der Gesellschaft: Tübingen
Registergericht: Amtsgericht Stuttgart, HRB 382175
Geschäftsleitung: Peter Gietz</pre>
  </body>
</html>