Purpose (problem description)

The following page will guide you to deal with the problems you may face while trying to search a pattern and create search strings like.

  1. Reference Finder doesn't Match pattern to the text
  2. Number of occurrences found while searching in a file are more than the occurrences found in running the reference finder job
  3. Reference Finder searches the comments even the comments option is not selected. 

You have run the following scenario, leading to this use: 

  1. Create the reference finder
  2. Check if the pattern on file is matching.
    1. If the pattern doesn't match on file that means the issue is in the pattern and need to be modified
    2. If you find the string on file then continue to next step
  3. Create an after analysis "Reference Pattern search string" tool
  4. Run the Check tool results for the job created on "Reference Pattern search string"
  5. See if you get the expected strings as the results.
  6. If the expected links are not found then follow below action plan.
Observed in CAST AIP
Release
Yes/No
8.3.x(tick)
Observed on RDBMS
RDBMS
Yes/No
CSS(tick)

Action Plan
  1. If you have missing links post migration, you can check if your reference pattern dependency is selected in the dependencies. If its not selected then the links will not be computed and the missing reason could be one of the migration issues 
  2. Check the configuration of the reference pattern. Note that some links may miss because the corresponding code is commented, and the search in section did not enable the search in comments.
  3. Check that the regular expression complies with the standards cast follow for the RegEx. CAST currently uses the Boost (Perl) based Regular Expression "engine" refer to the topic " Regular Expressions "  in Cast Management Studio Offline Help. If it does not compile, correct your regular expression.
  4. In the Content enrichment tab, create in after analysis section a Reference Pattern Search String with the same Reference Pattern and click Check Tools Results
  5. If the results found in steps 1 and 2 are different, try different options in the Reference Pattern settings like:
    1. Try using a more simple regular expression and make sure that works, perhaps one with only a few wildcards.  If you get it to work, then you can expand the regular expression to be more generic for your particular use
    2. You may have some problems if you are using special keywords in your regular expression.  For example a shell reference pattern of "export CMD=([A-Za-z0-9]*)", includes an export keyword and can be fixed by using a pattern of "CMD=([A-Za-z0-9]*)"
    3. If you are using the Embedded Regular expression try to use the Simple regular expression to achieve same results. Embedded regular expression will create zones in the source with the Begin and End we give in the settings some time we may not find both of these "Begin" "End" expressions in same object so the reference engine might not create expected zones.
    4. Else enable search in string literals and run the Reference Pattern again
    5. Else try changing the language options and run the Reference Pattern again
    6. Else try changing the regexp using the different option and run the Reference Pattern again
  6. If the following troubleshooting did not help, as a temporary solution, create a custom reference finder as explained in the CMS Application - Dependencies - Reference Pattern Dependencies - Links not created - Tool to use in case the Reference Pattern tool is not working page
  7. For AMT Analyzers while running the reference finder job following files are created to store the references found in the LISA directory as it is indicated in the display of the "check tool" option of the Reference Pattern Search string tool
    1. The files in the above directory are created for J2EE technology. If these files are created then the problem is in the reference finder. If these files are not created then the issue is in the analyzer.

    2. There will be three different files in the web layers folder. <filename>.jsp.html, <filename>.jsp.js, <filename>.jsp.jsp
    3. See inside the files if you have the expected search string
      First check the Regular Expression in the initial jsp file


      Then try on the liles that are generated in the Weblayer :


      1. If you have the string
        1. The issue is because of the reference finder job
        2. The issue is may be because the search string is in two or more technologies in you code and only one type of technology is shown in the job results. This behavior is not currently supported by the reference finder
      2. If you dont have the reference in the files or the files are not created at all
        1. The issue is because of the analyzer
          1. If you dont find the Web Layers files specially for UA then the reason might be that the string you are searching is might not be part of the object created to check the same.
            1. Open enlighten
            2. Drag the object onto enlighten
            3. Press F11 to see the code for the object.
            4. The code considered for the object will be highlighted and the rest of the code will be greyed out.
            5. Select all the code which is highligted (There may be multiple parts of the code which is highlighted) and paste in a new file and search for the string in this file using "Check the expression on file"
              1. If you still get the string then the issue is in reference finder.
              2. If you dont find the string in this extracted file then the issue is in the analyzer or the expectation is wrong.
        2. Check the analysis logs if you have any warnings related to the files in which you are searching the string. If you find the warnings then try to fix them.
  8. If above points didn't help you understanding the problem please create a ticket to support with Relevant Input


Related Pages