{"id":642,"date":"2018-11-16T21:08:30","date_gmt":"2018-11-17T03:08:30","guid":{"rendered":"https:\/\/linux.asberry.org\/blog_tech\/?p=642"},"modified":"2024-05-14T09:13:49","modified_gmt":"2024-05-14T14:13:49","slug":"tcc-expected-elements","status":"publish","type":"post","link":"https:\/\/asberry.org\/blog_tech\/?p=642","title":{"rendered":"TCC &#8211; Expected Elements"},"content":{"rendered":"<p>So I found myself having to create an export for only UDF&#8217;s and had to code it for the type coming out of the custom dictionary so that if it was a string it would output just the field and if it was a date it would apply a TO_CHAR function along with a date specification. As I hang my head in shame I did it in Excel because I didn&#8217;t have time to write the Python version of it and inadvertently misspelled field.<\/p>\n<p>To make a long story short the GUI threw an error saying this is the list of expected elements, I&#8217;m sure this is somewhere in an XSD but it&#8217;s now here for reference:<\/p>\n<p><!--more--><\/p>\n<p>add<br \/>\naddDays<br \/>\naddMonths<br \/>\naddWeeks<br \/>\naddYears<br \/>\nallCustomFields<br \/>\namount<br \/>\nintersect<br \/>\nminus<br \/>\nquery<br \/>\npredefinedQuery<br \/>\nunion<br \/>\nunionAllowDuplicates<br \/>\naverage<br \/>\nboolean<br \/>\ncastAsDate<br \/>\ncastAsNumber<br \/>\ncastAsTimestamp<br \/>\nclassType<br \/>\ncolumn<br \/>\nconcatenate<br \/>\ncount<br \/>\ncurrency<br \/>\ncustomFunction<br \/>\ncustomValue<br \/>\ndate<br \/>\ndecode<br \/>\ndivide<br \/>\ndouble<br \/>\nfield<br \/>\nfirstValue<br \/>\nfloat<br \/>\ngreatest<br \/>\ninteger<br \/>\nkey<br \/>\nlastValue<br \/>\nleast<br \/>\nlist<br \/>\nlobCompare<br \/>\nlobIndexOf<br \/>\nlobLength<br \/>\nlobSubstring<br \/>\nlocale<br \/>\nlong<br \/>\nmaximum<br \/>\nminimum<br \/>\nmultilingualColumn<br \/>\nmultiply<br \/>\nnextValue<br \/>\noverRows<br \/>\noverValues<br \/>\nparameter<br \/>\npower<br \/>\npredefinedValue<br \/>\npreviousValue<br \/>\nprojection<br \/>\nreplace<br \/>\nreplaceNull<br \/>\nreplaceNullOrNot<br \/>\nround<br \/>\nstring<br \/>\nsubstring<br \/>\nsubtract<br \/>\nsubtractDate<br \/>\nsum<br \/>\nswitchByCriterion<br \/>\nswitchByValue<br \/>\ntoChar<br \/>\ntextAbout<br \/>\ntextAnd<br \/>\ntextCustom<br \/>\ntextInPath<br \/>\ntextNot<br \/>\ntextOr<br \/>\ntextWeight<br \/>\ntextWithin<br \/>\ntoEndOfTheDay<br \/>\ntoLowerCase<br \/>\ntoStartOfTheDay<br \/>\ntoUpperCase<br \/>\ntrim<br \/>\ntruncate<br \/>\nundefined<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I found myself having to create an export for only UDF&#8217;s and had to code it for the type coming out of the custom dictionary so that if it was a string it would output just the field and if it was a date it would apply a TO_CHAR function along with a date [&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-642","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-am","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/642","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=642"}],"version-history":[{"count":1,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/642\/revisions"}],"predecessor-version":[{"id":643,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/642\/revisions\/643"}],"wp:attachment":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}