Wikis - Page

Troubleshooting: Encountered an exception while trying to read rule pack

0 Likes

If you have imported rulepacks but got the following exception when scan source files, such as
” Encountered an exception while trying to read rule pack C:\ Program Files\Fortify\Fortify_SCA_and_Apps_22.2.1\Core\config\rules\site.xml”,
You can try the following steps to troubleshoot the error.

1.Use the the following command line to check if you imported the Rulepacks correctly:
fortifyupdate -showInstalledRules --Displays the currently installed Rulepacks including any custom rules or metadata.
fortifyupdate -showInstalledExternalMetadata --Displays the currently installed external metadata.
#Please make sure that run fortifyupdate as an administrator on Windows.


2.If the version info is not correct, you can remove the extra files under C:\ Program Files\Fortify\Fortify_SCA_and_Apps_22.2.1\Core\config\rules\, and run fortifyupdate commandline to import the correct rulepacks again.
fortifyupdate -import <file>.zip
Please note, backup the rulepacks related folders(\rules\, \ExternalMetadata\,\customrules\) before you execute fortifyupdate commandline.

Labels:

Support Tips/Support Tips/Knowledge Docs
Support Tips/Knowledge Docs
Comment List
Related
Recommended