Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-5047

Error 500 on saving a segment with empty target (into T5Memory)

XMLWordPrintable

    • Medium
    • Don't send segments with empty targets to t5memory on update in editor

      Problem

      On saving segments with empty target it can happen that you get an error 500

      Error whilst saving or reading data. Please contact our support team!
      Server Message: 500 Internal Server Error:
      Error: Missing target text

      how this error can be reproduced:
      take a segment, which has already an entry in T5Memory. Then simply delete the complete target and save the segment.

      What was the background why someone wanted to save a segment with an empty target. Root problem was, that segmentation was not very good. There was a sentence which was splitted in two part like (see attached file TRANSLATE-5047.xml):

      <segment>nachdem es ausführlich überprüft worden</segment>
      <segment>ist</segment>
      

      On translation, the complete translation was assigned to the first segment "after it has been thoroughly checked" and then the second segment was wanted to be empty, like this:

      But if there is already an entry for the second segment in the TM, the above mentioned error occurs, when deleting target of the second segment.

      Solution

      Either it should be possible to write entries with empty target-language into T5Memory.
      Or it should be possible to "ignore" complete segments in T5.

        1. Bildschirmfoto 2025-10-13 um 12.36.15.png
          17 kB
          Stephan Bergmann
        2. TRANSLATE-5047.xml
          0.1 kB
          Stephan Bergmann

            sanya@mittagqi.com Sanya Mikhliaiev
            Stephan Stephan Bergmann
            Aleksandar Mitrev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: