Link invalid date: Difference between revisions

From IMSMA Wiki
Jump to navigation Jump to search
Created page with "<pre>SELECT link.data_deletion_date, link.data_entry_date FROM link WHERE link.data_deletion_date = '0000-00-00 00:00:00' OR link.data_entry_date = '0000-00-00 00:00:00' </..."
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<pre>SELECT
The invalid dates are cause by import, migration or editing directly in the table. This error have been found so far in table ''fieldreport'' and ''link''. You get errors during creation of the raw PostgreSQL dump.
 
The error message is both showing the GUID of the record that has invalid date and what is the problem: <br/>
Exception in thread main java.lang.RuntimeException: java.lang. <br/>
RuntimeException: java.sql.SQLException: Value '''c864-643e-146fa97d9a1-b2809c03-1-caeb''' <br/>
{BaseData-WorkbenchStatus-00000-00004} MAG-Y2014-M06-024<br/>
c864-6410-13b0996d203-a7ad6e50-3-7b7f 2014-06-04 00:00:00 2014-07-03 08:01:26<br/>
'''0000-00-00 00:00:0''' M. Kabir 2014-07-03 2014-08-29 13:04:09 imsma <br/>
can not be represented as java.sql.'''Timestamp'''
<pre>
SELECT
fieldreport.dateofreport,
fieldreport.reportreceiveddate,
fieldreport.reportverifieddate,
fieldreport.reportcompleteddate,
fieldreport.dataentrydate
FROM
fieldreport
WHERE
fieldreport.dateofreport =  '0000-00-00 00:00:00' OR
fieldreport.reportreceiveddate =  '0000-00-00 00:00:00' OR
fieldreport.reportverifieddate =  '0000-00-00 00:00:00' OR
fieldreport.reportcompleteddate =  '0000-00-00 00:00:00' OR
fieldreport.dataentrydate =  '0000-00-00 00:00:00'
</pre>
<pre>
SELECT
link.data_deletion_date,
link.data_deletion_date,
link.data_entry_date
link.data_entry_date
Line 9: Line 35:


</pre>
</pre>
{{NavBox Upgrade}}
[[Category:NoPublic]]
[[Category:NoPublic]]
[[Category:SQL Queries]]

Latest revision as of 11:13, 3 May 2015

The invalid dates are cause by import, migration or editing directly in the table. This error have been found so far in table fieldreport and link. You get errors during creation of the raw PostgreSQL dump.

The error message is both showing the GUID of the record that has invalid date and what is the problem:
Exception in thread main java.lang.RuntimeException: java.lang.
RuntimeException: java.sql.SQLException: Value c864-643e-146fa97d9a1-b2809c03-1-caeb
{BaseData-WorkbenchStatus-00000-00004} MAG-Y2014-M06-024
c864-6410-13b0996d203-a7ad6e50-3-7b7f 2014-06-04 00:00:00 2014-07-03 08:01:26
0000-00-00 00:00:0 M. Kabir 2014-07-03 2014-08-29 13:04:09 imsma
can not be represented as java.sql.Timestamp

SELECT
fieldreport.dateofreport,
fieldreport.reportreceiveddate,
fieldreport.reportverifieddate,
fieldreport.reportcompleteddate,
fieldreport.dataentrydate
FROM
fieldreport
WHERE
fieldreport.dateofreport =  '0000-00-00 00:00:00' OR
fieldreport.reportreceiveddate =  '0000-00-00 00:00:00' OR
fieldreport.reportverifieddate =  '0000-00-00 00:00:00' OR
fieldreport.reportcompleteddate =  '0000-00-00 00:00:00' OR
fieldreport.dataentrydate =  '0000-00-00 00:00:00'
SELECT
link.data_deletion_date,
link.data_entry_date
FROM
link
WHERE
link.data_deletion_date =  '0000-00-00 00:00:00' OR
link.data_entry_date =  '0000-00-00 00:00:00'

{{#switch:|subgroup|child=|none=|#default=

}}{{#if:|}}{{#if:Upgrade Process|<td style="text-align:left;border-left-width:2px;border-left-style:solid;|{{#if:|}}}}{{#if:|{{#if:IMSMA Hub{{#switch:{{#if:|{{{border}}}|child}}|subgroup|child=|none=|#default=

}}{{#ifeq:|Template|{{#ifeq:{{#if:|{{{border}}}|child}}|child||{{#ifeq:{{#if:|{{{border}}}|child}}|subgroup||{{#switch:link invalid date

|doc
|sandbox
|testcases =
|#default = {{#switch:
 |plainlist
 |hlist
 |hlist hnum
 |hlist vcard
 |vcard hlist = 
 |#default = 
 }}
}}

}}}}}}|}}{{#if:|{{{group2}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list2}}}

}}{{#if:|{{#if:IMSMA Hub{{#switch:{{#if:|{{{border}}}|child}}|subgroup|child=|none=|#default=

}}{{#ifeq:|Template|{{#ifeq:{{#if:|{{{border}}}|child}}|child||{{#ifeq:{{#if:|{{{border}}}|child}}|subgroup||{{#switch:link invalid date

|doc
|sandbox
|testcases =
|#default = {{#switch:
 |plainlist
 |hlist
 |hlist hnum
 |hlist vcard
 |vcard hlist = 
 |#default = 
 }}
}}

}}}}}}|}}{{#if:|{{{group3}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list3}}}

}}{{#if:|{{#if:|{{{group4}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list4}}}

}}{{#if:|{{#if:|{{{group5}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list5}}}

}}{{#if:|{{#if:|{{{group6}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list6}}}

}}{{#if:|{{#if:|{{{group7}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list7}}}

}}{{#if:|{{#if:|{{{group8}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list8}}}

}}{{#if:|{{#if:|{{{group9}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list9}}}

}}{{#if:|{{#if:|{{{group10}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list10}}}

}}{{#if:|{{#if:|{{{group11}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list11}}}

}}{{#if:|{{#if:|{{{group12}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list12}}}

}}{{#if:|{{#if:|{{{group13}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list13}}}

}}{{#if:|{{#if:|{{{group14}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list14}}}

}}{{#if:|{{#if:|{{{group15}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list15}}}

}}{{#if:|{{#if:|{{{group16}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list16}}}

}}{{#if:|{{#if:|{{{group17}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list17}}}

}}{{#if:|{{#if:|{{{group18}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list18}}}

}}{{#if:|{{#if:|{{{group19}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list19}}}

}}{{#if:|{{#if:|{{{group20}}}<td style="text-align:left;border-left-width:2px;border-left-style:solid;|

{{{list20}}}

}}{{#if:|{{#if:IMSMA Hub{{#switch:{{#if:|{{{border}}}|child}}|subgroup|child=|none=|#default=

}}{{#ifeq:|Template|{{#ifeq:{{#if:|{{{border}}}|child}}|child||{{#ifeq:{{#if:|{{{border}}}|child}}|subgroup||{{#switch:link invalid date

|doc
|sandbox
|testcases =
|#default = {{#switch:
 |plainlist
 |hlist
 |hlist hnum
 |hlist vcard
 |vcard hlist = 
 |#default = 
 }}
}}

}}}}}}|}}

{{{below}}}

}}{{#switch:|subgroup|child=

|none=|#default=}}{{#ifeq:|Template|{{#ifeq:|child||{{#ifeq:|subgroup||{{#switch:link invalid date
|doc
|sandbox
|testcases =
|#default = {{#switch:hlist
 |plainlist
 |hlist
 |hlist hnum
 |hlist vcard
 |vcard hlist = 
 |#default = 
 }}
}}

}}}}}}