<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000"><br>
Ahhhh!! $account/attributes/icfs:name worked! <br>
<br>
Previously I had "uid" instead of "id" everywhere. i.e my csv  field was
 called "uid" and I was using<br>
<br>
$account/attributes/ri:uid in my mapping and this was failing with the 
same error (i.e null value) - so I suppose uid and id are off-limits for
 such purposes....<br>
<br>
Thank you! <br>
<blockquote style="border: 0px none;" 
cite="mid:53FCC143.5030805@evolveum.com" type="cite">
  <div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div 
style="display:table;width:100%;border-top:1px solid 
#EDEEF0;padding-top:5px">       <div 
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
 photoaddress="ivan.noris@evolveum.com" photoname="Ivan Noris" 
src="cid:part1.08050103.08070606@trilobytesystems.com" 
name="compose-unknown-contact.jpg" height="25px" width="25px"></div>   <div
 
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
        <a moz-do-not-send="true" href="mailto:ivan.noris@evolveum.com" 
style="color:#737F92 
!important;padding-right:6px;font-weight:bold;text-decoration:none 
!important;">Ivan Noris</a></div>   <div 
style="display:table-cell;white-space:nowrap;vertical-align:middle;">   
  <font color="#9FA2A5"><span style="padding-left:6px">August 26, 2014 
at 7:17 PM</span></font></div></div></div>
  <div style="color:#888888;margin-left:24px;margin-right:24px;" 
__pbrmquotes="true" class="__pbConvBody"><div>Hi Deepak,<br><br>Errrrr...
 Now I have a feeling, that to address your "id" property, you<br>need 
to use "icfs:name". The CSV connector is masking that attribute as<br>the
 icfs:name attribute. (Because it is configured as the unique key in<br>configurationProperties.)<br><br>So
 please to get your "id" try to use the path:<br><path>$account/attributes/icfs:name</path><br><br>Regards,<br>Ivan<br></div><div><!----><br></div></div>
  <div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div 
style="display:table;width:100%;border-top:1px solid 
#EDEEF0;padding-top:5px">       <div 
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
 photoaddress="ivan.noris@evolveum.com" photoname="Ivan Noris" 
src="cid:part1.08050103.08070606@trilobytesystems.com" 
name="compose-unknown-contact.jpg" height="25px" width="25px"></div>   <div
 
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
        <a moz-do-not-send="true" href="mailto:ivan.noris@evolveum.com" 
style="color:#737F92 
!important;padding-right:6px;font-weight:bold;text-decoration:none 
!important;">Ivan Noris</a></div>   <div 
style="display:table-cell;white-space:nowrap;vertical-align:middle;">   
  <font color="#9FA2A5"><span style="padding-left:6px">August 26, 2014 
at 4:51 PM</span></font></div></div></div>
  <div style="color:#888888;margin-left:24px;margin-right:24px;" 
__pbrmquotes="true" class="__pbConvBody">
  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
    Hi Deepak,<br>
    <br>
    I've just checked one of my customer objects for 3.0.x<br>
    <br>
    I'm using this:<br>
    <br>
                <attribute><br>
                        <ref>ri:P0000_ATTR1</ref><br>
                        <displayName>Attr1</displayName><br>
                        <inbound><br>
                               <source><br>
                                        <name>ATTRX</name><br>
                                       
    <path>$account/attributes/P0001_ATTRX</path><br>
                                </source><br>
                                <source><br>
                                        <name>ATTRY</name><br>
                                       
    <path>$account/attributes/ATTRY</path><br>
                                </source><br>
                                <expression><br>
    . . .<br>
    <br>
    But it should also work with "ri:" prefixes, if the "ri" namespace
    is defined and correct (xmlns:ri=<a moz-do-not-send="true" 
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" 
class="moz-txt-link-rfc2396E">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>
    - I define it usually at the resource level).<br>
    <br>
    How are you referencing your "input" implicit variable?<br>
    In my expression (Groovy) it is:<br>
    <br>
    if (<b>input</b> == '0') return 'FormerEmployee'<br>
    <br>
    Are you perhaps referencing it as "$input" instead of "input"... ?<br>
    Also, the source attributes in my sample would be referenced as
    "ATTRX" / "ATTRY" in the Groovy expressions.<br>
    <br>
    <br>
    Regards,<br>
    Ivan<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 08/26/2014 11:35 AM, Deepak
      Natarajan wrote:<br>
    </div>
    
    <br>
    <div>-- <br>  Ing. Ivan Noris<br>  Senior Identity Management 
Engineer<br>  evolveum.com<br>  
___________________________________________<br>           "Idem per idem
 - semper idem Vix."<br></div>
  <div>_______________________________________________<br>midPoint 
mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br><a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br></div></div>
  <div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div 
style="display:table;width:100%;border-top:1px solid 
#EDEEF0;padding-top:5px">       <div 
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
 photoaddress="dnataraj@trilobytesystems.com" photoname="Deepak 
