How to verify if database import or export by API has been successful

Dear all,

according to the documentation here (developers.rws.com/.../Sdl.MultiTerm.TMO.Interop.ImportDefinition.ProcessImport.html, there's no return value from the ProcessImport method.
Unfortunately, it's not clear to me, how to verify, if an import or export has been successful by using the API.
How is it designed by RWS to be able to verify, if an import or an export has been successful?

We're using MultiTerm 2024 SR1 - 18.1.2.3594 and GroupShare-/MultiTerm-Server "GS: 15.2.0.1904 - GS 2020 SR2"

If you have any further questions, please don't hesitate to let me know.
Thank you very much in advance for your support.


Best regards and have a nice day.
Nils

Parents
  • Dear all,

    as there is a log file, written by the import process, I like to know, what strings are possible at the end, mentioning, if the import has been successful or not.

    Currently, it seems to me that in case of a successful import at the end of the log file, there are only two lines after the last "Entry number x (x) replaced existing entry." mentioning the start and endtime of the process. Unfortunately, there seem to be no information, if the import has been successful or not.

    Please be so kind to let me know, how to receive the information from the log file, if the import has been successful. Which entry is written in case of a successful and which in case of an unsuccessful import?

    Thank you very much in advance.

    Best regards
    Nils

  • Hi Nils,

    You may need to get this information implicitly from the log file. It has this section at the end:

    Total entries processed: 0
    Total entries added: 0
    Total entries merged: 0
    Total entries omitted: 0
    Total entries written to the output file: 0

    Depending on the options you choose for the import, you will get the info from all of these lines. For instance, if you decide to write non-imported entries to the output file, then the final line will have information on that. Of course the "Total entries added" line will the the most important one. If it says 0, you can be sure the import was not successful.

    For these more advanced product questions, it can be beneficial to contact our support team, which is a good option in case your organization has a support and maintenance agreement with us. This will ensure faster replies, and the team also typically works with us on any questions they cannot answer.

    Thanks, Daniel

    Daniel Brockmann
    Team Trados @ RWS

  • Good morning  ,

    thank you very much for your reply and your explanations.

    Yes, we already have a support and maintenance agreement with you, but according to support this is not something that they handle in support unfortunately.

    The log file, which is created during the import looks like:

    "General information:
    Import definition name:
    Import definition name: DBName
    Import file: c:\tmp\DBName.xml
    Import log file: c:\tmp\DBName.log
    Exclusion file: c:\tmp\ausschluss.xcl
    Exclusion file: true
    Exclusion file: true
    Exclusion file: false
    Exclusion file: true

    Filter settings:
    Import all entries: Synchronize entries on entry number

    Synchronize entries on entry number:
    Entry number exists in the target termbase:
    Import all entries: Overwrite existing entry with import entry
    Entry number does not exist in the target termbase:
    Import all entries: Add import entry as new

    ...

    Entry number XYZ (XYZ) replaced existing entry.

    [start date] [start time]
    [end date] [end time]"

    I've copied all the lines, from "Entry number XYZ" to the end of the file, completely. There isn't any further information between the "Entry number" line and the two last lines which contains date and time. Unfortunately, the information like "Total entries processed", etc. is missing. Thinking

    Please be so kind to have a look at this and let me know, how to get these information included in the log file.
    Thank you very much in advance

    Best regards and have a nice day.
    Nils

  • Thanks Nils - can I ask you to run the import via the user interface and see if you get a different log file with these additional lines? I seem to always get these lines when doing the import via the UI, I am wondering if this might be different to calling it via the API.
    Thanks, Daniel

    Daniel Brockmann
    Team Trados @ RWS

Reply Children