<HTML><HEAD>
<STYLE id=eMClientCss>blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
.plain pre, .plain tt { font-family: monospace; font-size: 100%; font-weight: normal; font-style: normal; white-space: pre-wrap; }
a img { border: 0px; }body {font-family: Tahoma;font-size: 12pt;}
.plain pre, .plain tt {font-family: Tahoma;font-size: 12pt;}
</STYLE>

<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff scroll=auto class>
<DIV>Hi Devin,</DIV>
<DIV>problem is probably in:</DIV>
<DIV>                  <expression><BR>                     <c:path><FONT color=#ea161e>$givenName</FONT></c:path><BR>                  </expression><BR></DIV>
<DIV>Please, try (without "$" char):</DIV>
<DIV> </DIV>
<DIV>                  <expression><BR>                     <c:path>givenName</c:path><BR>                  </expression><BR></DIV>
<DIV>Regards</DIV>
<DIV> </DIV>
<DIV id=signature_old>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: Tahoma">
<TABLE style="WHITE-SPACE: normal; WORD-SPACING: 0px; BORDER-COLLAPSE: collapse; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); FONT: medium 'Times New Roman'; WIDOWS: 1; LETTER-SPACING: normal; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">
<TBODY>
<TR>
<TD style="FONT-SIZE: 11px; FONT-FAMILY: Arial, sans-serif; VERTICAL-ALIGN: bottom; COLOR: rgb(0,0,0)" colSpan=2>
<P><SPAN style="FONT-SIZE: 14px; FONT-WEIGHT: bold">Roman Pudil</SPAN><BR>solution architect<BR><BR>gsm: [+420] 775 663 666<BR>e-mail:<SPAN class=Apple-converted-space> </SPAN><A href="mailto:roman.pudil@ami.cz">roman.pudil@ami.cz</A></P></TD>
<TD style="BORDER-RIGHT: rgb(204,204,204) 1px solid">   </TD>
<TD>   </TD>
<TD style="FONT-SIZE: 11px; FONT-FAMILY: Arial, sans-serif; VERTICAL-ALIGN: bottom; COLOR: rgb(0,0,0)">
<P>AMI Praha a.s.<BR>Pláničkova 11<BR>162 00 Praha 6<BR>tel./fax: [+420] 274 783 239<BR>web:<SPAN class=Apple-converted-space> </SPAN><A href="http://www.ami.cz/">www.ami.cz</A></P></TD>
<TD style="BORDER-RIGHT: rgb(204,204,204) 1px solid">   </TD>
<TD>   </TD>
<TD style="FONT-SIZE: 11px; FONT-FAMILY: Arial, sans-serif; COLOR: rgb(0,0,0)">
<P><IMG title="AMI Praha a.s." border=0 alt="" src="http://www.ami.cz/images/podpis/ami_logo.gif"></P></TD></TR>
<TR>
<TD colSpan=8><BR><A href="http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management"><IMG border=0 alt="" src="http://www.ami.cz/images/podpis/AMI-podpis-IdM_1.png"></A></TD></TR>
<TR>
<TD style="FONT-SIZE: 11px; FONT-FAMILY: Arial, sans-serif; COLOR: rgb(128,128,128)" colSpan=8><BR>Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za společnost AMI Praha a.s.<BR>jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu.</TD></TR></TBODY></TABLE></DIV></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>------ Původní zpráva ------</DIV>
<DIV>Od: "Radovan Semancik" <<A href="mailto:radovan.semancik@evolveum.com">radovan.semancik@evolveum.com</A>></DIV>
<DIV>Komu: <A href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</A></DIV>
<DIV>Odesláno: 7.12.2015 16:02:48</DIV>
<DIV>Předmět: Re: [midPoint] assignmentTargetSearch "null polystring orig" error</DIV>
<DIV> </DIV>
<DIV id=xb19f6dd28e894e0097f794ab9381427f style="COLOR: #000000">
<BLOCKQUOTE class=cite2 cite=56659F98.4090206@evolveum.com type="cite">
<DIV class=moz-cite-prefix>Hi,<BR><BR>I have similar mapping working in our story tests.<BR><BR>How does your input object looks like? I mean, how does the user looks like before it is processed by the template?<BR>Is there any chance that the givenName is null?<BR><BR>The evaluation of null expressions has changed a bit in 3.3. But I think that your expression should work and you are probably hitting a but. I will need more data to replicate it.<BR><BR><PRE class=moz-signature cols="72">-- 
Radovan Semancik
Software Architect
evolveum.com
</PRE><BR><BR>On 12/04/2015 05:15 PM, Devin Rosenbauer wrote:<BR></DIV>
<BLOCKQUOTE class=cite cite=mid:CABiXpeRg3TRTqsdPXQwH7v4iowhSG4r3pYhv+O2Ox9f8H_i+zg@mail.gmail.com type="cite">
<DIV dir=ltr>Can anybody else please try this mapping on their end and see if it works?<BR></DIV>
<DIV class=gmail_extra><BR>
<DIV class=gmail_quote>On Tue, Dec 1, 2015 at 1:51 PM, Devin Rosenbauer <SPAN dir=ltr><<A href="mailto:devin@identityworksllc.com" moz-do-not-send="true">devin@identityworksllc.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex">
<DIV dir=ltr>Version is 3.3.<BR>
<DIV><BR>I've got the following in my user template, based on a somewhat modified version of what's in the documentation online:<BR><BR>  <mapping><BR>      <source><BR>         <c:path>$user/givenName</c:path><BR>      </source><BR>      <expression><BR>         <assignmentTargetSearch><BR>            <targetType>c:OrgType</targetType><BR>            <filter><BR>               <q:equal><BR>                  <q:path>c:name</q:path><BR>                  <q:value><BR>                     <expression><BR>                        <path>$givenName</path><BR>                     </expression><BR>                  </q:value><BR>               </q:equal><BR>            </filter><BR>            <createOnDemand>true</createOnDemand><BR>            <populateObject><BR>               <populateItem><BR>                  <expression><BR>                     <c:path>$givenName</c:path><BR>                  </expression><BR>                  <target><BR>                     <c:path>name</c:path><BR>                  </target><BR>               </populateItem><BR>            </populateObject><BR>         </assignmentTargetSearch><BR>      </expression><BR>      <target><BR>         <c:path>assignment</c:path><BR>      </target><BR>   </mapping><BR clear=all>
<DIV><BR></DIV>
<DIV>I expect that this would create an Org called "Devin" and assign the user to it.<BR><BR></DIV>
<DIV>Here's what I get as an error message when I attempt to save and reconcile the user:<BR>
<DIV style="WIDTH: 1121px">
<UL>
<LI>
<DIV>
<DIV title="Partial error">Failed to convert query. Reason: Null polystring orig in XNode(map:1 entries)(givenName=PPV(PolyString:Devin); ) in expression in mapping in objectTemplate:c0c010c0-d34d-b33f-f00d-777222222334(User Template 2)</DIV>
<DIV title="Partial error">
<UL>
<LI style="MARGIN-TOP: 5px">
<DIV><SPAN>operation.com.evolveum.midpoint.web.page.admin.PageAdminFocus.save</SPAN> </DIV></LI>
<LI><SPAN><U>Cause:</U> <SPAN>
<P>Failed to convert query. Reason: Null polystring orig in XNode(map:1 entries)(givenName=PPV(PolyString:Devin); ) in expression in mapping in objectTemplate:c0c010c0-d34d-b33f-f00d-777222222334(User Template 2)</P></SPAN></SPAN></LI></UL></DIV></DIV></LI></UL></DIV>The documentation on the Expressions page and the samples appear to be somewhat incorrect here. I've had to make some corrections from <query> to <filter>, adding a <source>, and so forth. I also am temporarily using an OOTB field instead of a custom field to ensure that it's a PolyString and not an xsd:string, just to make sure that wasn't the issue.<BR><BR>At this point, it seems pretty clear that it is grabbing the value in the XNodeMap, since it's printed in the error message. <BR><BR>So, how should this mapping be structured to do what I need to do?<SPAN class=HOEnZb><FONT color=#888888><BR></FONT></SPAN></DIV><SPAN class=HOEnZb><FONT color=#888888>
<DIV><BR>-- <BR>
<DIV>
<DIV dir=ltr>Devin Rosenbauer<BR>Principal Consultant<BR>Identity Works LLC<BR><A href="tel:%2B1%20585%20210%203201" moz-do-not-send="true" value="+15852103201">+1 585 210 3201</A><BR></DIV></DIV></DIV></FONT></SPAN></DIV></DIV></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>
<DIV class=gmail_signature>
<DIV dir=ltr>Devin Rosenbauer<BR>Principal Consultant<BR>Identity Works LLC<BR>+1 585 210 3201<BR></DIV></DIV></DIV><BR>
<FIELDSET class=mimeAttachmentHeader></FIELDSET> <BR><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><BR><BR></BLOCKQUOTE></DIV></BODY></HTML>