{"id":1093,"date":"2026-12-01T08:30:00","date_gmt":"2026-12-01T13:30:00","guid":{"rendered":"https:\/\/dataflowsoln.com\/blog\/?p=1019"},"modified":"2026-12-01T08:30:00","modified_gmt":"2026-12-01T13:30:00","slug":"january-2nd-and-nobody-can-post","status":"publish","type":"post","link":"https:\/\/dataflowsoln.com\/blog\/january-2nd-and-nobody-can-post\/","title":{"rendered":"BC Teardown #19: January 2nd and nobody can post"},"content":{"rendered":"<p><em>Happy New Year. Your posting date says no.<\/em><\/p>\n<div style=\"width: 1920px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-1093-1\" width=\"1920\" height=\"1080\" poster=\"https:\/\/dataflowsoln.com\/blog\/wp-content\/uploads\/2026\/11\/BC-Teardown-19-cover.jpg\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/dataflowsoln.com\/blog\/wp-content\/uploads\/2026\/11\/BC-Teardown-19-video-16x9.mp4?_=1\" \/><a href=\"https:\/\/dataflowsoln.com\/blog\/wp-content\/uploads\/2026\/11\/BC-Teardown-19-video-16x9.mp4\">https:\/\/dataflowsoln.com\/blog\/wp-content\/uploads\/2026\/11\/BC-Teardown-19-video-16x9.mp4<\/a><\/video><\/div>\n<h2>The pain<\/h2>\n<p>The first business day of January, every invoice and journal fails. Finance is locked out until someone finds the setting and changes it by hand.<\/p>\n<h2>Why it happens<\/h2>\n<p>Allowed posting dates in General Ledger Setup are fixed dates. Someone types them in every month, and the one month nobody does is the month after the holidays.<\/p>\n<h2>Before: Dates typed in by hand<\/h2>\n<pre><code>General Ledger Setup\n  Allow Posting From: 12\/01\/2026\n  Allow Posting To:   12\/31\/2026\n\nJan 2, 8:01 AM:\n  Posting date is not within your\n  range of allowed posting dates\n\n# Admin is on vacation until Jan 5<\/code><\/pre>\n<h2>After: A Job Queue entry that rolls the window<\/h2>\n<pre><code>codeunit 50200 \"DF Roll Posting Dates\"\n{\n  trigger OnRun()\n  var\n    GLSetup: Record \"General Ledger Setup\";\n  begin\n    GLSetup.Get();\n    GLSetup.\"Allow Posting From\" :=\n      CalcDate('&lt;-1M-CM&gt;', Today());\n    GLSetup.\"Allow Posting To\" :=\n      CalcDate('&lt;CM&gt;', Today());\n    GLSetup.Modify();\n  end;\n}<\/code><\/pre>\n<h2>The result<\/h2>\n<p>On the 1st of every month the window moves by itself: last month stays open for the close, this month opens on time.<\/p>\n<p><strong>Tip:<\/strong> User Setup can override these dates per user, so check both before year end.<\/p>\n<p><a href=\"https:\/\/dataflowsoln.com\/blog\/wp-content\/uploads\/2026\/11\/BC-Teardown-19-carousel.pdf\" target=\"_blank\" rel=\"noopener\">Download this teardown as a PDF<\/a><\/p>\n<h2>Related teardowns<\/h2>\n<ul>\n<li><a href=\"https:\/\/dataflowsoln.com\/blog\/who-closed-the-year-last-time\/\">BC Teardown #20: &#8220;Who closed the year last time?&#8221;<\/a><\/li>\n<li><a href=\"https:\/\/dataflowsoln.com\/blog\/the-month-end-close-that-takes-10-days\/\">BC Teardown #23: The month end close that takes 10 days<\/a><\/li>\n<li><a href=\"https:\/\/dataflowsoln.com\/blog\/long-batch-jobs-freeze-your-users\/\">BC Teardown #5: Long batch jobs freeze your users<\/a><\/li>\n<\/ul>\n<hr \/>\n<p><strong>Got a Business Central problem like this?<\/strong> Free year end readiness review. Senior Microsoft certified developers, and you talk to the person writing the code. <a href=\"https:\/\/www.dataflowsoln.com\/#contact\">Contact Dataflow Solutions<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Happy New Year. Your posting date says no.<\/p>\n","protected":false},"author":2,"featured_media":1042,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3,9,14,43],"class_list":["post-1093","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bc-teardowns","tag-al","tag-business-central","tag-job-queue","tag-year-end"],"_links":{"self":[{"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts\/1093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/comments?post=1093"}],"version-history":[{"count":1,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts\/1093\/revisions"}],"predecessor-version":[{"id":1109,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts\/1093\/revisions\/1109"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/media\/1042"}],"wp:attachment":[{"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/media?parent=1093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/categories?post=1093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/tags?post=1093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}