Domino 9 und frühere Versionen > ND6: Entwicklung
Per DXLIMport mail in bestimmte MailDB kopieren
Don Pasquale:
Ich habe eine XML Datei und will diese in eine bestimmte
Mail DB kopieren.
Dim db ..
Dim session ...
Set db = New NotesDatabase( "", "mail\userxy.nsf" )
Set importer = session.CreateDXLImporter
importer.ReplaceDBProperties = True
importer.ReplicaRequiredForReplaceOrUpdate = False
importer.ACLImportOption = DXLIMPORTOPTION_REPLACE_ELSE_IGNORE
importer.DesignImportOption = DXLIMPORTOPTION_CREATE
Call importer.Import(stream, db)
Call stream.Close
Der Code läuft zwar durch, in dem Mailpostfach kommt aber nichts an.
Hat da jemand eine Idee ?
umi:
Hast Du schon mal probiert die anderen option des Importers zu setzen?
- InputValidation
- DocumentImportOption
- ExitOnFirstFatalError
Was sagt das importer.log ?
gruss
umi
Don Pasquale:
importer.ReplaceDBProperties = True
importer.ReplicaRequiredForReplaceOrUpdate = False
importer.ACLImportOption = DXLIMPORTOPTION_REPLACE_ELSE_IGNORE
importer.DesignImportOption = DXLIMPORTOPTION_CREATE
importer.InputValidationOption = VALIDATE_ALWAYS
importer.DocumentImportOption = DXLIMPORTOPTION_CREATE
obige option sind gesetzt.
Importer.log ?
Nie gehört, was ist das ?
umi:
Die Loginformationen des Importers.
z.B. print importer.log im Errorhandler einfügen oder nach importer.process()
gruss
Don Pasquale:
Hmm, die Importer log ist bei mir leer.
Navigation
[0] Themen-Index
[#] Nächste Seite
Zur normalen Ansicht wechseln