<html><body><font color="#222222" face="arial, sans-serif"><span style="font-size:12.8px">Hi again,</span></font><div><font color="#222222" face="arial, sans-serif"><span style="font-size:12.8px">So now conversion is not giving me an error anymore. But I am still not able to populate validFrom and validTo in midpoint.</span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:12.8px">Used CSV is in attachment. So for me important attributes are validFrom (StartDate), validTo (EndDate), and AdministartiveStatus (Status).</span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:12.8px"><br></span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:12.8px">In resource configuration i tryed to add following definition in schema handling: </span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:12.8px"><br></span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:12.8px"><div><div>         <attribute id="12"></div><div>            <c:ref>ri:StartDate</c:ref></div><div>            <tolerant>true</tolerant></div><div>            <exclusiveStrong>false</exclusiveStrong></div><div>            <inbound id="17"></div><div>               <authoritative>true</authoritative></div><div>               <exclusive>false</exclusive></div><div>               <strength>normal</strength></div><div>               <expression></div><div>                  <script xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</div><div>                          xsi:type="c:ScriptExpressionEvaluatorType"></div><div>                          <code></div><div>                            import java.text.SimpleDateFormat;</div><div>                            import java.text.DateFormat;</div><div>                            import java.util.Locale; </div><div>                            DateFormat df = new SimpleDateFormat("mm/dd/yyyy HH:mm:ss a", , Locale.ENGLISH); </div><div>                            if (input!=null) {</div><div>                              Date convertedValidFrom = df.parse(input);</div><div>                              log.info ("convertedValid>From = " + convertedValidFrom);</div><div>                              return  com.evolveum.midpoint.util.MiscUtil.asXMLGregorianCalendar (convertedValidFrom);</div><div>                            }</div><div>                            else {</div><div>                              return null;</div><div>                            }</div><div>                          </code></div><div>                  </script></div><div>               </expression></div><div>               <target></div><div>                  <c:path>$focus/activation/validFrom</c:path></div><div>               </target></div><div>            </inbound></div><div>         </attribute></div><div><br></div><div>Bud it doesnt work, How it shoudl be defined? Can some help me?</div><div><br></div><div>Regards</div><div><br></div><div>Jan</div><div><br></div></div></span></font></div></body></html>