{"id":1012,"date":"2026-11-17T08:30:00","date_gmt":"2026-11-17T13:30:00","guid":{"rendered":"https:\/\/www.dataflowsoln.com\/blog\/?p=1012"},"modified":"2026-11-17T08:30:00","modified_gmt":"2026-11-17T13:30:00","slug":"your-error-messages-are-riddles","status":"publish","type":"post","link":"https:\/\/dataflowsoln.com\/blog\/your-error-messages-are-riddles\/","title":{"rendered":"BC Teardown #12: Your error messages are riddles"},"content":{"rendered":"<p><em>&#8220;Validation failed&#8221; is not what an accountant wants to read at 4:55 PM.<\/em><\/p>\n\n<h2>The pain<\/h2>\n<p>Users hit cryptic errors, screenshot them and email IT. IT asks what they were doing. A one minute fix becomes a two day thread.<\/p>\n<h2>Why it happens<\/h2>\n<p>Custom code throws messages written by developers for developers, with no hint of what to do next.<\/p>\n<h2>Before: A message only the developer gets<\/h2>\n<pre style=\"background:#0c182c;color:#e6ecf5;padding:20px 24px;border-radius:10px;overflow-x:auto;font-size:15px;line-height:1.55;\"><code>if SalesHeader.\"Shipping Agent Code\" = '' then\n  Error('Validation failed: SA blank');<\/code><\/pre>\n<h2>After: Tell the user what to do<\/h2>\n<pre style=\"background:#0c182c;color:#e6ecf5;padding:20px 24px;border-radius:10px;overflow-x:auto;font-size:15px;line-height:1.55;\"><code>var\n  ErrInfo: ErrorInfo;\nbegin\n  if SalesHeader.\"Shipping Agent Code\" &lt;&gt; '' then\n    exit;\n  ErrInfo.Title := 'Shipping agent missing';\n  ErrInfo.Message :=\n    'Pick a shipping agent, then post again.';\n  Error(ErrInfo);\nend;<\/code><\/pre>\n<h2>The result<\/h2>\n<p>Users see a clear title and a next step, and fix it themselves. IT gets their afternoon back.<\/p>\n<p><strong>Tip:<\/strong> ErrorInfo can also add actions, like a button that opens the right page.<\/p>\n<p><a href=\"https:\/\/dataflowsoln.com\/blog\/wp-content\/uploads\/2026\/11\/BC-Teardown-12-carousel.pdf\" target=\"_blank\" rel=\"noopener\">Download this teardown as a PDF<\/a><\/p>\n<hr \/>\n<p><strong>Got a Business Central problem like this?<\/strong> Free 30 minute review of your setup. 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>&#8220;Validation failed&#8221; is not what an accountant wants to read at 4:55 PM.<\/p>\n","protected":false},"author":2,"featured_media":40,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3,9,12],"class_list":["post-1012","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bc-teardowns","tag-al","tag-business-central","tag-errorinfo"],"_links":{"self":[{"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts\/1012","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=1012"}],"version-history":[{"count":1,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts\/1012\/revisions"}],"predecessor-version":[{"id":1034,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts\/1012\/revisions\/1034"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/media\/40"}],"wp:attachment":[{"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/media?parent=1012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/categories?post=1012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/tags?post=1012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}