Natarajan" src="cid:part1.08050103.08070606@trilobytesystems.com" 
name="compose-unknown-contact.jpg" height="25px" width="25px"></div>   <div
 
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
        <a moz-do-not-send="true" 
href="mailto:dnataraj@trilobytesystems.com" style="color:#737F92 
!important;padding-right:6px;font-weight:bold;text-decoration:none 
!important;">Deepak Natarajan</a></div>   <div 
style="display:table-cell;white-space:nowrap;vertical-align:middle;">   
  <font color="#9FA2A5"><span style="padding-left:6px">August 26, 2014 
at 11:35 AM</span></font></div></div></div>
  <div style="color:#888888;margin-left:24px;margin-right:24px;" 
__pbrmquotes="true" class="__pbConvBody"><div>Hi -<br><br>I find some 
simple inbound mapping behaving inconsistently (I'm<br>obviously doing 
something wrong)<br><br>My source feed (CSV) :<br><br>                
<icfccsvfile:encoding>utf-8</icfccsvfile:encoding><br>      
          
<icfccsvfile:valueQualifier>"</icfccsvfile:valueQualifier><br>
                
<icfccsvfile:fieldDelimiter>;</icfccsvfile:fieldDelimiter><br>
               <br><icfccsvfile:multivalueDelimiter>,</icfccsvfile:multivalueDelimiter><br>
               <br><icfccsvfile:usingMultivalue>false</icfccsvfile:usingMultivalue><br>
               <br><icfccsvfile:uniqueAttribute>id</icfccsvfile:uniqueAttribute><br><br>"id";"encoded-attributes"<br>"foo";"3AARpkJyaXR0YalSYXNtdXN"<br><br>and
 my mappings :<br><br>                <attribute><br>             
       <ref>icfs:uid</ref><br>                    
<limitations><br>                        <access><br>       
                     <read>true</read><br>                  
      </access><br>                    </limitations><br>   
             </attribute><br><br>                <attribute><br>
                    <ref>icfs:name</ref><br>                
    <inbound><br>                        <c:expression><br> 
                           <c:script><br>                         
       <c:code><br>                                    input + 
'-suffix'<br>                                </c:code><br>        
                    </c:script><br>                        
</c:expression><br>                        <target><br>     
                       <path>$user/name</path><br>          
              </target><br>                    </inbound><br>
                </attribute><br><br>                
<attribute><br>                    
<ref>ri:encoded-attributes</ref><br>                    
<inbound><br>                        <source><br>           
                 <name>encodedAttrs</name><br>              
             <br><path>$account/attributes/ri:encoded-attributes</path><br>
                        </source><br>                        
<source><br>                            
<name>id</name><br>                            
<path>$account/attributes/ri:id</path><br>                  
      </source><br>                        ....<br>               
         ....<br>                    </inbound><br><br>Is this 
incorrect?<br> <br>The thing is, I have used this configuration before, 
without any<br>changes, and it used to work. Today it fails (my VCS 
system shows my<br>working version had these mappings)<br><br>Caused by:<br>com.evolveum.midpoint.util.exception.ExpressionEvaluationException:<br>java.lang.NullPointerException
 expression in mapping in inbound<br>expression for<br>{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>}encoded-attributes<br>in
 <a class="moz-txt-link-freetext" href="resource:036f0100-2fe8-49e1-a8fd-5548374f8703(APOS">resource:036f0100-2fe8-49e1-a8fd-5548374f8703(APOS</a> CSV Feeder<br>Resource
 Definition)({.../common/common-3}input=null;<br>{.../common/common-3}id=null;<br>{.../common/common-3}encodedAttrs=PPV(String:3AARpkJyaXR0YalSYXNtdXN
 );<br>) in expression in mapping in inbound expression for<br>{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>}encoded-attributes<br>in
 <a class="moz-txt-link-freetext" href="resource:036f0100-2fe8-49e1-a8fd-5548374f8703(APOS">resource:036f0100-2fe8-49e1-a8fd-5548374f8703(APOS</a> CSV Feeder<br>Resource
 Definition)<br><br>Why is "input" implicit variable and id both null?<br><br>Thanks
 for any help!<br><br>-<br>Deepak Natarajan<br><br></div></div>
</blockquote>
<br>
<div class="moz-signature">-- <br>Deepak Natarajan<br>




Director<br>

<br>




Trilobyte Systems ApS<br>

<br>

Falkoner Alle 1, 3            Fredrikinkatu 61A, 6th Floor<br>




2000 Frederiksberg         Business Center Papula<br>




Denmark            
              
00100 Helsinki<br>

            
            
            
    Finland<br>

<br>

Tel : +45 29375068<br>

<a class="moz-txt-link-freetext" href="http://www.trilobytesystems.com">http://www.trilobytesystems.com</a><br>

<br>




<br>




</div>
</body></html>