Hi all,
I was trying to import the Contoso Demo Data to Dynamics AX 2012 R3 with "Dynamics AX 2012 Test Data Transfer Tool (Beta)".
after I print the Command [DP.exe IMPORT “E:\DynamicsAXR3DemoData” MicrosoftDynamicsAx] the following error occurred:
Unhandled Exception: System.InvalidOperationException: ExecuteReader requires an
open and available Connection. The connection's current state is closed.
at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean as
ync)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehav
ior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletio
nSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehav
ior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, S
tring method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behav
ior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
at Microsoft.Dynamics.AX.Dataport.Extensions.<ExecuteLater>d__10`1.MoveNext()
in e:\bt\110700\Source\DataPort\Dataport\Library\Extensions.cs:line 230
at Microsoft.Dynamics.AX.Dataport.SqlHelper.<GetAllDatabases>d__22.MoveNext()
in e:\bt\110700\Source\DataPort\Dataport\Library\SqlHelper.cs:line 846
at Microsoft.Dynamics.AX.Dataport.SqlHelper.<GetAllConnections>d__18.MoveNext
() in e:\bt\110700\Source\DataPort\Dataport\Library\SqlHelper.cs:line 800
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at Microsoft.Dynamics.AX.Dataport.DataportApplication..ctor(String server) in
e:\bt\110700\Source\DataPort\Dataport\Model\DataportApplication.cs:line 38
at DP.Program.Execute(String currentDirectory, DataportDirection direction, S
tring directory, String database, String server, DataportAction action) in e:\bt
\110700\Source\DataPort\DP\Program.cs:line 108
at DP.Program.Main(String[] args) in e:\bt\110700\Source\DataPort\DP\Program.
cs:line 82
and the Data Transfer Tool stooped as it showen in the screen shoot
I used the tool in the AOS Server (windows Server 2012 r2)
anyone would help with this please?
thanks for your help,