Spanning Code Error

I am getting an error code "The SpanningCodeStart is placed after its corresponding SpanningCodeEnd" when I try to "Save Target As". Does anyone have any idea how to deal with this problem please? Thank you!
Error dialog box from Trados Studio with a red cross symbol, stating 'Failed to save target content: The SpanningCodeStart is placed after its corresponding SpanningCodeEnd.' with options for Knowledge Base and Community.



Generated Image Alt-Text
[edited by: RWS Community AI at 7:08 AM (GMT 0) on 10 Nov 2024]
emoji
  • "Probability score": 0.7

    "Question improvement suggestion": To help us provide a more accurate solution, please provide the following additional information: 1. The exact version of Trados Studio you are using. 2. The steps you took before encountering the error. 3. Any recent changes you made to the system or software. 4. The operating system and its version you are using.

    In the meantime, based on the information you have provided, here is a suggested answer to your question:

    Hello,

    The error message you're encountering typically occurs when there's a mismatch in the tags in your source document. This can happen if a start tag is placed after its corresponding end tag.

    Here are some steps you can try to resolve this issue:

    Step 1: Open the problematic segment in Trados Studio and check the tags. Make sure that each start tag has a corresponding end tag and they are placed in the correct order.

    Step 2: If the issue persists, you can try the workarounds you mentioned.

    Workaround 1:

    1. Open the file in InDesign.

    2. Click on File > Save As.

    3. Open the new file in Trados Studio.

    Workaround 2:

    1. In InDesign, change all of the custom fonts used in the file.

    2. When prompted that there are missing Custom Fonts, click on Replace Fonts.

    3. After you have replaced the missing fonts, save the file and open it in Trados Studio.

    Please try these steps and let us know if the issue persists.

    I hope this answer addressed your question. If not, please reject the answer, add the question improvement suggestion information, and click the RWS Community AI checkbox on the right to try again.

    RWS Community AI

    emoji
  •  

    The AI answer may not be helpful, and this might be improved with the addition of more relevant information.  For example:

    • what version of Trados Studio?  The full version number.
    • what filetype were you working with?
    • did you create the project yourself or was it the result of opening a package, or an sdlxliff someone sent you?
    • what's the full error message and not just a headline screenshot?

    Some of these things would be provided if you gave us the underlying error message, or stack.  To get this consider what's in your image:

    Error dialog box from Trados Studio with a message: Failed to save target content: The SpanningCodeStart is placed after its corresponding SpanningCodeEnd. Four numbered links below: 1 Community, 2 Knowledge Base, 3 Save Report, 4 View Report.

    I numbered the links at the bottom so I can explain what they are for:

    1. this will search the community for similar errors based on the full error details and not just the headline
    2. this will search the knowledgebase for similar errors based on the full error details and not just the headline
    3. this will allow you to save the full error stack as an xml file to your computer.  Then you can add this file to your post and we will have a lot more to go on.
    4. this will let you read the full error stack without saving it.  Sometimes useful as the message can sometimes make it very clear where the problem lies... other times it needs a developer to interpret!

    So, can you try some of these to see if it helps, and if not please provide the full error stack and any other details that you consider helpful when you think about it a bit more.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 8:20 AM (GMT 0) on 12 Nov 2024]
  • Thanks very much for your help Paul. In fact that's exactly what I did in the end. I knew it was a tag error and looking in the full error stack it gave me the number of the tag so I went through manually and found it. Is there any way of searching for a tag at all rather than going through manually?
    I use Studio 2022 and the document was an xlf file provided by my client. Thanks again,

    Anna

    emoji
  •   

    Is there any way of searching for a tag at all rather than going through manually?

    Ensure the Tag verification check box is ticked in your Project Settings:

    Screenshot of Trados Studio Project Settings showing the Verification section with 'Tag verification' checkbox ticked.

    Then press F8 and when the Verify is done, check the list of errors/warnings. If there is a tag error, the report will state the segment; double-clicking will take you directly to the offending segment.

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 8:59 AM (GMT 0) on 12 Nov 2024]
  • Thank you. I'll try that next time. The only problem is that all the tag problems come up with that (including tags removed on purpose etc.) and it's still really hard to find the problem for the Spanning Code. The error stack gave me the actual name of the tag that was causing the problem and I was wondering if there's a way to search for a particular tag. If not your solution will cut it right down at least so thanks a lot!

    emoji