Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

XML.Import.ErrorCount

Queries error counter.

Component Version macOS Windows Linux Server iOS SDK
XML 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "XML.Import.ErrorCount" )

Parameters

none

Result

Returns number or error.

Description

Queries error counter.
Should be zero if we had no errors while importing.

Examples

Check for errors after an XML import:

Set Variable [ $r ; Value: MBS( "XML.Import"; $xml; Get( FileName ); "Import" ) ]
# wait for the import to finish with XML.Import.Status first
# should be zero if all records were imported
Set Variable [ $errors ; Value: MBS( "XML.Import.ErrorCount" ) ]
If [ $errors > 0 ]
    Show Custom Dialog [ "Import" ; $errors & " errors:¶" & MBS( "XML.Import.Errors" ) ]
End If

See also

Release notes

Blog Entries

This function is free to use.

Created 18th June 2019, last changed 6th November 2026


XML.Import.Cancel - XML.Import.Errors


MarkDown version: XMLImportErrorCount.md