AGRIS Customer Documentation
Troubleshooting Tool: Alternate AGRIS Error Log view using Notepad++
There may be cases where a deep dive into the AGRIS Error Log is required. Notepad++ provides advanced functionality to format/filter data and help with this process in ways the standard or summary error log reports in AGRIS cannot. The screenshots in the following sections demonstrate some of this functionality.
RECOMMENDATION:Ā To avoid making permanent changes to DATASETS\Errorlog.AGR, it is advisable to make a copy of Errorlog.AGR and run these commands against the copy.Ā
Ā
I. Condense individual errors to a single line (one error per line starting with date/time stamp):
Ctrl + H to open the Find/Replace window
Change the Search Mode radio selection to Extended.
Find what:Ā \r\n
Replace: Ā Ā (leave blank)
Click Replace All
Result: This will remove all CR LF
Find:Ā ]\u002A
Replace:Ā ]\u002A\r\n
Click Replace All
Result:Ā This will reformat the results with one error per line starting with date/time stamp in chronological order. Screen will initially appear blank and it will be necessary to scroll left to see results.
Close the Find/Replace window.Ā
NOTE:Ā This can be time-consuming with large files (single-thread).Ā It is recommended to run error log report for the timeframe in question and then perform the find/replace operations via Notepad++ on that report.
NOTE:Ā A macro can be recorded to save these 2 find/replace operations and run them back-to-back.Ā
Macro > Start Recording
Complete steps 1-8
Macro > Stop Recording
Macro > Save Current Recorded Macro
Provide a name for the Macro and click OK
When opening an error log in the future, go to Macro and select the previously recorded macro to execute it:
Error log before performing these steps:
Error log after performing these steps:
II. Remove all lines containing specific text:
Complete Section I (Condense individual errors to a single line)
Open the Mark (Find) window by clicking Ctrl + M
Enter the desired text in āFind whatā field
Check the box that says Bookmark line
Click Mark All
Close the Mark/Find window
Click Search > Bookmark > Remove Bookmarked Lines
NOTE:Ā This can be especially helpful if looking for specific 214* errors since the error number filter in AGRIS only allows 4 characters.Ā
Before:
After (all lines referencing āPSQL #161ā have been removed) :
Ā
III. Only show lines containing certain text:
Complete Section I (Condense individual errors to a single line)
Open the Mark (Find) window by clicking Ctrl + M
Enter the desired text in āFind whatā fieldĀ
Check the box that says Bookmark line
Click Mark All
Close the Mark/Find window
Click Search > Bookmark > Remove Non-Bookmarked Lines
Before:
After (only lines referencing āBASIC #5554ā remain):
Ā
Related content
3820 Mansell Road, Suite 350 ⦠Alpharetta, GA 30022 ⦠www.GreenstoneSystems.com
Ā© 2011 - 2024 Cultura Technologies LLC. All Rights Reserved Worldwide. Ā Products and company names mentioned herein may be trademarks or registered trademarks of their respective owners.