{"id":28548,"date":"2024-02-27T06:32:59","date_gmt":"2024-02-27T06:32:59","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/sagex3\/?p=28548"},"modified":"2024-11-26T10:24:34","modified_gmt":"2024-11-26T10:24:34","slug":"how-to-customize-the-trace-log-file-for-errors-and-success-messages","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/02\/27\/how-to-customize-the-trace-log-file-for-errors-and-success-messages\/","title":{"rendered":"How to customize the trace log file for errors and success messages"},"content":{"rendered":"\n<p>Trace files are extensively utilized in <a href=\"https:\/\/www.greytrix.com\/sage-x3-erp\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/www.greytrix.com\/sage-x3\/sage-x3-development\/\" rel=\"noreferrer noopener\">Sage X3<\/a> software, particularly during lengthy processes like Automatic Invoice Validation or Automatic Work Order Release. When a trace file is displayed, error lines appear in red text, allowing you to navigate through the errors.<\/p>\n\n\n\n<p>To customize a trace file, follow the below steps:<\/p>\n\n\n\n<p><strong>Step 1: <\/strong>We need to open the trace file using the &#8216;OUVRE_TRACE&#8217; function, as shown in the code below.<\/p>\n\n\n\n<p><strong>New Stuff:<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/02\/22\/how-to-show-comma-separated-value-for-single-or-multiple-fields-in-sage-x3-reports-using-crystal-report\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/02\/22\/how-to-show-comma-separated-value-for-single-or-multiple-fields-in-sage-x3-reports-using-crystal-report\/\" rel=\"noreferrer noopener\">How to show comma-separated value for single or multiple fields in Sage X3 reports using crystal report<\/a><\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/02\/Open_Trace_Log_File_Code-1024x51.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/02\/Open_Trace_Log_File_Code-1024x51.png\" alt=\"[Open_Trace_Log_File_Code]\"><\/a><\/center>\n<font size=\"2\"><center>[Open_Trace_Log_File_Code]<\/center><\/font>\n\n\n\n<p><strong>Step 2:<\/strong> After opening the log file, we can insert any messages as per our requirements.<\/p>\n\n\n\n<p><strong>Note: <\/strong>To customize a trace file, it&#8217;s essential to understand the color codes associated with different messages:<\/p>\n\n\n\n<p>0: Used to display messages in black color.<br>1: Used to indicate error messages in red color.<br>-1: Used to present messages in green color.<br>-2: Used to showcase messages in blue color.<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> Insert a message line using the &#8216;ECR_TRACE&#8217; function. This function takes two parameters: the first parameter contains the message, and the second contains the color code, as shown in the code below.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/02\/Inserting_Message_Trace_Log_File_Code-1024x165.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/02\/Inserting_Message_Trace_Log_File_Code-1024x165.png\" alt=\"[Inserting_Message_Trace_Log_File_Code]\"><\/a><\/center>\n<font size=\"2\"><center>[Inserting_Message_Trace_Log_File_Code]<\/center><\/font>\n\n\n\n<p><strong>Step 4:<\/strong> After inserting messages, we need to close this trace file using the &#8216;FERME_TRACE&#8217; function.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/02\/Close_Trace_Log_File_Code-1024x52.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/02\/Close_Trace_Log_File_Code-1024x52.png\" alt=\"[Close_Trace_Log_File_Code]\"><\/a><\/center>\n<font size=\"2\"><center>[Close_Trace_Log_File_Code]<\/center><\/font>\n\n\n\n<p><strong>Step 5:<\/strong> Now we can display our trace log file using the &#8216;LEC_TRACE&#8217; function.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/02\/Display_Trace_Log_File_Code-1024x44.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/02\/Display_Trace_Log_File_Code-1024x44.png\" alt=\"[Display_Trace_Log_File_Code]\"><\/a><\/center>\n<font size=\"2\"><center>[Display_Trace_Log_File_Code]<\/center><\/font>\n\n\n\n<p><strong>Step 6: <\/strong>If you want to delete this trace file, you can use the &#8216;SUPP_TRACE&#8217; function.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/02\/Delete_Trace_Log_File_Code-1024x46.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/02\/Delete_Trace_Log_File_Code-1024x46.png\" alt=\"[Delete_Trace_Log_File_Code]\"><\/a><\/center>\n<font size=\"2\"><center>[Delete_Trace_Log_File_Code]<\/center><\/font>\n\n\n\n<p>After executing this script, you can view the log file as depicted in the screenshot below.<\/p>\n\n\n\n<p><strong>Note:<\/strong> If you added an error message using the code &#8216;1&#8217; in the &#8216;ECR_TRACE&#8217; function, you will receive a popup indicating the number of errors before the log file.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/02\/Number_Of_Errors.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/02\/Number_Of_Errors.png\" alt=\"[Number_Of_Errors]\"><\/a><\/center>\n<font size=\"2\"><center>[Number_Of_Errors]<\/center><\/font>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/02\/Log_Reading_Screen-1024x283.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/02\/Log_Reading_Screen-1024x283.png\" alt=\"[Log_Reading_Screen]\"><\/a><\/center>\n<font size=\"2\"><center>[Log_Reading_Screen]<\/center><\/font>\n\n\n\n<p>By following the above steps, we can customize the trace log file for errors and success messages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>About Us<\/strong><\/h2>\n\n\n\n<p>Greytrix \u2013 a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.<\/p>\n\n\n\n<p id=\"block-28013e99-0882-44c6-b705-7b16c85053b2\">Greytrix&nbsp;has some unique integration solutions developed for&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-crm\/\">Sage CRM<\/a>&nbsp;with Sage ERPs&nbsp;namely&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-x3-erp\/\">Sage X3<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-intacct\/\">Sage Intacct<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-100-erp\/\">Sage 100<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-500-erp\/\">Sage 500<\/a>,&nbsp;and&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-300-erp\/\">Sage 300<\/a>. We also offer best-in-class&nbsp;Sage ERP&nbsp;and&nbsp;Sage CRM&nbsp;customization and development services&nbsp;to&nbsp;Business&nbsp;Partners,&nbsp;End&nbsp;Users, and Sage PSG worldwide. Greytrix&nbsp;helps in&nbsp;the migration of Sage CRM from&nbsp;Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes&nbsp;addons like&nbsp;&nbsp;Greytrix Business Manager,&nbsp;Sage CRM Project Manager,&nbsp;Sage CRM Resource Planner,&nbsp;Sage CRM Contract Manager,&nbsp;Sage CRM Event Manager,&nbsp;Sage CRM Budget Planner,&nbsp;Gmail Integration,&nbsp;Sage CRM Mobile Service Signature,&nbsp;Sage CRM CTI Framework.<\/p>\n\n\n\n<p id=\"block-4bc42a09-fb13-4598-8137-ce5f7b91ce28\">Greytrix is a recognized&nbsp;Sage Champion Partner&nbsp;for GUMU&#x2122; Sage X3 \u2013 Sage CRM integration listed on&nbsp;<a href=\"https:\/\/www.sage.com\/marketplace\/asb_ListingDetail?listingId=a1h24000007PC3aAAG\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Marketplace<\/a>&nbsp;and Sage CRM \u2013 Sage Intacct integration listed on&nbsp;<a href=\"https:\/\/marketplace.intacct.com\/MPListing?lid=a2D0H000007kiHyUAI\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Intacct Marketplace<\/a>. The&nbsp;<a href=\"https:\/\/www.greytrix.com\/gumu\/\" target=\"_blank\" rel=\"noreferrer noopener\">GUMU&#x2122; Cloud framework<\/a>&nbsp;by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.<\/p>\n\n\n\n<p id=\"block-76376301-1c3e-4250-8a09-727595a606f0\">For more information on our integration solutions, please contact us at&nbsp;<a href=\"mailto:sage@greytrix.com\">sage@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trace files are extensively utilized in Sage X3 software, particularly during lengthy processes like Automatic Invoice Validation or Automatic Work Order Release. When a trace file is displayed, error lines appear in red text, allowing you to navigate through the errors. To customize a trace file, follow the below steps: Step 1: We need to\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/02\/27\/how-to-customize-the-trace-log-file-for-errors-and-success-messages\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,13],"tags":[4040,863,1193,4039,4038,4037],"class_list":["post-28548","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","category-integration","tag-errors","tag-functions","tag-log","tag-messages","tag-success","tag-trace-log"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/28548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=28548"}],"version-history":[{"count":10,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/28548\/revisions"}],"predecessor-version":[{"id":30255,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/28548\/revisions\/30255"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=28548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=28548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=28548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}