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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Async client silent installation fails but running from set up passes

(0) ShareShare
ReportReport
Posted on by 690

Hi all,


I am trying to install Async client through silent installation. The OS is Windows 7. This machine is a standalone machine and not a part of any domain. I though do not get any error if i run with same parameters from AX Setup.exe (UI wizard)

I am passing the parameters as mentioned in this link. I get an error (Shown below). On the same machine i tried using Setup.exe directly (UI) and used the same parameters and it succeded.

I am breaking my head over this for some time now but not able to figure out what is causing this. Seems to be failing when it calls the Configure. After searching all logs i could find the log in file CommerceDataExchangeAsyncClientConfigure2.txt. Looks like when it is searching the WINNT for local user and groups it is failing.

I have tried everything from running command prompt in elevated mode, to run as specific user to disabling UAC and also setting powershell execution policy to unrestricted but not able to what might be causing this.

I need this to be working as we plan to write scripts for installation for all POS clients.

Note: The same script works on a Windows 8.1 OS system without any issue (In domain)

Part of log file (CommerceDataExchangeAsyncClientConfigure2.txt) when error occurs (Silent Install)


Connecting to AsyncClientServer001\SQLEXPRESS

C:\Program Files (x86)\Microsoft Dynamics AX\60\CDX\Async Client\Tools>sqlcmd -S "AsyncClientServer001\SQLEXPRESS" -E -d "POSAsyncClientDB" -i "C:\Program Files (x86)\Microsoft Dynamics AX\60\CDX\Async Client\Tools\..\Database\ChannelMessageDatabase.sql" -o "C:\Users\admin\AppData\Local\Temp\POSAsyncClientDB-ChannelMessageDatabase.sql.log" -b
Creating role db_executor Finished creating role db_executor Creating table [dbo].[DATASTORE] Finished creating table [dbo].[DATASTORE] Creating table [dbo].[DOWNLOADSESSION] Finished creating table [dbo].[DOWNLOADSESSION] Creating table [dbo].[DOWNLOADSESSIONLOG] Finished creating table [dbo].[DOWNLOADSESSIONLOG] Adding index IX_DOWNLOADSESSIONLOG_DOWNLOADSESSIONID Creating table [dbo].[OFFLINEDATAEXPORTLOG] Finished creating table [dbo].[OFFLINEDATAEXPORTLOG] Creating stored procedure [dbo].[DELETEEXPIREDSESSIONS] Finished creating stored procedure [dbo].[DELETEEXPIREDSESSIONS]
3/12/2015 4:34:38 PM: Finished executing the command: C:\Users\admin\AppData\Local\Temp\POSAsyncClientDB-ChannelMessageDatabase.sql.bat
3/12/2015 4:34:39 PM: Found that this machine is not a domain controller. DomainRole: 0
3/12/2015 4:34:42 PM: ############### Error occured: ###############
3/12/2015 4:34:42 PM:

