[midPoint] CSV connector with single identifier

Ivan Noris ivan.noris at evolveum.com
Fri Sep 8 12:21:49 CEST 2017


Hi Esteban,


I believe the problem is elsewhere. The error message is because you are
trying to create User in midPoint without "name" attribute. The
attribute seems to not be populated by mentioned HR resource (no inbound
expression for target $user/name). The "evolveum" samples are probably
using also object template (also in that directory).

So either add a new inbound mapping which creates user name in midPoint,
or use also object template which will generate it.


Best regards,

Ivan


On 07.09.2017 19:41, Jeria, Esteban wrote:
>
> Hi Petr,
>
>  
>
> I'm talking about the sample "/sample/evolveum/resource-hr.xml"
> comming with Midpoint version 3.6, which uses the new CSV connector
> 2.0 so indeed it uses ri:name instead of icfs:name.. but I use the
> config as is, without any change.
>
>  
>
> I imported the xml file into a fresh installation of Midpoint 3.6 and
> of course, I copied the csv file on my system on the right directory
> (/var/opt/midpoint-evolveum/resources/hr.csv), then I created a
> reconciliation task to test, but I'm getting the error mentioned below.
>
>  
>
>  
>
> Does it work on your side?
>
>  
>
>  
>
>  
>
> *Esteban Jeria*
>
> esteban.jeria at cgi.com <mailto:esteban.jeria at cgi.com>
> Conseiller *CGI*/ *CGI*Consultant
>
> Sécurité - Gestion des Identités et des Accès / Security - Identity
> and Access Management
>
> ------------------------------------------------------------------------
> *From:* Petr Gašparík - AMI Praha a.s. [petr.gasparik at ami.cz]
> *Sent:* September 7, 2017 2:19 AM
> *To:* midPoint General Discussion
> *Subject:* Re: [midPoint] CSV connector with single identifier
>
> BTW which sample you are referencing?
> samples\resources\csvfile\HR-csvfile-resource.xml ? (from current master)
>
> --
>
> s pozdravem
>
> Petr Gašparík
> solution architect
>
> gsm: [+420] 603 523 860
> e-mail: petr.gasparik at ami.cz <mailto:petr.gasparik at ami.cz>
>
> 	    	    	
>
> AMI Praha a.s.
> Pláničkova 11
> 162 00 Praha 6
> tel.: [+420] 274 783 239
> web: www.ami.cz <http://www.ami.cz/>
>
> 	    	    	
>
> AMI Praha a.s.
>
>
> Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za
> společnost AMI Praha a.s.
> jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít
> výhradně písemnou formu.
>
>
> 2017-09-06 20:15 GMT+02:00 Martin Lízner - AMI Praha a.s.
> <martin.lizner at ami.cz <mailto:martin.lizner at ami.cz>>:
>
>     Just a wild guess, but do you happen to use icfs:name? I think you
>     may use ri namespace instead + real column name. M.
>
>     Martin Lízner
>     solution architect
>
>     gsm: [+420] 737 745 571 <tel:737%20745%20571>
>     e-mail: martin.lizner at ami.cz <mailto:martin.lizner at ami.cz>
>
>     	    	    	
>
>     AMI Praha a.s.
>     Pláničkova 11
>     162 00 Praha 6
>     tel.: [+420] 274 783 239 <tel:274%20783%20239>
>     web: www.ami.cz <http://www.ami.cz/>
>
>     	    	    	
>
>
>
>     AMI Praha a.s. <http://www.skyidentity.com/>
>
>     Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá
>     za společnost AMI Praha a.s.
>     jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít
>     výhradně písemnou formu.
>
>
>
>     2017-08-24 17:11 GMT+02:00 Jeria, Esteban <esteban.jeria at cgi.com
>     <mailto:esteban.jeria at cgi.com>>:
>
>         Hi,
>
>          
>
>         I started testing your application with version 3.5.1 and my
>         PoC works properly, then now I would like to test the other
>         recents features like escalation or password reset by email so
>         I installed version 3.6, but I'm unable to make work the CSV
>         connector 2.0.
>         My CSV file has a single unique identifier so I tried to
>         figure out how that it works by using the sample on
>         /sample/ressource/evolveum/resource-hr.xml, but it doesn't
>         work either.
>         It's complaining about that there is no value for "name"
>         attribute.
>
>          
>
>         001: No name in new object null as produced by template null
>         in iteration 0, we cannot process an object without a name
>
>          
>
>         How can I properly test your sample?
>
>          
>
>         *Esteban Jeria*
>         Conseiller *CGI*/ *CGI*Consultant
>
>         Sécurité - Gestion des accès / Security - Access Management
>
>
>         _______________________________________________
>         midPoint mailing list
>         midPoint at lists.evolveum.com <mailto:midPoint at lists.evolveum.com>
>         http://lists.evolveum.com/mailman/listinfo/midpoint
>         <http://lists.evolveum.com/mailman/listinfo/midpoint>
>
>
>
>     _______________________________________________
>     midPoint mailing list
>     midPoint at lists.evolveum.com <mailto:midPoint at lists.evolveum.com>
>     http://lists.evolveum.com/mailman/listinfo/midpoint
>     <http://lists.evolveum.com/mailman/listinfo/midpoint>
>
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint

-- 
Ivan Noris
Senior Identity Engineer
evolveum.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170908/890cbbee/attachment.htm>


More information about the midPoint mailing list