Hi André,
okay if that works for you I'll try it in a contoso Environment to figure out where the differences are.
to answer your questions: I installed the latest Version of TDTT from Information source. I imported the xpo and created the XML file. After that I copied it to the lists folder and run the Export in a command window running with admin priviliges.
During the export the error Count is increasing and it Fails for 20 tables. The only info I get is in the DPLog.xml
It Looks like this: (German Error)
<item>
<status>Failed</status>
<message>Microsoft.Dynamics.AX.Dataport.BulkCopyException:
Kopiervorgang wird gestartet...
SQLState = S1000, NativeError = 0
Error = [Microsoft][SQL Server Native Client 11.0]Warnung: Beim BCP-Import mit einer Formatdatei werden leere Zeichenfolgen in durch Trennzeichen getrennten Spalten in NULL konvertiert.
1 Zeilen kopiert.
Netzwerkpaketgröße (Bytes): 4096
Zeit (ms.) gesamt: 32 Durchschnitt: (31.25 Zeilen pro Sek.)
bcp "SELECT [INVENTBATCHID], [EXPDATE], [ITEMID], [PRODDATE], [DESCRIPTION], [PDSBESTBEFOREDATE], [PDSCOUNTRYOFORIGIN1], [PDSCOUNTRYOFORIGIN2], [PDSDISPOSITIONCODE], [PDSFINISHEDGOODSDATETESTED], [PDSINHERITBATCHATTRIB], [PDSINHERITEDSHELFLIFE], [PDSSAMELOT], [PDSSHELFADVICEDATE], [PDSUSEVENDBATCHDATE], [PDSUSEVENDBATCHEXP], [PDSVENDBATCHDATE], [PDSVENDBATCHID], [PDSVENDEXPIRYDATE], [DATAAREAID], [RECVERSION] = 1, [PARTITION], [RECID] FROM [AX2012_R2_DB_TEMPLATE]..[INVENTBATCH]" queryout "C:\TDTT\TEMPLATE2DEV20140908\INVENTBATCH.out" -E -b 100 -e "C:\TDTT\TEMPLATE2DEV20140908\INVENTBATCH.err" -w -S XYZ-S-SQLAX -T -t "#|EOC|#" -r #|EOR|#\n
bei Microsoft.Dynamics.AX.Dataport.BulkCopy.ExecuteBCPCall(String args) in e:\bt\110700\Source\DataPort\Dataport\Library\BulkCopy.cs:Zeile 331.
bei Microsoft.Dynamics.AX.Dataport.BulkCopy.WriteOutFile(String serverName, SqlTableName table, String query, String folder) in e:\bt\110700\Source\DataPort\Dataport\Library\BulkCopy.cs:Zeile 274.
bei Microsoft.Dynamics.AX.Dataport.DataportQueryExtensions.WriteBulkCopyFiles(IDataportQuery query, String database, String server, String folder) in e:\bt\110700\Source\DataPort\Dataport\Model\DataportQuery.cs:Zeile 94.
bei Microsoft.Dynamics.AX.Dataport.DataportQueue.<>c__DisplayClass8.<>c__DisplayClassc.<ProcessItem>b__7() in e:\bt\110700\Source\DataPort\Dataport\Model\DataportQueue.cs:Zeile 240.
bei Microsoft.Dynamics.AX.Dataport.Functional.<>c__DisplayClass1.<Retry>b__0() in e:\bt\110700\Source\DataPort\Dataport\Library\Functional.cs:Zeile 28.
bei Microsoft.Dynamics.AX.Dataport.DataportQueue.<>c__DisplayClass8.<ProcessItem>b__6(Object state) in e:\bt\110700\Source\DataPort\Dataport\Model\DataportQueue.cs:Zeile 260.</message>
<direction>Export</direction>
<action>Overwrite</action>
<database>AX2012_R2_DB_TEMPLATE</database>
<table>INVENTBATCH</table>
<targetTable>INVENTBATCH</targetTable>
<folder>C:\TDTT\TEMPLATE2DEV20140908</folder>
</item>
As mentioned above I can get rid of These errors either by filling the columns that contain NULL values with empty strings or 0, or by excluding them from the export.
Kind regards,
Thomas