PSMessageDetails      :
Exception             : System.Management.Automation.MethodInvocationException:
                         Exception calling "Exists" with "1" argument(s): "The
                        network path was not found.
                        " ---> System.Runtime.InteropServices.COMException:
                        The network path was not found.
                        
                           at
                        System.DirectoryServices.DirectoryEntry.Bind(Boolean
                        throwIfFail)
                           at
                        System.DirectoryServices.DirectoryEntry.Exists(String
                        path)
                           at CallSite.Target(Closure , CallSite , RuntimeType
                        , Object )
                           --- End of inner exception stack trace ---
                           at System.Management.Automation.ExceptionHandlingOps
                        .CheckActionPreference(FunctionContext funcContext,
                        Exception exception)
                           at System.Management.Automation.Interpreter.ActionCa
                        llInstruction`2.Run(InterpretedFrame frame)
                           at System.Management.Automation.Interpreter.EnterTry
                        CatchFinallyInstruction.Run(InterpretedFrame frame)
                           at System.Management.Automation.Interpreter.EnterTry
                        CatchFinallyInstruction.Run(InterpretedFrame frame)
TargetObject          :
CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : COMException
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
ScriptStackTrace      : at CreateLocalNTGroup, C:\Program Files
                        (x86)\Microsoft Dynamics AX\60\CDX\Async
                        Client\Tools\Common-Configuration.ps1: line 543
                        at CreateWindowsGroup, C:\Program Files
                        (x86)\Microsoft Dynamics AX\60\CDX\Async
                        Client\Tools\Common-Configuration.ps1: line 776
                        at CreateLoginsUsersAndRoleMembers, C:\Program Files
                        (x86)\Microsoft Dynamics AX\60\CDX\Async
                        Client\Tools\Common-Database.ps1: line 73
                        at <ScriptBlock>, C:\Program Files (x86)\Microsoft
                        Dynamics AX\60\CDX\Async
                        Client\Tools\Deploy-Databases.ps1: line 170
                        at <ScriptBlock>, C:\Program Files (x86)\Microsoft
                        Dynamics AX\60\CDX\Async
                        Client\Tools\DeployAsyncClient.ps1: line 444
                        at <ScriptBlock>, C:\Program Files (x86)\Microsoft
                        Dynamics AX\60\CDX\Async
                        Client\Tools\Configure-CustomAction.ps1: line 141
                        at <ScriptBlock>, <No file>: line 1
                        at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}




Executed:
C:\Program Files (x86)\Microsoft Dynamics AX\60\CDX\Async Client\Tools\Deploy-Databases.ps1
Parameter: TopologyXmlFilePath Value: C:\Program Files (x86)\Microsoft Dynamics AX\60\CDX\Async Client\Tools\sc-topology-updated.xml
Parameter: SettingsXmlFilePath Value: C:\Program Files (x86)\Microsoft Dynamics AX\60\CDX\Async Client\Tools\sc-settings-updated.xml
Parameter: Verbose Value: True

Exiting with error code 2.
3/12/2015 4:34:42 PM: Exiting with error code 1.
3/12/2015 4:34:42 PM: ---------------------  Finished running the script "C:\Program Files (x86)\Microsoft Dynamics AX\60\CDX\Async Client\Tools\\DeployAsyncClient.ps1" with exit code: 1. ---------------------
3/12/2015 4:34:42 PM:

PSMessageDetails      :
Exception             : System.Management.Automation.RuntimeException:
                        Execution of the deployment script "C:\Program Files
                        (x86)\Microsoft Dynamics AX\60\CDX\Async
                        Client\Tools\\DeployAsyncClient.ps1" failed. Exit
                        code:1
TargetObject          : Execution of the deployment script "C:\Program Files
                        (x86)\Microsoft Dynamics AX\60\CDX\Async
                        Client\Tools\\DeployAsyncClient.ps1" failed. Exit
                        code:1
CategoryInfo          : OperationStopped: (Execution of th...ed. Exit
                        code:1:String) [], RuntimeException
FullyQualifiedErrorId : Execution of the deployment script "C:\Program Files
                        (x86)\Microsoft Dynamics AX\60\CDX\Async
                        Client\Tools\\DeployAsyncClient.ps1" failed. Exit
                        code:1
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
ScriptStackTrace      : at <ScriptBlock>, C:\Program Files (x86)\Microsoft
                        Dynamics AX\60\CDX\Async
                        Client\Tools\Configure-CustomAction.ps1: line 146
                        at <ScriptBlock>, <No file>: line 1
                        at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}




3/12/2015 4:34:42 PM: Rolling back the custom action due to the above error.
3/12/2015 4:34:42 PM: ---------------Run the uninstall script 'UnDeployAsyncClient.ps1' to roll-back custom action---------------
3/12/2015 4:34:42 PM: Executing script: "C:\Program Files (x86)\Microsoft Dynamics AX\60\CDX\Async Client\Tools\\UnDeployAsyncClient.ps1" C:\Program Files (x86)\Microsoft Dynamics AX\60\CDX\Async Client\Tools\sc-topology-updated.xml C:\Program Files (x86)\Microsoft Dynamics AX\60\CDX\Async Client\Tools\sc-settings-updated.xml
Saved final topology file at C:\Users\admin\AppData\Local\Temp\tmp5086.tmp
------------------------------------------
 Uninstalling Windows Service [CommerceDataExchangeAsyncClientService]

..........

Part of Log file (CommerceDataExchangeAsyncClientConfigure2.txt) when there in no error. Wizard setup


Connecting to AsyncClientServer001\SQLEXPRESS

C:\Program Files (x86)\Microsoft Dynamics AX\60\CDX\Async Client\Tools>sqlcmd -S "AsyncClientServer001\SQLEXPRESS" -E -d "POSAsyncClientDB" -i "C:\Program Files (x86)\Microsoft Dynamics AX\60\CDX\Async Client\Tools\..\Database\ChannelMessageDatabase.sql" -o "C:\Users\admin\AppData\Local\Temp\POSAsyncClientDB-ChannelMessageDatabase.sql.log" -b
Creating role db_executor Finished creating role db_executor Creating table [dbo].[DATASTORE] Finished creating table [dbo].[DATASTORE] Creating table [dbo].[DOWNLOADSESSION] Finished creating table [dbo].[DOWNLOADSESSION] Creating table [dbo].[DOWNLOADSESSIONLOG] Finished creating table [dbo].[DOWNLOADSESSIONLOG] Adding index IX_DOWNLOADSESSIONLOG_DOWNLOADSESSIONID Creating table [dbo].[OFFLINEDATAEXPORTLOG] Finished creating table [dbo].[OFFLINEDATAEXPORTLOG] Creating stored procedure [dbo].[DELETEEXPIREDSESSIONS] Finished creating stored procedure [dbo].[DELETEEXPIREDSESSIONS]
3/12/2015 5:54:44 PM: Finished executing the command: C:\Users\admin\AppData\Local\Temp\POSAsyncClientDB-ChannelMessageDatabase.sql.bat
3/12/2015 5:54:44 PM: Found that this machine is not a domain controller. DomainRole: 0
3/12/2015 5:54:47 PM: Group WinNT://AsyncClientServer001/RetailSynchClientDBUsers was found. Done.
found server 'AsyncClientServer001\SQLEXPRESS'
found database 'POSAsyncClientDB'
Adding windows based login to instance 'AsyncClientServer001\SQLEXPRESS', login name 'AsyncClientServer001\RetailSynchClientDBUsers', database 'POSAsyncClientDB'...
found server 'AsyncClientServer001\SQLEXPRESS'
found database 'POSAsyncClientDB'
Adding Sql user 'AsyncClientServer001\RetailSynchClientDBUsers' to instance 'AsyncClientServer001\SQLEXPRESS', database 'POSAsyncClientDB'...
found server 'AsyncClientServer001\SQLEXPRESS'
found database 'POSAsyncClientDB'
Adding Sql user 'AsyncClientServer001\RetailSynchClientDBUsers' role membership. Role 'db_datareader', database 'POSAsyncClientDB'...
3/12/2015 5:54:48 PM: Found that this machine is not a domain controller. DomainRole: 0
3/12/2015 5:54:48 PM: Group WinNT://AsyncClientServer001/RetailSynchClientDBUsers was found. Done.
found server 'AsyncClientServer001\SQLEXPRESS'
found database 'POSAsyncClientDB'
login 'AsyncClientServer001\RetailSynchClientDBUsers' already exists. Done.
found server 'AsyncClientServer001\SQLEXPRESS'
found database 'POSAsyncClientDB'
Sql user 'AsyncClientServer001\RetailSynchClientDBUsers' at instance 'AsyncClientServer001\SQLEXPRESS', database 'POSAsyncClientDB' already exists.
found server 'AsyncClientServer001\SQLEXPRESS'
found database 'POSAsyncClientDB'
Adding Sql user 'AsyncClientServer001\RetailSynchClientDBUsers' role membership. Role 'db_datawriter', database 'POSAsyncClientDB'...
3/12/2015 5:54:48 PM: Found that this machine is not a domain controller. DomainRole: 0
3/12/2015 5:54:48 PM: Group WinNT://AsyncClientServer001/RetailSynchClientDBUsers was found. Done.
found server 'AsyncClientServer001\SQLEXPRESS'
found database 'POSAsyncClientDB'
login 'AsyncClientServer001\RetailSynchClientDBUsers' already exists. Done.
found server 'AsyncClientServer001\SQLEXPRESS'
found database 'POSAsyncClientDB'
Sql user 'AsyncClientServer001\RetailSynchClientDBUsers' at instance 'AsyncClientServer001\SQLEXPRESS', database 'POSAsyncClientDB' already exists.
found server 'AsyncClientServer001\SQLEXPRESS'
found database 'POSAsyncClientDB'
Adding Sql user 'AsyncClientServer001\RetailSynchClientDBUsers' role membership. Role 'db_executor', database 'POSAsyncClientDB'...
3/12/2015 5:54:49 PM: Found that this machine is not a domain controller. DomainRole: 0
3/12/2015 5:54:49 PM: The account POC is determined to be a local account. The target account is located on the target machine AsyncClientServer001
3/12/2015 5:54:51 PM: Found that this machine is not a domain controller. DomainRole: 0
3/12/2015 5:54:51 PM: Group WinNT://AsyncClientServer001/RetailSynchClientDBUsers was found. Done.
3/12/2015 5:54:54 PM: Found user WinNT://AsyncClientServer001/POC as a member of the group WinNT://AsyncClientServer001/RetailSynchClientDBUsers.
3/12/2015 5:54:54 PM: The user WinNT://AsyncClientServer001/POC is already added to the group WinNT://AsyncClientServer001/RetailSynchClientDBUsers.
3/12/2015 5:54:54 PM: Found that this machine is not a domain controller. DomainRole: 0
3/12/2015 5:54:54 PM: The account POC is determined to be a local account. The target account is located on the target machine AsyncClientServer001
3/12/2015 5:54:56 PM: Found that this machine is not a domain controller. DomainRole: 0
3/12/2015 5:54:56 PM: Group WinNT://AsyncClientServer001/RetailDataSyncUsers was found. Done.
3/12/2015 5:54:59 PM: Found user WinNT://AsyncClientServer001/POC as a member of the group WinNT://AsyncClientServer001/RetailDataSyncUsers.
3/12/2015 5:54:59 PM: The user WinNT://AsyncClientServer001/POC is already added to the group WinNT://AsyncClientServer001/RetailDataSyncUsers.
3/12/2015 5:54:59 PM:       Deployed Async Client database successfully.
3/12/2015 5:54:59 PM: Add windows group memberships.
3/12/2015 5:54:59 PM: Found that this machine is not a domain controller. DomainRole: 0
3/12/2015 5:54:59 PM: The account POC is determined to be a local account. The target account is located on the target machine AsyncClientServer001
3/12/2015 5:55:01 PM: Found that this machine is not a domain controller. DomainRole: 0
3/12/2015 5:55:01 PM: Group WinNT://AsyncClientServer001/RetailSynchClientDBUsers was found. Done.
3/12/2015 5:55:03 PM: Found user WinNT://AsyncClientServer001/POC as a member of the group WinNT://AsyncClientServer001/RetailSynchClientDBUsers.
3/12/2015 5:55:03 PM: The user WinNT://AsyncClientServer001/POC is already added to the group WinNT://AsyncClientServer001/RetailSynchClientDBUsers.
3/12/2015 5:55:03 PM: Found that this machine is not a domain controller. DomainRole: 0
3/12/2015 5:55:03 PM: The account POC is determined to be a local account. The target account is located on the target machine AsyncClientServer001
3/12/2015 5:55:05 PM: Found that this machine is not a domain controller. DomainRole: 0
3/12/2015 5:55:05 PM: Group WinNT://AsyncClientServer001/RetailDataSyncUsers was found. Done.
3/12/2015 5:55:08 PM: Found user WinNT://AsyncClientServer001/POC as a member of the group WinNT://AsyncClientServer001/RetailDataSyncUsers.
3/12/2015 5:55:08 PM: The user WinNT://AsyncClientServer001/POC is already added to the group WinNT://AsyncClientServer001/RetailDataSyncUsers.
3/12/2015 5:55:08 PM: All windows group memberships are added.
3/12/2015 5:55:08 PM:     - Deploy Async Client Service ...
3/12/2015 5:55:08 PM:     - Trying to load [C:\Program Files (x86)\Microsoft Dynamics AX\60\CDX\Async Client\Tools\UserAccountRightsManager\Microsoft.Dynamics.Retail.UserAccountRightsManager.dll] ...
CodeBase       

........

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Girija Shankar Beuria Profile Picture
    690 on at

    I fixed this. Seems the parameters that I was sending was wrong for the ServerName and Instance Name.

    Initially I thought that instance name would be just be the instance name and not the full instance name (<ServerName>\<InstanceName), so the error was happening.

    When I pass the Server name in the Server name parameter and the full instance name (<ServerName>\<InstanceName) in the InstanceName parameter it works.

    - Girija

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans