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

Reply
  • 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

Children