web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Data Transfer Tool - DP.EXE running into an error while importing data to Dynamics AX 2012 R3

(0) ShareShare
ReportReport
Posted on by 205

Hi,

I am running into an error when i tried to import data by following the above steps given in the url https://community.dynamics.com/ax/b/thedynamicsblog/archive/2014/05/13/ax2012-r3-how-to-import-contoso-data-using-test-data-transfer-tool-beta.aspx and landed into an error as shown in below.

A connection with the Server=<Computer Name> cannot be established. Please check the
Server is accessible

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

I am running Dynamics AX 2012 R3 in Windows Server 2008 R2 with SQL Server 2008 R2. Both the AOS and SQL Server are running under the System Administrator account service.

Appreciate your valuable suggestion to resolve this issue and let me know for any details.

\Bala

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    299,403 Super User 2025 Season 2 on at
    RE: Data Transfer Tool - DP.EXE running into an error while importing data to Dynamics AX 2012 R3

    Hi Balasubramanian,

    This tool requires to have the SQL Server client tools installed on the local computer, and on the database server that you are transferring data to.

    You can read this on technet.microsoft.com/.../dn296450.aspx.

    If you are trying to use the tool it used SQL Server bulk copy tool. So this program should be on the SQL server and on the machine where you are using the TDTT.

    This error looks similar to the one I got and then I figured out I forgot to install the client tools.

  • Verified answer
    Balasubramanian Kumaran Profile Picture
    205 on at
    RE: Data Transfer Tool - DP.EXE running into an error while importing data to Dynamics AX 2012 R3

    Hi Andre,

    Thank you for your response.

    I have resolved this issue by specifying server name and instance name though my database server and client tools are on the local machine where the AOS is running

    but, it is domain controller.

    Thanks && Regards,

    Balasubramanian Kumaran

  • André Arnaud de Calavon Profile Picture
    299,403 Super User 2025 Season 2 on at
    RE: Data Transfer Tool - DP.EXE running into an error while importing data to Dynamics AX 2012 R3

    Hi Balasubramanian,

    Glad you solved your issue.

    Can you mark your own answer? Then this issue will get the status 'Answered'.

  • Balasubramanian Kumaran Profile Picture
    205 on at
    RE: Data Transfer Tool - DP.EXE running into an error while importing data to Dynamics AX 2012 R3

    Done!

  • Community Member Profile Picture
    on at
    RE: Data Transfer Tool - DP.EXE running into an error while importing data to Dynamics AX 2012 R3

    Thanks Subramani. I resolved the issue by adding sql server name with instance name.

  • Community Member Profile Picture
    on at
    RE: Data Transfer Tool - DP.EXE running into an error while importing data to Dynamics AX 2012 R3

    Balasubramanian Kumaran can you please elaborate yourself in more detail. I have specified the command and server but not working. Can you share the exact parameters of the command?

  • Balasubramanian Kumaran Profile Picture
    205 on at
    RE: Data Transfer Tool - DP.EXE running into an error while importing data to Dynamics AX 2012 R3

    Gaurav,

    Can you please share the command you have used and error messages during the execution, if any ?

    Thanks && Regards,

    Balasubramanian Kumaran

  • Community Member Profile Picture
    on at
    RE: Data Transfer Tool - DP.EXE running into an error while importing data to Dynamics AX 2012 R3

    Thanks its done now.

    I was not mentioning the name of database earlier but its fixed now.

    dp.exe import <path> MicrosoftDynamicsAX <server-name>

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Liquid error: parsing "/forums/thread/details/?threadid=87186e9e-2636-4d99-a022-229abc615ddb%27nvOpzp;%20AND%201=1%20OR%20(%3C%27%22%3EiKO))," - Too many )'s.