{"id":82531,"date":"2022-10-27T07:10:11","date_gmt":"2022-10-27T07:10:11","guid":{"rendered":"https:\/\/www.bigxperts.com\/sage\/?p=82531"},"modified":"2025-03-12T05:49:58","modified_gmt":"2025-03-12T05:49:58","slug":"resolve-sage-50-io-error-variable-length","status":"publish","type":"post","link":"https:\/\/www.bigxperts.com\/sage\/resolve-sage-50-io-error-variable-length\/","title":{"rendered":"Resolve Sage 50 Error: \u201cI\/O in Variable Length Part of Record\u201d in .DAT File"},"content":{"rendered":"\n<p>Sage I\/O error in variable length part of record that occurs when the preferences file for the accounting software is damaged. So when you launch Sage 50, the program fails to parse the data in the preferences file and throws an error. One easy way to fix the Sage 50 I\/O error is to delete the USERPREF.DAT file which will be automatically recreated the next time. In this post, you\u2019ll learn how to fix the Sage 50 I\/O error in the variable length part of the record.<\/p>\n\n\n\n<p><strong>The exact error message is shown<\/strong>&#8230;<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Sage 50 Error: &#8220;I\/O Error in variable length part of record&#8221;<\/p>\n<\/blockquote>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Post Navigation<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.bigxperts.com\/sage\/resolve-sage-50-io-error-variable-length\/#causes-of-io-error-in-sage-50-accounting\" >Causes of I\/O Error in Sage 50 Accounting<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.bigxperts.com\/sage\/resolve-sage-50-io-error-variable-length\/#solution-for-sage-50-io-error-in-variable-length-part-of-record\" >Solution for Sage 50 I\/O Error in Variable Length Part of Record<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.bigxperts.com\/sage\/resolve-sage-50-io-error-variable-length\/#conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.bigxperts.com\/sage\/resolve-sage-50-io-error-variable-length\/#faq\" >FAQ<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading block-less-h2\"><span class=\"ez-toc-section\" id=\"causes-of-io-error-in-sage-50-accounting\"><\/span>Causes of I\/O Error in Sage 50 Accounting<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>USERPREF.DAT file damaged.<\/li>\n\n\n\n<li>The shared folder contains the company file and the preference file.<\/li>\n\n\n\n<li>The user hasn\u2019t mapped the company file location properly.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-verse\"><strong><em>Read More<\/em><\/strong>: <a href=\"https:\/\/www.bigxperts.com\/sage\/sage-50-hangs-on-startup\/\">Fix Sage 50 Accounts Hangs<\/a><\/pre>\n\n\n\n<h2 class=\"wp-block-heading block-less-h2\"><span class=\"ez-toc-section\" id=\"solution-for-sage-50-io-error-in-variable-length-part-of-record\"><\/span>Solution for Sage 50 I\/O Error in Variable Length Part of Record<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Since this error has one specific cause, we can rely on a single solution to fix the Sage 50 I\/O error. You\u2019ll need administrative rights to make the changes required to fix this error, so you need to use an administrator account in Windows.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <strong>File Explorer<\/strong>.<\/li>\n\n\n\n<li>Click on the <strong>search field <\/strong>in the top right corner of the window.<\/li>\n\n\n\n<li>Choose <strong>All Files <\/strong>and <strong>Folders<\/strong>.<\/li>\n\n\n\n<li>Input <strong>Company.DAT <\/strong>and hit <strong>enter<\/strong>. <strong>Wait <\/strong>for Windows to locate the file.<\/li>\n\n\n\n<li>Click on view from the toolbar, and choose <strong>Detail<\/strong>.<\/li>\n\n\n\n<li>Note the <strong>location <\/strong>of the company file and preferences file from the folder column.<\/li>\n\n\n\n<li>Right-click on the Folder for the company file.<\/li>\n\n\n\n<li>Choose <strong>Copy <\/strong>and <strong>paste <\/strong>the folder in the correct location so that Sage 50 can access it when you launch the program and log into the company file.<\/li>\n\n\n\n<li><strong>Close <\/strong>Sage 50 on all your systems.<\/li>\n\n\n\n<li>Open the <strong>File Explorer<\/strong>, and go to the <strong>Folder containing the Company File<\/strong>.<\/li>\n\n\n\n<li>Right-click on the <strong>USERPREF.DAT file<\/strong>.<\/li>\n\n\n\n<li>Choose <strong>Delete<\/strong>, or click on <strong>Rename<\/strong>, and append old to the end of the file name.<br><strong>Note<\/strong>: deleting the user preference file doesn\u2019t affect your data in any manner. While you\u2019ll have to configure the preferences for the Sage 50 company file once again, you\u2019ll not lose any of your data.<\/li>\n\n\n\n<li>Close <strong>File Explorer<\/strong>, and <strong>log into the Sage 50 company file <\/strong>that gave you the error in the first place.<\/li>\n<\/ul>\n\n\n\n<p>When fixing the I\/O error in the file UserPref.DAT in Sage 50, deleting the user preference file is essential because the damaged file will not let you access the company file.<\/p>\n\n\n\n<pre class=\"wp-block-verse\"><strong><em>Read More<\/em><\/strong>: <a href=\"https:\/\/www.bigxperts.com\/sage\/how-to-recover-lost-data-in-sage-50\/\">How to Recover Sage 50 Lost Data<\/a><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>This is all in our simple guide for fixing the Sage 50 I\/O error in the file UserPref.DAT. I hope that you were able to fix this error easily. We have a frequently asked question section that further elaborates some of the points in this article. You can always reach out to our accounting software experts if you need additional help with such errors.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-align-center block-less-h2\"><span class=\"ez-toc-section\" id=\"faq\"><\/span>FAQ<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-ub-content-toggle wp-block-ub-content-toggle-block\" id=\"ub-content-toggle-block-1c12c842-202e-444c-b6a7-e2a3af714764\" data-mobilecollapse=\"true\" data-desktopcollapse=\"true\" data-preventcollapse=\"false\" data-showonlyone=\"false\">\n<div class=\"wp-block-ub-content-toggle-accordion\" style=\"border-color: #f1f1f1; \" id=\"ub-content-toggle-panel-block-\">\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-title-wrap\" style=\"background-color: #f1f1f1;\" aria-controls=\"ub-content-toggle-panel-0-1c12c842-202e-444c-b6a7-e2a3af714764\" tabindex=\"0\">\n\t\t\t<h4 class=\"wp-block-ub-content-toggle-accordion-title ub-content-toggle-title-1c12c842-202e-444c-b6a7-e2a3af714764\" style=\"color: #000000; \">What does the userpref.dat file contain?<\/h4>\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-toggle-wrap right\" style=\"color: #000000;\"><span class=\"wp-block-ub-content-toggle-accordion-state-indicator wp-block-ub-chevron-down\"><\/span><\/div>\n\t\t<\/div>\n\t\t\t<div role=\"region\" aria-expanded=\"false\" class=\"wp-block-ub-content-toggle-accordion-content-wrap ub-hide\" id=\"ub-content-toggle-panel-0-1c12c842-202e-444c-b6a7-e2a3af714764\">\n\n<p>The usrepref.dat file contains the configurations for settings in Sage 50. For instance, if you\u2019ve enabled sales taxes or created a custom dashboard, then all this non-essential configuration data is stored in this file. Sage 50 creates a new user preference file if it finds that one doesn\u2019t already exist in the folder containing the company file.<\/p>\n\n<\/div>\n\t\t<\/div>\n\n<div class=\"wp-block-ub-content-toggle-accordion\" style=\"border-color: #f1f1f1; \" id=\"ub-content-toggle-panel-block-\">\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-title-wrap\" style=\"background-color: #f1f1f1;\" aria-controls=\"ub-content-toggle-panel-1-1c12c842-202e-444c-b6a7-e2a3af714764\" tabindex=\"0\">\n\t\t\t<h4 class=\"wp-block-ub-content-toggle-accordion-title ub-content-toggle-title-1c12c842-202e-444c-b6a7-e2a3af714764\" style=\"color: #000000; \">How to recreate the userpref.dat file after deleting it?<\/h4>\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-toggle-wrap right\" style=\"color: #000000;\"><span class=\"wp-block-ub-content-toggle-accordion-state-indicator wp-block-ub-chevron-down\"><\/span><\/div>\n\t\t<\/div>\n\t\t\t<div role=\"region\" aria-expanded=\"false\" class=\"wp-block-ub-content-toggle-accordion-content-wrap ub-hide\" id=\"ub-content-toggle-panel-1-1c12c842-202e-444c-b6a7-e2a3af714764\">\n\n<p>You don\u2019t have to recreate the userpref.dat file manually. When you launch sage 50 and log into the company file, the program automatically looks for a usrepref.dat file in the folder that contains the company file. If it cannot locate such a file, then it creates a new one.<\/p>\n\n<\/div>\n\t\t<\/div>\n\n<div class=\"wp-block-ub-content-toggle-accordion\" style=\"border-color: #f1f1f1; \" id=\"ub-content-toggle-panel-block-\">\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-title-wrap\" style=\"background-color: #f1f1f1;\" aria-controls=\"ub-content-toggle-panel-2-1c12c842-202e-444c-b6a7-e2a3af714764\" tabindex=\"0\">\n\t\t\t<h4 class=\"wp-block-ub-content-toggle-accordion-title ub-content-toggle-title-1c12c842-202e-444c-b6a7-e2a3af714764\" style=\"color: #000000; \">Will I have to recreate the settings for my company file if I delete the userpref.dat file?<\/h4>\n\t\t\t<div class=\"wp-block-ub-content-toggle-accordion-toggle-wrap right\" style=\"color: #000000;\"><span class=\"wp-block-ub-content-toggle-accordion-state-indicator wp-block-ub-chevron-down\"><\/span><\/div>\n\t\t<\/div>\n\t\t\t<div role=\"region\" aria-expanded=\"false\" class=\"wp-block-ub-content-toggle-accordion-content-wrap ub-hide\" id=\"ub-content-toggle-panel-2-1c12c842-202e-444c-b6a7-e2a3af714764\">\n\n<p>Yes, you will. Since this file contains all the configuration details, you\u2019ll have to reconfigure all of the settings. However, your accounting data and chart of accounts settings are retained in the company file, so they won\u2019t be affected by the changes that you make to the userpref.dat file.<\/p>\n\n<\/div>\n\t\t<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Sage I\/O error in variable length part of record that occurs when the preferences file for the accounting software is damaged. So when you launch Sage 50, the program fails to parse the data in the preferences file and throws an error. One easy way to fix the Sage 50 I\/O error is to delete&hellip;&nbsp;<a href=\"https:\/\/www.bigxperts.com\/sage\/resolve-sage-50-io-error-variable-length\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Resolve Sage 50 Error: \u201cI\/O in Variable Length Part of Record\u201d in .DAT File<\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":82532,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-82531","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sage-errors"],"featured_image_src":"https:\/\/www.bigxperts.com\/sage\/wp-content\/uploads\/2022\/10\/Sage-Error-IO-Error-in-variable-length-part-of-record-in-.DAT-file.jpg","author_info":{"display_name":"Rick","author_link":"https:\/\/www.bigxperts.com\/sage\/author\/robert\/"},"uagb_featured_image_src":{"full":["https:\/\/www.bigxperts.com\/sage\/wp-content\/uploads\/2022\/10\/Sage-Error-IO-Error-in-variable-length-part-of-record-in-.DAT-file.jpg",820,380,false],"thumbnail":["https:\/\/www.bigxperts.com\/sage\/wp-content\/uploads\/2022\/10\/Sage-Error-IO-Error-in-variable-length-part-of-record-in-.DAT-file-150x150.jpg",150,150,true],"medium":["https:\/\/www.bigxperts.com\/sage\/wp-content\/uploads\/2022\/10\/Sage-Error-IO-Error-in-variable-length-part-of-record-in-.DAT-file-300x139.jpg",300,139,true],"medium_large":["https:\/\/www.bigxperts.com\/sage\/wp-content\/uploads\/2022\/10\/Sage-Error-IO-Error-in-variable-length-part-of-record-in-.DAT-file-768x356.jpg",768,356,true],"large":["https:\/\/www.bigxperts.com\/sage\/wp-content\/uploads\/2022\/10\/Sage-Error-IO-Error-in-variable-length-part-of-record-in-.DAT-file.jpg",820,380,false],"1536x1536":["https:\/\/www.bigxperts.com\/sage\/wp-content\/uploads\/2022\/10\/Sage-Error-IO-Error-in-variable-length-part-of-record-in-.DAT-file.jpg",820,380,false],"2048x2048":["https:\/\/www.bigxperts.com\/sage\/wp-content\/uploads\/2022\/10\/Sage-Error-IO-Error-in-variable-length-part-of-record-in-.DAT-file.jpg",820,380,false],"neve-blog":["https:\/\/www.bigxperts.com\/sage\/wp-content\/uploads\/2022\/10\/Sage-Error-IO-Error-in-variable-length-part-of-record-in-.DAT-file.jpg",820,380,false],"web-stories-poster-portrait":["https:\/\/www.bigxperts.com\/sage\/wp-content\/uploads\/2022\/10\/Sage-Error-IO-Error-in-variable-length-part-of-record-in-.DAT-file-640x380.jpg",640,380,true],"web-stories-publisher-logo":["https:\/\/www.bigxperts.com\/sage\/wp-content\/uploads\/2022\/10\/Sage-Error-IO-Error-in-variable-length-part-of-record-in-.DAT-file-96x96.jpg",96,96,true],"web-stories-thumbnail":["https:\/\/www.bigxperts.com\/sage\/wp-content\/uploads\/2022\/10\/Sage-Error-IO-Error-in-variable-length-part-of-record-in-.DAT-file-150x70.jpg",150,70,true]},"uagb_author_info":{"display_name":"Rick","author_link":"https:\/\/www.bigxperts.com\/sage\/author\/robert\/"},"uagb_comment_info":0,"uagb_excerpt":"Sage I\/O error in variable length part of record that occurs when the preferences file for the accounting software is damaged. So when you launch Sage 50, the program fails to parse the data in the preferences file and throws an error. One easy way to fix the Sage 50 I\/O error is to delete&hellip;&nbsp;Read&hellip;","_links":{"self":[{"href":"https:\/\/www.bigxperts.com\/sage\/wp-json\/wp\/v2\/posts\/82531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bigxperts.com\/sage\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bigxperts.com\/sage\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bigxperts.com\/sage\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bigxperts.com\/sage\/wp-json\/wp\/v2\/comments?post=82531"}],"version-history":[{"count":1,"href":"https:\/\/www.bigxperts.com\/sage\/wp-json\/wp\/v2\/posts\/82531\/revisions"}],"predecessor-version":[{"id":87238,"href":"https:\/\/www.bigxperts.com\/sage\/wp-json\/wp\/v2\/posts\/82531\/revisions\/87238"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bigxperts.com\/sage\/wp-json\/wp\/v2\/media\/82532"}],"wp:attachment":[{"href":"https:\/\/www.bigxperts.com\/sage\/wp-json\/wp\/v2\/media?parent=82531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bigxperts.com\/sage\/wp-json\/wp\/v2\/categories?post=82531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bigxperts.com\/sage\/wp-json\/wp\/v2\/tags?post=82531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}