<div dir="ltr">Hi Martin,<div><br></div><div>can you try instead of VARCHAR2 using timestamp?</div><div>from javadoc: </div><div><a href="https://github.com/Evolveum/openicf/blob/master/connectors/java/databasetable/src/main/java/org/identityconnectors/databasetable/DatabaseTableConfiguration.java">https://github.com/Evolveum/openicf/blob/master/connectors/java/databasetable/src/main/java/org/identityconnectors/databasetable/DatabaseTableConfiguration.java</a><br><div class="gmail_extra"><table class="" style="border-spacing:0px;border-collapse:collapse;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;line-height:21px"><tbody style=""><tr style=""><td id="LC455" class="" style="padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre"> <span class="" style="color:rgb(150,152,150)">/**</span></td></tr><tr style=""><td id="L456" class="" style="padding:0px 10px;width:50px;min-width:50px;font-family:Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC456" class="" style="padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre"><span class="" style="color:rgb(150,152,150)"> * Change Log Column (should automatically add ORDER BY)</span></td></tr><tr style=""><td id="L457" class="" style="padding:0px 10px;width:50px;min-width:50px;font-family:Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC457" class="" style="padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre"><span class="" style="color:rgb(150,152,150)"> * If the value is non empty, the SyncOp should be supported</span></td></tr><tr style=""><td id="L458" class="" style="padding:0px 10px;width:50px;min-width:50px;font-family:Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC458" class="" style="padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre"><span class="" style="color:rgb(150,152,150)"> * <b>It could be nativeTimestamps.</b></span></td></tr><tr style=""><td id="L459" class="" style="padding:0px 10px;width:50px;min-width:50px;font-family:Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC459" class="" style="padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre"><span class="" style="color:rgb(150,152,150)"> */ </span></td></tr></tbody></table><div class="gmail_quote">after changed VIEW structure, please delete old token from resource XML and try again</div><div class="gmail_quote"><br></div><div class="gmail_quote">Gustav</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">2016-08-24 19:06 GMT+02:00 Martin Marchese <span dir="ltr"><<a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">The CHANGE_LOG is generated in the VIEW by using to_char(SYSDATE), so it's VARCHAR2.<div><br></div><div>Thanks</div></div><div class="gmail_extra"><span class=""><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b><span></span><span></span>Ing. Martín Marchese</b><br><img src="http://www.identicum.com/img/favicon.ico">Identicum S.A.<br>Jorge Newbery 3226<br>Tel: <a href="tel:%2B54%20%2811%29%204552-3050" value="+541145523050" target="_blank">+54 (11) 4552-3050</a><br><a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a><br><a href="http://www.identicum.com" target="_blank">www.identicum.com</a></div></div></div></div></div></div></div></div></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Wed, Aug 24, 2016 at 1:28 PM, Ivan Noris <span dir="ltr"><<a href="mailto:Ivan.Noris@evolveum.com" target="_blank">Ivan.Noris@evolveum.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"times new roman","new york",times,serif;font-size:12pt;color:rgb(0,0,0)"><div>Hi Martin,<br></div><div>this looks strange, as it is Oracle error...what is the CHANGE_LOG type in your database?<br></div><div>Ivan<br></div><div><br></div><hr><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px;color:rgb(0,0,0);font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><span><b>From: </b>"Martin Marchese" <<a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a>><br><b>To: </b>"midPoint General Discussion" <<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>><br></span><b>Sent: </b>Wednesday, August 24, 2016 5:34:38 PM<br><b>Subject: </b>Re: [midPoint] Live Synchronization Task not Syncing<div><div><br><div><br></div><div dir="ltr">Pálos / Ivan<br><div><br></div>Thanks both for the help, unfortunately I had no luck yet.<div><br></div><div>First I'd like to state that I'm using a VIEW and not a TABLE.</div><div><br></div><div>I tried restarting midpoint, since I did change the database, but still no luck.</div><div><br></div><div>I had the CHANGE_LOG column but it had not had any value, so to start testing I added the to_char(<span>SYSDATE</span>) into that column. Now I'm receiving the following errors:</div><div><br></div><div><br></div><div><div><i><span style="font-size:xx-small" size="1">Internal Error: DB error: java.<span>sql</span>.<span>SQLException</span>(ORA-0172<wbr>2: invalid number?) </span></i></div><div><i><span style="font-size:xx-small" size="1">Operation</span></i></div><div><i><span style="font-size:xx-small" size="1"><a href="http://operation.com" target="_blank">operation.com</a>.<span>evolveum</span>.midpoin<wbr>t.common.operation.<span>liveSync</span></span></i></div><div><i><span style="font-size:xx-small" size="1">Message</span></i></div><div><i><span style="font-size:xx-small" size="1">Internal Error: DB error: java.<span>sql</span>.<span>SQLException</span>(ORA-0172<wbr>2: invalid number?)</span></i></div><div><i><span style="font-size:xx-small" size="1"> Synchronization error: generic connector framework error: DB error: java.<span>sql</span>.<span>SQLException</span>(ORA-0172<wbr>2: invalid number?) </span></i></div><div><i><span style="font-size:xx-small" size="1">Operation</span></i></div><div><i><span style="font-size:xx-small" size="1"><a href="http://operation.com" target="_blank">operation.com</a>.<span>evolveum</span>.midpoin<wbr>t.provisioning.api.<span>Provisionin<wbr>gService</span>.synchronize</span></i></div><div><i><span style="font-size:xx-small" size="1">Message</span></i></div><div><i><span style="font-size:xx-small" size="1">Synchronization error: generic connector framework error: DB error: java.<span>sql</span>.<span>SQLException</span>(ORA-0172<wbr>2: invalid number?)</span></i></div><div><i><span style="font-size:xx-small" size="1">Parameters</span></i></div><div><i><span style="font-size:xx-small" size="1"><span>oid</span><span style="white-space:pre-wrap"> </span><span>javax</span>.<span>xml</span>.bind.<span>JAXBElement</span>@a03<wbr>9fa4</span></i></div><div><i><span style="font-size:xx-small" size="1">task<span style="white-space:pre-wrap"> </span><span>javax</span>.<span>xml</span>.bind.<span>JAXBElement</span>@5cd<wbr>8d164</span></i></div></div><div><br></div><div><br></div><div>Any thoughts on this?</div><div><br></div><div>Also, I'm working on getting the resource and task XML so I can send it over this thread.</div><div><br></div><div>Thanks in advance</div><div><br></div><div> </div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b><span></span><span></span>Ing. Martín Marchese</b><br><img src="http://www.identicum.com/img/favicon.ico">Identicum S.A.<br>Jorge Newbery 3226<br>Tel: <a href="tel:%2B54%20%2811%29%204552-3050" value="+541145523050" target="_blank">+54 (11) 4552-3050</a><br><a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a><br><a href="http://www.identicum.com" target="_blank">www.identicum.com</a><br></div></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote">On Tue, Aug 23, 2016 at 4:54 PM, Ivan Noris <span dir="ltr"><<a href="mailto:Ivan.Noris@evolveum.com" target="_blank">Ivan.Noris@evolveum.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"times new roman","new york",times,serif;font-size:12pt;color:rgb(0,0,0)"><div>Martin,<br></div><div>can you check the Task in the repository, if there is a "token" element (don't remember the exact name as I don't have mp handy now) in the task extension? There should be date/time of the last modification from DB.<br></div><div><br></div><div>What comes to my mind: have you recently changed the structure of the table? I mean, adding or removing columns after you have configured the resource? I remember to have this <a href="https://jira.evolveum.com/browse/MID-2046" target="_blank">https://jira.evolveum.com/brow<wbr>se/MID-2046</a> when I was playing with DBT connector and have added the "timestamp" column after the connection from mp to DB was already made... (Restarting either midpoint or the database to break the connection and restore it using Test connection helped).<br></div><div><br></div><div>But it is just a guess now.<br></div><div><br></div><div>Regards,<br></div><div>Ivan<br></div><div><br></div><hr><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px;color:rgb(0,0,0);font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><b>From: </b>"Martin Marchese" <<a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a>><br><b>To: </b>"midPoint General Discussion" <<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>><br><b>Sent: </b>Tuesday, August 23, 2016 9:28:25 PM<br><b>Subject: </b>[midPoint] Live Synchronization Task not Syncing<div><div><br><div><br></div><div dir="ltr">Hi all,<div><br></div><div>I'm working with a DatabaseTable connector which has a LiveSync task assigned in order to sync users from the table into MidPoint and it's inbound mappings for each attribute set up.</div><div><br></div><div>However, whenever I create a new user in the database table it does not sync into MidPoint even if the task is running. The only way I can create the user in MidPoint is manually importing it thru the Resource.</div><div><br></div><div>Besides, once the user is created, the modifications that I do within the databse table, never sync into MidPoint.</div><div><br></div><div>An INFO level log shows no error nor warnings.</div><div><br></div><div>Is there any thing that needs to be enabled within the resource/task in order to do this?</div><div><br></div><div>Thanks<br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b><span></span><span></span>Ing. Martín Marchese</b><br><img src="http://www.identicum.com/img/favicon.ico">Identicum S.A.<br>Jorge Newbery 3226<br>Tel: <a href="tel:%2B54%20%2811%29%204552-3050" value="+541145523050" target="_blank">+54 (11) 4552-3050</a><br><a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a><br><a href="http://www.identicum.com" target="_blank">www.identicum.com</a><br></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><span>______________________________<wbr>_________________<br>midPoint mailing list<br><a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br><a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br></span></blockquote><div><br><div><br></div></div><div><br></div><div>-- <br></div><div><span></span>Ivan Noris<br>Senior Identity Engineer<br><a href="http://evolveum.com" target="_blank">evolveum.com</a><span></span><br></div></div></div><br>______________________________<wbr>_________________<br> midPoint mailing list<br> <a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br> <a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br> <br></blockquote></div><br></div><br>______________________________<wbr>_________________<br>midPoint mailing list<br><a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br><a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br></div></div></blockquote><div><div><div><br><br></div><div><br></div><div>-- <br></div><div><span name="x"></span>Ivan Noris<br>Senior Identity Engineer<br><a href="http://evolveum.com" target="_blank">evolveum.com</a><span name="x"></span><br></div></div></div></div></div><br>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br>
<br></blockquote></div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Gustáv Pálos</div><div>Identity Engineer</div><a href="http://evolveum.com/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">evolveum.com</a><br></div></div>
</div></div></div>