Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Alma

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Alma
    3. Knowledge Articles
    4. Normalization rules: "The file cannot be saved due to a compilation error"

    Normalization rules: "The file cannot be saved due to a compilation error"

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Question
    2. Answer
      1. Example:
    • Product: Alma

    Question

    After copying and pasting a normalization rule from the documentation, trying to preview or save the rule results in the following message:

    "The file cannot be saved due to a compilation error:[13,48]: [ERR 105] Line 13:48 required (...)+ loop did not match anything at input '' [16,0]: [ERR 102] Line 16:0 mismatched input '' [13,48]: [ERR 101] Line 13:48 no viable alternative at input 'z' in rule "remove subfield z from 852 field?€? when (eval ( true )) then NormalizationUtil.removeSubField(targetObj," "

    What is causing this error?

    Answer

    The problem is caused by an invalid character. This is most commonly caused by formatted curved quotation marks. These should be replaced by a straight quotation marks.

    Example:

    rule “remove subfield b from 900 field”

    The above example is using formatted left and right quotation marks.

    This should be corrected to use straight quotation marks:

    rule "remove subfield b from 900 field"

     


    • Article last edited: 08-Oct-2021
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Merge Rules work for Import Profiles but not Copy Cataloging (External Resources)
      • Normalization task for Generate Control Number not working in Copy Cataloging (import from external source)
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Documentation
      Language
      English
      Product
      Alma
    2. Tags
      This page has no tags.
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved