{"id":592,"date":"2018-05-14T17:01:22","date_gmt":"2018-05-14T22:01:22","guid":{"rendered":"https:\/\/linux.asberry.org\/blog_tech\/?p=592"},"modified":"2024-05-14T09:13:49","modified_gmt":"2024-05-14T14:13:49","slug":"tcc-error-timestamp-format-must-be","status":"publish","type":"post","link":"https:\/\/asberry.org\/blog_tech\/?p=592","title":{"rendered":"TCC &#8211; Error: &#8216;Timestamp format must be&#8230;&#8217;"},"content":{"rendered":"<p>So I was trying to do a replace null on two date fields and render it toChar yyyy-MM-dd and it kept giving me the lovely &#8216;SAX parsing error&#8217;, looking in the profiler I get this reason:<br \/>\nTimestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]<br \/>\nAfter rearranging the order of the toChar and replaceNull and still getting the same thing, I finally stumbled on the answer which was to declare the projection as a toChar by adding:<br \/>\nprojectedField=&#8221;RuntimeString:toChar&#8221;<br \/>\nTo the projection attributes.<br \/>\nI&#8217;m not 100% sure why this has to be done but it fixed the issue so figured I&#8217;d post it here.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I was trying to do a replace null on two date fields and render it toChar yyyy-MM-dd and it kept giving me the lovely &#8216;SAX parsing error&#8217;, looking in the profiler I get this reason: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff] After rearranging the order of the toChar and replaceNull and still getting the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-592","post","type-post","status-publish","format-standard","hentry","category-tcc","author-aron"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4bBkH-9y","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=592"}],"version-history":[{"count":1,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/592\/revisions"}],"predecessor-version":[{"id":593,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/592\/revisions\/593"}],"wp:attachment":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}