<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Well... I've tried it to be sure about it.</p>
    <p>This is correct script code:</p>
    <p><tt>import com.evolveum.midpoint.prism.xml.XmlTypeConverter</tt><tt><br>
      </tt><tt>Date d = Date.parse('yyyyMMdd', input)</tt><tt><br>
      </tt><tt>XmlTypeConverter.createXMLGregorianCalendar(d)</tt></p>
    <p>I've tested it on a slightly different scenario (using object
      template, as I didn't want to bother with defining resources).</p>
    <p>So, created XSD extension schema of:</p>
    <p><xsd:sequence><br>
          <xsd:element name="dobString" type="xsd:string"
      minOccurs="0" maxOccurs="1"/><br>
          <xsd:element name="dobDate" type="xsd:dateTime"
      minOccurs="0" maxOccurs="1"/><br>
      </xsd:sequence><br>
    </p>
    <p>And then the following mapping in a user template:</p>
    <p><tt>   <mapping></tt><tt><br>
      </tt><tt>      <strength>strong</strength></tt><tt><br>
      </tt><tt>      <source></tt><tt><br>
      </tt><tt>         <c:path>extension/dobString</c:path></tt><tt><br>
      </tt><tt>      </source></tt><tt><br>
      </tt><tt>      <expression></tt><tt><br>
      </tt><tt>         <script></tt><tt><br>
      </tt><tt>            <code></tt><tt><br>
      </tt><tt>                import
        com.evolveum.midpoint.prism.xml.XmlTypeConverter</tt><tt><br>
      </tt><tt>                </tt><tt><br>
      </tt><tt>                Date d = Date.parse('yyyyMMdd',
        dobString)</tt><tt><br>
      </tt><tt>               
        XmlTypeConverter.createXMLGregorianCalendar(d)</tt><tt><br>
      </tt><tt>            </code></tt><tt><br>
      </tt><tt>         </script></tt><tt><br>
      </tt><tt>      </expression></tt><tt><br>
      </tt><tt>      <target></tt><tt><br>
      </tt><tt>         <c:path>extension/dobDate</c:path></tt><tt><br>
      </tt><tt>      </target></tt><tt><br>
      </tt><tt>   </mapping></tt><br>
    </p>
    <p>You can see it works :) After filling in dobString to 19740501
      and saving, the dobDate gets filled-in correctly:<br>
    </p>
    <p><img src="cid:part1.93646CA2.1B84117A@evolveum.com" alt=""></p>
    <p>You can do the same within your resource definition; using no
      <source> in mapping, and using "input" instead of
      "dobString".</p>
    <p>Or, as you said, you can forget xsd:dateTime and keep the plain
      string in your extension/birthDate :-)</p>
    <p>Best regards,<br>
    </p>
    <pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
    <div class="moz-cite-prefix">On 23.08.2016 20:26, Mencel, Matt
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABpVbHK9UwHXuAfZYOFc-kBxFqhjK7HZdrn=6Ahg_XbEXg4jnQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">I tried it like this....
        <div><br>
        </div>
        <div>
          <div><font face="monospace, monospace">         
              <inbound></font></div>
          <div><font face="monospace, monospace">           
              <target></font></div>
          <div><font face="monospace, monospace">             
              <path>$user/extension/birthDate</path></font></div>
          <div><font face="monospace, monospace">           
              </target></font></div>
          <div><font face="monospace, monospace">           
              <expression></font></div>
          <div><font face="monospace, monospace">             
              <script></font></div>
          <div><font face="monospace, monospace">               
              <language><a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy">http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy</a></language></font></div>
          <div><font face="monospace, monospace">               
              <code></font></div>
          <div><font face="monospace, monospace"><span class="" style="white-space:pre">                                                                        </span>XMLGregorianCalendar(Date.parse('yyyymmdd',
              input))</font></div>
          <div><font face="monospace, monospace"><span class="" style="white-space:pre">                                                                </span></code></font></div>
          <div><font face="monospace, monospace">             
              </script></font></div>
          <div><font face="monospace, monospace">           
              </expression></font></div>
          <div><font face="monospace, monospace">         
              </inbound></font></div>
          <div><font face="monospace, monospace">       
              </attribute></font></div>
        </div>
        <div><font face="monospace, monospace"><br>
          </font></div>
        <div><font face="arial, helvetica, sans-serif">I'm still getting
            Java errors (see below).  I'll can just switch it back to a
            string type and not worry about it.</font></div>
        <div><br>
        </div>
        <div><font face="arial, helvetica, sans-serif">Thanks,</font></div>
        <div><font face="arial, helvetica, sans-serif">Matt</font></div>
        <div><font face="arial, helvetica, sans-serif"><br>
          </font></div>
        <div><font face="arial, helvetica, sans-serif"><br>
          </font></div>
        <div><font face="arial, helvetica, sans-serif"><br>
          </font></div>
        <div><font face="arial, helvetica, sans-serif"><br>
          </font></div>
        <div><font face="arial, helvetica, sans-serif">
            <div>2016-08-23 13:21:42,247 [] [midPointScheduler_Worker-8]
              ERROR
              (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl):
              SYNCHRONIZATION: Error in synchronization on
              <a class="moz-txt-link-freetext" href="resource:0d6babea-6896-11e6-9d38-0050569aa9d2(CSV">resource:0d6babea-6896-11e6-9d38-0050569aa9d2(CSV</a> TEADVS)
              for situation LINKED: ExpressionEvaluationException:
              groovy.lang.MissingMethodException: No signature of
              method:
              org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.XMLGregorianCalendar()
              is applicable for argument types: (java.util.Date) values:
              [Sat Jan 05 00:04:00 CST 1985] expression in mapping in
              inbound expression for {<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3%7Dbirthdate">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}birthdate</a>
              in <a class="moz-txt-link-freetext" href="resource:0d6babea-6896-11e6-9d38-0050569aa9d2(CSV">resource:0d6babea-6896-11e6-9d38-0050569aa9d2(CSV</a>
              TEADVS)({.../common/common-3}input=PPV(String:19850405); )
              in expression in mapping in inbound expression for {<a
                moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3%7Dbirthdate">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}birthdate</a>
              in <a class="moz-txt-link-freetext" href="resource:0d6babea-6896-11e6-9d38-0050569aa9d2(CSV">resource:0d6babea-6896-11e6-9d38-0050569aa9d2(CSV</a>
              TEADVS). Change was
ResourceObjectShadowChangeDescription(objectDelta=ObjectDelta(ShadowType:4c7c2ce9-9041-46da-b8c3-a57be022ce18,ADD:
              shadow:4c7c2ce9-9041-46da-b8c3-a57be022ce18(902073705)),
              currentShadow=shadow:4c7c2ce9-9041-46da-b8c3-a57be022ce18(902073705),
              oldShadow=null, sourceChannel=<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/provisioning/channels-3#import">http://midpoint.evolveum.com/xml/ns/public/provisioning/channels-3#import</a>,
              resource=<a class="moz-txt-link-freetext" href="resource:0d6babea-6896-11e6-9d38-0050569aa9d2(CSV">resource:0d6babea-6896-11e6-9d38-0050569aa9d2(CSV</a>
              TEADVS))</div>
            <div>com.evolveum.midpoint.util.exception.ExpressionEvaluationException:
              groovy.lang.MissingMethodException: No signature of
              method:
              org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.XMLGregorianCalendar()
              is applicable for argument types: (java.util.Date) values:
              [Sat Jan 05 00:04:00 CST 1985] expression in mapping in
              inbound expression for {<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3%7Dbirthdate">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}birthdate</a>
              in <a class="moz-txt-link-freetext" href="resource:0d6babea-6896-11e6-9d38-0050569aa9d2(CSV">resource:0d6babea-6896-11e6-9d38-0050569aa9d2(CSV</a>
              TEADVS)({.../common/common-3}input=PPV(String:19850405); )
              in expression in mapping in inbound expression for {<a
                moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3%7Dbirthdate">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}birthdate</a>
              in <a class="moz-txt-link-freetext" href="resource:0d6babea-6896-11e6-9d38-0050569aa9d2(CSV">resource:0d6babea-6896-11e6-9d38-0050569aa9d2(CSV</a>
              TEADVS)</div>
            <div>        at
com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator$1.process(AbstractValueTransformationExpressionEvaluator.java:425)
              ~[model-common-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator$1.process(AbstractValueTransformationExpressionEvaluator.java:352)
              ~[model-common-3.4.jar:na]</div>
            <div>        at
              com.evolveum.midpoint.util.MiscUtil.carthesian(MiscUtil.java:367)
              ~[util-3.4.jar:na]</div>
            <div>        at
              com.evolveum.midpoint.util.MiscUtil.carthesian(MiscUtil.java:357)
              ~[util-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator.evaluateRelativeExpression(AbstractValueTransformationExpressionEvaluator.java:442)
              ~[model-common-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator.evaluate(AbstractValueTransformationExpressionEvaluator.java:114)
              ~[model-common-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.common.expression.Expression.evaluate(Expression.java:133)
              ~[model-common-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.common.mapping.Mapping.evaluateExpression(Mapping.java:985)
              ~[model-common-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.common.mapping.Mapping.evaluate(Mapping.java:520)
              ~[model-common-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.lens.projector.MappingEvaluator.evaluateMapping(MappingEvaluator.java:95)
              ~[model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.lens.projector.InboundProcessor.evaluateInboundMapping(InboundProcessor.java:490)
              ~[model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.lens.projector.InboundProcessor.processInboundExpressionsForProjection(InboundProcessor.java:319)
              ~[model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.lens.projector.InboundProcessor.processInboundFocal(InboundProcessor.java:186)
              ~[model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.lens.projector.InboundProcessor.processInbound(InboundProcessor.java:128)
              ~[model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.lens.projector.FocusProcessor.processFocusFocus(FocusProcessor.java:212)
              ~[model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.lens.projector.FocusProcessor.processFocus(FocusProcessor.java:146)
              ~[model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.lens.projector.Projector.projectInternal(Projector.java:208)
              ~[model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.lens.projector.Projector.project(Projector.java:106)
              ~[model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.lens.Clockwork.click(Clockwork.java:302)
              ~[model-impl-3.4.jar:na]</div>
            <div>        at
              com.evolveum.midpoint.model.impl.lens.Clockwork.run(Clockwork.java:214)
              ~[model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl.reactToChange(SynchronizationServiceImpl.java:766)
              [model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl.notifyChange(SynchronizationServiceImpl.java:299)
              [model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.provisioning.impl.ChangeNotificationDispatcherImpl.notifyChange(ChangeNotificationDispatcherImpl.java:148)
              [provisioning-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.sync.SynchronizeAccountResultHandler.handleObjectInternal(SynchronizeAccountResultHandler.java:203)
              [model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.sync.SynchronizeAccountResultHandler.handleObject(SynchronizeAccountResultHandler.java:128)
              [model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeResultHandler.processRequest(AbstractSearchIterativeResultHandler.java:327)
              [model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeResultHandler.handle(AbstractSearchIterativeResultHandler.java:189)
              [model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl$4.handle(ProvisioningServiceImpl.java:1184)
              [provisioning-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.provisioning.impl.ShadowCache$2.handle(ShadowCache.java:831)
              [provisioning-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter$3.handle(ResourceObjectConverter.java:1102)
              [provisioning-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.provisioning.ucf.impl.ConnectorInstanceIcfImpl$2.handle(ConnectorInstanceIcfImpl.java:2316)
              [provisioning-impl-3.4.jar:na]</div>
            <div>        at
org.identityconnectors.framework.impl.api.SearchResultsHandlerLoggingProxy.handle(SearchResultsHandlerLoggingProxy.java:64)
              [connector-framework-internal-1.4.3.0-SNAPSHOT.jar:na]</div>
            <div>        at
org.identityconnectors.framework.impl.api.StreamHandlerUtil$ObjectStreamHandlerAdapter.handle(StreamHandlerUtil.java:101)
              [connector-framework-internal-1.4.3.0-SNAPSHOT.jar:na]</div>
            <div>        at
org.identityconnectors.framework.impl.api.BufferedResultsProxy.invoke(BufferedResultsProxy.java:262)
              [connector-framework-internal-1.4.3.0-SNAPSHOT.jar:na]</div>
            <div>        at
org.identityconnectors.framework.impl.api.DelegatingTimeoutProxy.invoke(DelegatingTimeoutProxy.java:94)
              [connector-framework-internal-1.4.3.0-SNAPSHOT.jar:na]</div>
            <div>        at com.sun.proxy.$Proxy169.search(Unknown
              Source) [na:na]</div>
            <div>        at
              sun.reflect.NativeMethodAccessorImpl.invoke0(Native
              Method) ~[na:1.8.0_101]</div>
            <div>        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              ~[na:1.8.0_101]</div>
            <div>        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              ~[na:1.8.0_101]</div>
            <div>        at
              java.lang.reflect.Method.invoke(Method.java:498)
              ~[na:1.8.0_101]</div>
            <div>        at
org.identityconnectors.framework.impl.api.LoggingProxy.invoke(LoggingProxy.java:83)
              [connector-framework-internal-1.4.3.0-SNAPSHOT.jar:na]</div>
            <div>        at com.sun.proxy.$Proxy169.search(Unknown
              Source) [na:na]</div>
            <div>        at
org.identityconnectors.framework.impl.api.AbstractConnectorFacade.search(AbstractConnectorFacade.java:177)
              [connector-framework-internal-1.4.3.0-SNAPSHOT.jar:na]</div>
            <div>        at
com.evolveum.midpoint.provisioning.ucf.impl.ConnectorInstanceIcfImpl.search(ConnectorInstanceIcfImpl.java:2412)
              [provisioning-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter.searchResourceObjects(ResourceObjectConverter.java:1112)
              [provisioning-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.provisioning.impl.ShadowCache.searchObjectsIterative(ShadowCache.java:838)
              [provisioning-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.provisioning.impl.ShadowCache.searchObjectsIterative(ShadowCache.java:763)
              [provisioning-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.searchObjectsIterative(ProvisioningServiceImpl.java:1232)
              [provisioning-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.ModelObjectResolver.searchIterative(ModelObjectResolver.java:224)
              [model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeTaskHandler.runInternal(AbstractSearchIterativeTaskHandler.java:239)
              [model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeTaskHandler.run(AbstractSearchIterativeTaskHandler.java:155)
              [model-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeHandler(JobExecutor.java:479)
              [task-quartz-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeSingleTask(JobExecutor.java:300)
              [task-quartz-impl-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.execute(JobExecutor.java:164)
              [task-quartz-impl-3.4.jar:na]</div>
            <div>        at
              org.quartz.core.JobRunShell.run(JobRunShell.java:213)
              [quartz-2.1.3.jar:na]</div>
            <div>        at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
              [quartz-2.1.3.jar:na]</div>
            <div>Caused by:
              com.evolveum.midpoint.util.exception.ExpressionEvaluationException:
              groovy.lang.MissingMethodException: No signature of
              method:
              org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.XMLGregorianCalendar()
              is applicable for argument types: (java.util.Date) values:
              [Sat Jan 05 00:04:00 CST 1985] expression in mapping in
              inbound expression for {<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3%7Dbirthdate">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}birthdate</a>
              in <a class="moz-txt-link-freetext" href="resource:0d6babea-6896-11e6-9d38-0050569aa9d2(CSV">resource:0d6babea-6896-11e6-9d38-0050569aa9d2(CSV</a>
              TEADVS)</div>
            <div>        at
com.evolveum.midpoint.model.common.expression.script.jsr223.Jsr223ScriptEvaluator.evaluate(Jsr223ScriptEvaluator.java:119)
              ~[model-common-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.common.expression.script.ScriptExpression.evaluate(ScriptExpression.java:111)
              ~[model-common-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.common.expression.script.ScriptExpressionEvaluator.transformSingleValue(ScriptExpressionEvaluator.java:60)
              ~[model-common-3.4.jar:na]</div>
            <div>        at
com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator$1.process(AbstractValueTransformationExpressionEvaluator.java:422)
              ~[model-common-3.4.jar:na]</div>
            <div>        ... 55 common frames omitted</div>
            <div>Caused by: javax.script.ScriptException:
              groovy.lang.MissingMethodException: No signature of
              method:
              org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.XMLGregorianCalendar()
              is applicable for argument types: (java.util.Date) values:
              [Sat Jan 05 00:04:00 CST 1985]</div>
            <div>        at
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:347)
              ~[groovy-all-2.4.0.jar:2.4.0]</div>
            <div>        at
org.codehaus.groovy.jsr223.GroovyCompiledScript.eval(GroovyCompiledScript.java:41)
              ~[groovy-all-2.4.0.jar:2.4.0]</div>
            <div>        at
              javax.script.CompiledScript.eval(CompiledScript.java:92)
              ~[na:1.8.0_101]</div>
            <div>        at
com.evolveum.midpoint.model.common.expression.script.jsr223.Jsr223ScriptEvaluator.evaluate(Jsr223ScriptEvaluator.java:117)
              ~[model-common-3.4.jar:na]</div>
            <div>        ... 58 common frames omitted</div>
            <div>Caused by: groovy.lang.MissingMethodException: No
              signature of method:
              org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.XMLGregorianCalendar()
              is applicable for argument types: (java.util.Date) values:
              [Sat Jan 05 00:04:00 CST 1985]</div>
            <div>        at
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.callGlobal(GroovyScriptEngineImpl.java:418)
              ~[groovy-all-2.4.0.jar:2.4.0]</div>
            <div>        at
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.access$000(GroovyScriptEngineImpl.java:89)
              ~[groovy-all-2.4.0.jar:2.4.0]</div>
            <div>        at
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl$2.invokeMethod(GroovyScriptEngineImpl.java:330)
              ~[groovy-all-2.4.0.jar:2.4.0]</div>
            <div>        at
org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
              ~[groovy-all-2.4.0.jar:2.4.0]</div>
            <div>        at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
              ~[groovy-all-2.4.0.jar:2.4.0]</div>
            <div>        at
org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:81)
              ~[groovy-all-2.4.0.jar:2.4.0]</div>
            <div>        at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:161)
              ~[groovy-all-2.4.0.jar:2.4.0]</div>
            <div>        at Script23.run(Script23.groovy:2) ~[na:na]</div>
            <div>        at
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:344)
              ~[groovy-all-2.4.0.jar:2.4.0]</div>
            <div>        ... 61 common frames omitted</div>
          </font></div>
        <div><font face="arial, helvetica, sans-serif"><br>
          </font></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Aug 23, 2016 at 1:08 PM, Pavol
          Mederly <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:mederly@evolveum.com" target="_blank">mederly@evolveum.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <p>Matt,</p>
              <p>maybe you could try this:</p>
              <p>com.evolveum.midpoint.prism.<wbr>xml.<wbr>createXMLGregorianCalendar(d)</p>
              <p>where d is a java.util.Date object.</p>
              <p>See <a moz-do-not-send="true"
href="https://github.com/Evolveum/midpoint/blob/master/infra/prism/src/main/java/com/evolveum/midpoint/prism/xml/XmlTypeConverter.java#L450"
                  target="_blank">https://github.com/Evolveum/<wbr>midpoint/blob/master/infra/<wbr>prism/src/main/java/com/<wbr>evolveum/midpoint/prism/xml/<wbr>XmlTypeConverter.java#L450</a></p>
              <span class="">
                <pre cols="72">Pavol Mederly
Software developer
<a moz-do-not-send="true" href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
              </span>
              <div>
                <div class="h5">
                  <div>On 23.08.2016 19:52, Mencel, Matt wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Ah so now it's getting a bit crazy. 
                      Apparently I have to convert it to an
                      XMLGregorianCalendar type to put something in a
                      dateTime attribute.
                      <div><br>
                      </div>
                      <div>This is probably not the right way, but when
                        I tried this Groovy couldn't find the
                        XMLGregorianCalendar class.</div>
                      <div><br>
                      </div>
                      <attribute><br>
                      <ref>ri:birthdate</ref><br>
                      <displayName>DOB</displayName><br>
                      <inbound><br>
                      <target><br>
                      <path>$user/extension/<wbr>birthDate</path><br>
                      </target><br>
                      <expression><br>
                                 <script><br>
                                     <language><a
                        moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy"
                        target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>expression/language#Groovy</a></<wbr>language><br>
                                     <code><br>
                                         <!-- Date.parse('yyyymmdd',
                      input) --><br>
                      GregorianCalendar c = new GregorianCalendar();
                      c.setTime(input); XMLGregorianCalendar date2 =
                      DatatypeFactory.newInstance().<wbr>newXMLGregorianCalendar(c);<br>
                                     </code><br>
                                 </script><br>
                             </expression><br>
                      </inbound><br>
                      </attribute>
                      <div><br>
                      </div>
                      <div>So is everyone just storing dates as strings
                        in Midpoint?</div>
                      <div><br>
                      </div>
                      <div>Matt</div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Tue, Aug 23, 2016 at
                        12:24 PM, Pavol Mederly <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:mederly@evolveum.com"
                            target="_blank">mederly@evolveum.com</a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote">
                          <div>
                            <p>That's the usual process ;)</p>
                            <p>It seems that midPoint doesn't support
                              xsd:date, only xsd:dateTime.</p>
                            <span>
                              <p>Best regards,</p>
                              <pre cols="72">Pavol Mederly
Software developer
<a moz-do-not-send="true" href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
                            </span>
                            <div>
                              <div>
                                <div>On 23.08.2016 19:20, Mencel, Matt
                                  wrote:<br>
                                </div>
                                <blockquote type="cite">
                                  <div dir="ltr">OK, that changed the
                                    error at least.  :)
                                    <div><br>
                                    </div>
                                    <div>2016-08-23 12:17:19,231 []
                                      [midPointScheduler_Worker-6] ERROR
                                      (com.evolveum.midpoint.model.i<wbr>mpl.util.AbstractSearchIterati<wbr>veResultHandler):
                                      Import of object
                                      shadow:4c7c2ce9-9041-46da-b8c3<wbr>-a57be022ce18(902073705)
                                      from <a moz-do-not-send="true">resource:0d6babea-6896-11e6-9d<wbr>38-0050569aa9d2(CSV</a>
                                      TEADVS) failed:
                                      java.lang.RuntimeException: No
                                      type mapping for XSD type {<a
                                        moz-do-not-send="true"
href="http://www.w3.org/2001/XMLSchema%7Ddate%28%7B.../common/common-3%7Dinput=PPV%28String:19850405%29"
                                        target="_blank">http://www.w3.org/2001/XMLSch<wbr>ema}date({.../common/common-3}<wbr>input=PPV(String:19850405)</a>;
                                      ) in expression in mapping in
                                      inbound expression for {<a
                                        moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3%7Dbirthdate"
                                        target="_blank">http://midpoint.evolveum.com/<wbr>xml/ns/public/resource/instanc<wbr>e-3}birthdate</a>
                                      in <a moz-do-not-send="true">resource:0d6babea-6896-11e6-9d<wbr>38-0050569aa9d2(CSV</a>
                                      TEADVS)</div>
                                    <div>com.evolveum.midpoint.util.exc<wbr>eption.SystemException:
                                      java.lang.RuntimeException: No
                                      type mapping for XSD type {<a
                                        moz-do-not-send="true"
href="http://www.w3.org/2001/XMLSchema%7Ddate%28%7B.../common/common-3%7Dinput=PPV%28String:19850405%29"
                                        target="_blank">http://www.w3.org/2001/XMLSch<wbr>ema}date({.../common/common-3}<wbr>input=PPV(String:19850405)</a>;
                                      ) in expression in mapping in
                                      inbound expression for {<a
                                        moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3%7Dbirthdate"
                                        target="_blank">http://midpoint.evolveum.com/<wbr>xml/ns/public/resource/instanc<wbr>e-3}birthdate</a>
                                      in <a moz-do-not-send="true">resource:0d6babea-6896-11e6-9d<wbr>38-0050569aa9d2(CSV</a>
                                      TEADVS)</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.sync.SynchronizationService<wbr>Impl.notifyChange(Synchronizat<wbr>ionServiceImpl.java:316)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.provisio<wbr>ning.impl.ChangeNotificationDi<wbr>spatcherImpl.notifyChange(Chan<wbr>geNotificationDispatcherImpl.<wbr>java:148)
                                      ~[provisioning-impl-3.4.jar:na<wbr>]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.sync.SynchronizeAccountResu<wbr>ltHandler.<wbr>handleObjectInternal(Synchroni<wbr>zeAccountResultHandler.java:<wbr>203)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.sync.SynchronizeAccountResu<wbr>ltHandler.handleObject(Synchro<wbr>nizeAccountResultHandler.java:<wbr>128)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.util.AbstractSearchIterativ<wbr>eResultHandler.processRequest(<wbr>AbstractSearchIterativeResultH<wbr>andler.java:327)
                                      [model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.util.AbstractSearchIterativ<wbr>eResultHandler.handle(Abstract<wbr>SearchIterativeResultHandler.<wbr>java:189)
                                      [model-impl-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.provisio<wbr>ning.impl.ProvisioningServiceI<wbr>mpl$4.handle(ProvisioningServi<wbr>ceImpl.java:1184)
                                      [provisioning-impl-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.provisio<wbr>ning.impl.ShadowCache$2.<wbr>handle(ShadowCache.java:831)
                                      [provisioning-impl-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.provisio<wbr>ning.impl.ResourceObjectConver<wbr>ter$3.handle(ResourceObjectCon<wbr>verter.java:1102)
                                      [provisioning-impl-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.provisio<wbr>ning.ucf.impl.ConnectorInstanc<wbr>eIcfImpl$2.handle(ConnectorIns<wbr>tanceIcfImpl.java:2316)
                                      [provisioning-impl-3.4.jar:na]</div>
                                    <div>        at
                                      org.identityconnectors.framewo<wbr>rk.impl.api.SearchResultsHandl<wbr>erLoggingProxy.handle(SearchRe<wbr>sultsHandlerLoggingProxy.java:<wbr>64)
                                      [connector-framework-internal-<wbr>1.4.3.0-SNAPSHOT.jar:na]</div>
                                    <div>        at
                                      org.identityconnectors.framewo<wbr>rk.impl.api.StreamHandlerUtil$<wbr>ObjectStreamHandlerAdapter.han<wbr>dle(StreamHandlerUtil.java:101<wbr>)
                                      [connector-framework-internal-<wbr>1.4.3.0-SNAPSHOT.jar:na]</div>
                                    <div>        at
                                      org.identityconnectors.framewo<wbr>rk.impl.api.BufferedResultsPro<wbr>xy.invoke(BufferedResultsProxy<wbr>.java:262)
                                      [connector-framework-internal-<wbr>1.4.3.0-SNAPSHOT.jar:na]</div>
                                    <div>        at
                                      org.identityconnectors.framewo<wbr>rk.impl.api.DelegatingTimeoutP<wbr>roxy.invoke(DelegatingTimeoutP<wbr>roxy.java:94)
                                      [connector-framework-internal-<wbr>1.4.3.0-SNAPSHOT.jar:na]</div>
                                    <div>        at
                                      com.sun.proxy.$Proxy170.search<wbr>(Unknown
                                      Source) [na:na]</div>
                                    <div>        at
                                      sun.reflect.NativeMethodAccess<wbr>orImpl.invoke0(Native
                                      Method) ~[na:1.8.0_101]</div>
                                    <div>        at
                                      sun.reflect.NativeMethodAccess<wbr>orImpl.invoke(NativeMethodAcce<wbr>ssorImpl.java:62)
                                      ~[na:1.8.0_101]</div>
                                    <div>        at
                                      sun.reflect.DelegatingMethodAc<wbr>cessorImpl.invoke(DelegatingMe<wbr>thodAccessorImpl.java:43)
                                      ~[na:1.8.0_101]</div>
                                    <div>        at
                                      java.lang.reflect.Method.invok<wbr>e(Method.java:498)
                                      ~[na:1.8.0_101]</div>
                                    <div>        at
                                      org.identityconnectors.framewo<wbr>rk.impl.api.LoggingProxy.<wbr>invoke(LoggingProxy.java:83)
                                      [connector-framework-internal-<wbr>1.4.3.0-SNAPSHOT.jar:na]</div>
                                    <div>        at
                                      com.sun.proxy.$Proxy170.search<wbr>(Unknown
                                      Source) [na:na]</div>
                                    <div>        at
                                      org.identityconnectors.framewo<wbr>rk.impl.api.AbstractConnectorF<wbr>acade.search(AbstractConnector<wbr>Facade.java:177)
                                      [connector-framework-internal-<wbr>1.4.3.0-SNAPSHOT.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.provisio<wbr>ning.ucf.impl.ConnectorInstanc<wbr>eIcfImpl.search(ConnectorInsta<wbr>nceIcfImpl.java:2412)
                                      [provisioning-impl-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.provisio<wbr>ning.impl.ResourceObjectConver<wbr>ter.searchResourceObjects(Reso<wbr>urceObjectConverter.java:1112)
                                      [provisioning-impl-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.provisio<wbr>ning.impl.ShadowCache.searchOb<wbr>jectsIterative(ShadowCache.<wbr>java:838)
                                      [provisioning-impl-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.provisio<wbr>ning.impl.ShadowCache.searchOb<wbr>jectsIterative(ShadowCache.<wbr>java:763)
                                      [provisioning-impl-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.provisio<wbr>ning.impl.ProvisioningServiceI<wbr>mpl.searchObjectsIterative(Pro<wbr>visioningServiceImpl.java:1232<wbr>)
                                      [provisioning-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.ModelObjectResolver.searchI<wbr>terative(ModelObjectResolver.<wbr>java:224)
                                      [model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.util.AbstractSearchIterativ<wbr>eTaskHandler.runInternal(Abstr<wbr>actSearchIterativeTaskHandler.<wbr>java:239)
                                      [model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.util.AbstractSearchIterativ<wbr>eTaskHandler.run(AbstractSearc<wbr>hIterativeTaskHandler.java:<wbr>155)
                                      [model-impl-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.task.qua<wbr>rtzimpl.execution.JobExecutor.<wbr>executeHandler(JobExecutor.<wbr>java:479)
                                      [task-quartz-impl-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.task.qua<wbr>rtzimpl.execution.JobExecutor.<wbr>executeSingleTask(JobExecutor.<wbr>java:300)
                                      [task-quartz-impl-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.task.qua<wbr>rtzimpl.execution.JobExecutor.<wbr>execute(JobExecutor.java:164)
                                      [task-quartz-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://org.quartz.core.JobRunShell.ru">org.quartz.core.JobRunShell.ru</a><wbr>n(JobRunShell.java:213)
                                      [quartz-2.1.3.jar:na]</div>
                                    <div>        at
                                      org.quartz.simpl.SimpleThreadP<wbr>ool$WorkerThread.run(<wbr>SimpleThreadPool.java:557)
                                      [quartz-2.1.3.jar:na]</div>
                                    <div>Caused by:
                                      java.lang.RuntimeException: No
                                      type mapping for XSD type {<a
                                        moz-do-not-send="true"
href="http://www.w3.org/2001/XMLSchema%7Ddate%28%7B.../common/common-3%7Dinput=PPV%28String:19850405%29"
                                        target="_blank">http://www.w3.org/2001/XMLSch<wbr>ema}date({.../common/common-3}<wbr>input=PPV(String:19850405)</a>;
                                      ) in expression in mapping in
                                      inbound expression for {<a
                                        moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3%7Dbirthdate"
                                        target="_blank">http://midpoint.evolveum.com/<wbr>xml/ns/public/resource/instanc<wbr>e-3}birthdate</a>
                                      in <a moz-do-not-send="true">resource:0d6babea-6896-11e6-9d<wbr>38-0050569aa9d2(CSV</a>
                                      TEADVS)</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.co">com.evolveum.midpoint.model.co</a><wbr>mmon.expression.evaluator.Abst<wbr>ractValueTransformationExpress<wbr>ionEvaluator$1.process(Abstrac<wbr>tValueTransformationExpression<wbr>Evaluator.java:434)
                                      ~[model-common-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.co">com.evolveum.midpoint.model.co</a><wbr>mmon.expression.evaluator.Abst<wbr>ractValueTransformationExpress<wbr>ionEvaluator$1.process(Abstrac<wbr>tValueTransformationExpression<wbr>Evaluator.java:352)
                                      ~[model-common-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.util.Mis<wbr>cUtil.carthesian(MiscUtil.java<wbr>:367)
                                      ~[util-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.util.Mis<wbr>cUtil.carthesian(MiscUtil.java<wbr>:357)
                                      ~[util-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.co">com.evolveum.midpoint.model.co</a><wbr>mmon.expression.evaluator.Abst<wbr>ractValueTransformationExpress<wbr>ionEvaluator.evaluateRelativeE<wbr>xpression(AbstractValueTransfo<wbr>rmationExpressionEvaluator.<wbr>java:442)
                                      ~[model-common-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.co">com.evolveum.midpoint.model.co</a><wbr>mmon.expression.evaluator.Abst<wbr>ractValueTransformationExpress<wbr>ionEvaluator.evaluate(Abstract<wbr>ValueTransformationExpressionE<wbr>valuator.java:114)
                                      ~[model-common-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.co">com.evolveum.midpoint.model.co</a><wbr>mmon.expression.Expression.eva<wbr>luate(Expression.java:133)
                                      ~[model-common-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.co">com.evolveum.midpoint.model.co</a><wbr>mmon.mapping.Mapping.evaluateE<wbr>xpression(Mapping.java:985)
                                      ~[model-common-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.co">com.evolveum.midpoint.model.co</a><wbr>mmon.mapping.Mapping.evaluate(<wbr>Mapping.java:520)
                                      ~[model-common-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.lens.projector.MappingEvalu<wbr>ator.evaluateMapping(MappingEv<wbr>aluator.java:95)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.lens.projector.InboundProce<wbr>ssor.evaluateInboundMapping(In<wbr>boundProcessor.java:490)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.lens.projector.InboundProce<wbr>ssor.processInboundExpressions<wbr>ForProjection(<wbr>InboundProcessor.java:319)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.lens.projector.InboundProce<wbr>ssor.processInboundFocal(Inbou<wbr>ndProcessor.java:186)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.lens.projector.InboundProce<wbr>ssor.processInbound(InboundPro<wbr>cessor.java:128)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.lens.projector.FocusProcess<wbr>or.processFocusFocus(FocusProc<wbr>essor.java:212)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.lens.projector.FocusProcess<wbr>or.processFocus(FocusProcessor<wbr>.java:146)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr><a
                                        moz-do-not-send="true"
                                        href="http://pl.lens.projector.Projector.pr">pl.lens.projector.Projector.pr</a><wbr>ojectInternal(Projector.java:<wbr>208)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr><a
                                        moz-do-not-send="true"
                                        href="http://pl.lens.projector.Projector.pr">pl.lens.projector.Projector.pr</a><wbr>oject(Projector.java:106)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.lens.Clockwork.click(Clockw<wbr>ork.java:302)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.lens.Clockwork.run(Clockwor<wbr>k.java:214)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.sync.SynchronizationService<wbr>Impl.reactToChange(Synchroniza<wbr>tionServiceImpl.java:766)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.im">com.evolveum.midpoint.model.im</a><wbr>pl.sync.SynchronizationService<wbr>Impl.notifyChange(Synchronizat<wbr>ionServiceImpl.java:299)
                                      ~[model-impl-3.4.jar:na]</div>
                                    <div>        ... 34 common frames
                                      omitted</div>
                                    <div>Caused by:
                                      java.lang.IllegalArgumentExcep<wbr>tion:
                                      No type mapping for XSD type {<a
                                        moz-do-not-send="true"
                                        href="http://www.w3.org/2001/XMLSchema%7Ddate"
                                        target="_blank">http://www.w3.org/2001/XMLSch<wbr>ema}date</a></div>
                                    <div>        at
                                      com.evolveum.midpoint.prism.xm<wbr>l.XsdTypeMapper.toJavaType(Xsd<wbr>TypeMapper.java:184)
                                      ~[prism-3.4.jar:na]</div>
                                    <div>        at
                                      com.evolveum.midpoint.prism.xm<wbr>l.XsdTypeMapper.toJavaType(Xsd<wbr>TypeMapper.java:173)
                                      ~[prism-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.co">com.evolveum.midpoint.model.co</a><wbr>mmon.expression.script.jsr223.<wbr>Jsr223ScriptEvaluator.evaluate<wbr>(Jsr223ScriptEvaluator.java:12<wbr>9)
                                      ~[model-common-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.co">com.evolveum.midpoint.model.co</a><wbr>mmon.expression.script.ScriptE<wbr>xpression.evaluate(ScriptExpre<wbr>ssion.java:111)
                                      ~[model-common-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.co">com.evolveum.midpoint.model.co</a><wbr>mmon.expression.script.ScriptE<wbr>xpressionEvaluator.transformSi<wbr>ngleValue(ScriptExpressionEval<wbr>uator.java:60)
                                      ~[model-common-3.4.jar:na]</div>
                                    <div>        at <a
                                        moz-do-not-send="true"
                                        href="http://com.evolveum.midpoint.model.co">com.evolveum.midpoint.model.co</a><wbr>mmon.expression.evaluator.Abst<wbr>ractValueTransformationExpress<wbr>ionEvaluator$1.process(Abstrac<wbr>tValueTransformationExpression<wbr>Evaluator.java:422)
                                      ~[model-common-3.4.jar:na]</div>
                                    <div>        ... 55 common frames
                                      omitted</div>
                                  </div>
                                  <div class="gmail_extra"><br>
                                    <div class="gmail_quote">On Tue, Aug
                                      23, 2016 at 12:14 PM, Pavol
                                      Mederly <span dir="ltr"><<a
                                          moz-do-not-send="true"
                                          href="mailto:mederly@evolveum.com"
                                          target="_blank">mederly@evolveum.com</a>></span>
                                      wrote:<br>
                                      <blockquote class="gmail_quote">
                                        <div>
                                          <p>Hello Matt,</p>
                                          <p>I assume you get something
                                            like "unknown variable
                                            'birthdate'" exception. When
                                            creating inbound mappings,
                                            you refer to the incoming
                                            value (from the resource)
                                            via "input" variable.</p>
                                          <p>So your line should be
                                            something like
                                            Date.parse(..., input).</p>
                                          <p>Best regards,<br>
                                          </p>
                                          <pre cols="72">Pavol Mederly
Software developer
<a moz-do-not-send="true" href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
                                          <div>
                                            <div>
                                              <div>On 23.08.2016 19:10,
                                                Mencel, Matt wrote:<br>
                                              </div>
                                            </div>
                                          </div>
                                          <blockquote type="cite">
                                            <div>
                                              <div>
                                                <div dir="ltr">So in my
                                                  CSV I have a birthday
                                                  field stored as a
                                                  string value like
                                                  so... '20160822'. 
                                                  I've created a DOB
                                                  field in my custom
                                                  schema of type date...
                                                  <div><br>
                                                  </div>
                                                  <div>
                                                    <div>           
                                                      <xsd:element
                                                      name="birthDate"
                                                      type="xsd:date"
                                                      minOccurs="0"
                                                      maxOccurs="1"></div>
                                                    <div>               
<xsd:annotation></div>
                                                    <div>               
                                                         
                                                      <xsd:appinfo></div>
                                                    <div>               
                                                             
                                                      <a:indexed>false</a:indexed></div>
                                                    <div>               
                                                             
                                                      <a:displayName>DOB</a:displayN<wbr>ame></div>
                                                    <div>               
                                                             
                                                      <a:displayOrder>130</a:display<wbr>Order></div>
                                                    <div>               
                                                         
                                                      </xsd:appinfo></div>
                                                    <div>               
</xsd:annotation></div>
                                                    <div>           
                                                      </xsd:element></div>
                                                  </div>
                                                  <div><br>
                                                  </div>
                                                  <div>and am trying to
                                                    parse the string to
                                                    the date field using
                                                    the following in my
                                                    mapping...which
                                                    doesn't work at the
                                                    moment.</div>
                                                  <div><br>
                                                  </div>
                                                  <attribute><br>
<ref>ri:birthdate</ref><br>
<displayName>DOB</displayName><br>
                                                  <inbound><br>
                                                  <target><br>
<path>$user/extension/birthDat<wbr>e</path><br>
                                                  </target><br>
                                                  <expression><br>
                                                           
                                                   <script><br>
                                                               
                                                   <language><a
                                                    moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy"
                                                    target="_blank">http://midpoint.evo<wbr>lveum.com/xml/ns/public/expres<wbr>sion/language#Groovy</a></language<wbr>><br>
                                                               
                                                   <code><br>
                                                                   
                                                   Date.parse('yyyymmdd',
                                                  birthdate)<br>
                                                               
                                                   </code><br>
                                                           
                                                   </script><br>
                                                       
                                                   </expression><br>
                                                  </inbound><br>
                                                  </attribute>
                                                  <div><br>
                                                  </div>
                                                  <div>Do I need to do
                                                    the script in the
                                                    user object template
                                                    instead?</div>
                                                  <div><br>
                                                  </div>
                                                  <div>Thanks,</div>
                                                  <div>Matt</div>
                                                </div>
                                                <br>
                                                <fieldset></fieldset>
                                                <br>
                                              </div>
                                            </div>
                                            <pre>______________________________<wbr>_________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a>
</pre>
    </blockquote>
    

  </div>


______________________________<wbr>_________________

midPoint mailing list

<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>

<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a>


</blockquote></div>
</div>


<fieldset></fieldset>
<pre>______________________________<wbr>_________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a>
</pre>

</blockquote>
</div></div></div>
______________________________<wbr>_________________

midPoint mailing list

<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>

<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a>


</blockquote></div>
</div>


<fieldset></fieldset>
<pre>______________________________<wbr>_________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a>
</pre>

</blockquote>
</div></div></div>
______________________________<wbr>_________________

midPoint mailing list

<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>

<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a>


</blockquote></div>
</div>


<fieldset class="mimeAttachmentHeader"></fieldset>
<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>
</body></html>