<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Remi,<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 05/30/2013 11:29 AM, Tys Remi wrote:<br>
    </div>
    <blockquote
cite="mid:DE5D3484F216BE488C6E63D7CAE01584047642E5@ws08-mhexch10-b.iconos.be"
      type="cite">
      <pre wrap="">Hello again,

I am having trouble mapping my csv file to the internal repository.
The thing is that I do not know how to handle the custom schema extension attributes.
This is an example of one of the attributes in my schema handling in the csv resource object.

<c:attribute>
            <c:ref xmlns:ri=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-2">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-2"</a>>ri:city</c:ref>
            <c:displayName>City</c:displayName>
            <c:inbound>
               <c:target>
                  <c:path xmlns:gen544=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd">"http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd"</a>
                          xmlns:xsd=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>
                          xmlns:ri=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-2">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-2"</a>
                          xmlns:gen53=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd">"http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd"</a>
                          xmlns:my=<a class="moz-txt-link-rfc2396E" href="http://myself.me/schemas/whatever">"http://myself.me/schemas/whatever"</a>
                          xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>>$user/extension/city</c:path>
               </c:target>
            </c:inbound>
</c:attribute>

I have tried mapping it without the /extension part as well but I can't figure out how I'm supposed to map it.

My idm.log shows errors like: No target item found that would conform to the path ${.../common/common-2a}user/{.../common/common-2a}extension/{.../common/common-2a}/city

>From what I understand from the live demo is that I need to address it as $user/extension/ext:city and declare the namespace from my extension.xsd file in the path as xmlns:ext, but everytime I add it and save it, it disappears the next time I open it.

</pre>
    </blockquote>
    <br>
    You are right regarding to the addressing the custom/schema
    attribute. It should be $user/extension/ext:city and ext should be
    declared as a prefix for your namespace.<br>
    <br>
    Consider this example:<br>
    <br>
                   <attribute><br>
                        <ref>ri:managerPersonNumber</ref><br>
                        <displayName>Manager Employee
    Number</displayName><br>
                        <access>read</access><br>
                        <inbound><br>
                          <target><br>
                            <path><b>$user/extension/customer1:managerEmployeeNumber</b></path><br>
                          </target><br>
                        </inbound><br>
                    </attribute><br>
    <br>
    I define the "<b>customer1</b>" prefix for my custom namespace in
    the XML file with my resource/object definition:<br>
    <br>
    <objects
    xmlns=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">"http://midpoint.evolveum.com/xml/ns/public/common/common-2a"</a><br>
              
    xmlns:c=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">"http://midpoint.evolveum.com/xml/ns/public/common/common-2a"</a><br>
               xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a><br>
               xmlns:xsd=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a><br>
               xmlns:q=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/query-2">"http://prism.evolveum.com/xml/ns/public/query-2"</a><br>
              
    xmlns:ri="<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/resource/instanc">http://midpoint.evolveum.com/xml/ns/public/resource/instanc</a><br>
    e-2"<br>
               xmlns:my=<a class="moz-txt-link-rfc2396E" href="http://myself.me/schemas/whatever">"http://myself.me/schemas/whatever"</a><br>
              
    xmlns:icfs="<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/connector/icf">http://midpoint.evolveum.com/xml/ns/public/connector/icf</a>-<br>
    1/resource-schema-2"<br>
              
xmlns:icfc=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-2">"http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-2"</a><br>
               <b>xmlns:customer1=<a class="moz-txt-link-rfc2396E" href="http://evolveum.com/customer1">"http://evolveum.com/customer1"</a></b>><br>
    <br>
        <resource oid="ef2bc95b-76e0-48e2-86d6-a000ff000002"><br>
    ...<br>
    <br>
    This definitely works. (It's from my customer resource definition.)<br>
    <br>
    Maybe you are encountering a bug with embedded XML editor. I
    recommend you to use an XML file with your resource definition and
    put the inbound and the custom attribute and namespaces there. (This
    will also help you in the future if you want to track your
    configuration changes in Subversion, git etc.)<br>
    <br>
    Please let me know if it works this way (it should, we're using it).
    If there is a bug with the embedded editor, we have to confirm it in
    trunk (to-be-2.2 version). So let us know anyway.<br>
    <br>
    Hope this helps.<br>
    <br>
    Regards,<br>
    Ivan<br>
    <pre class="moz-signature" cols="72">-- 
  Ing. Ivan Noris
  Consultant
  Evolveum, s.r.o
  ___________________________________________________
  "Semper cautus - semper paratus - semper idem Vix."
</pre>
  </body>
</html>