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
Find: \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):
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.