When trying to save transaction in POS, POS showing 1001 and 1002 un identified error. This transaction has to connect HO server also.
Head office and Retail store Connectivity
HO(AX Server)->Retail Store Server(File is mounted in local server )-> Store Terminals (Terminals accessing the file from Local Server)
Below message is showing in Event Viewer.
1.Log Name: Application
Source: Dynamics AX Retail
Date: 08/09/2018 5:29:30 PM
Event ID: 1
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: OMRHI104
Description:
LSRetailPosis.POSProcesses.POSApp: System.InvalidOperationException: ExecuteScalar requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.InvokePOSMainWindow(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.ShowPOSErrorDialog(PosisException x)
at LSRetailPosis.POSProcesses.POSApp.ConcludeTransaction()
at LSRetailPosis.POSProcesses.POSApp.ResultCallback(PosTransaction clonedTransaction, OperationInfo operationInfo)
at LSRetailPosis.POSProcesses.POSApp.RunOperationInternal(PosisOperations operationID, Object extraInfo, OperationInfo operationInfo, PosTransaction newPosTransaction).
Event Xml:
<Event xmlns="schemas.microsoft.com/.../event">
<System>
<Provider Name="Dynamics AX Retail" />
<EventID Qualifiers="0">1</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2018-09-08T13:29:30.287487600Z" />
<EventRecordID>4506</EventRecordID>
<Channel>Application</Channel>
<Computer>xxxxxI104</Computer>
<Security />
</System>
<EventData>
<Data>LSRetailPosis.POSProcesses.POSApp: System.InvalidOperationException: ExecuteScalar requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.InvokePOSMainWindow(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.ShowPOSErrorDialog(PosisException x)
at LSRetailPosis.POSProcesses.POSApp.ConcludeTransaction()
at LSRetailPosis.POSProcesses.POSApp.ResultCallback(PosTransaction clonedTransaction, OperationInfo operationInfo)
at LSRetailPosis.POSProcesses.POSApp.RunOperationInternal(PosisOperations operationID, Object extraInfo, OperationInfo operationInfo, PosTransaction newPosTransaction).</Data>
</EventData>
</Event>
2.Log Name: Application
Source: Dynamics AX Retail
Date: 08/09/2018 5:29:30 PM
Event ID: 1
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: OMRHI104
Description:
LSRetailPosis.POSProcesses.POSApp: System.InvalidOperationException: ExecuteScalar requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.InvokePOSMainWindow(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.ShowPOSErrorDialog(PosisException x)
at LSRetailPosis.POSProcesses.POSApp.ConcludeTransaction()
at LSRetailPosis.POSProcesses.POSApp.ResultCallback(PosTransaction clonedTransaction, OperationInfo operationInfo)
at LSRetailPosis.POSProcesses.POSApp.RunOperationInternal(PosisOperations operationID, Object extraInfo, OperationInfo operationInfo, PosTransaction newPosTransaction).
Event Xml:
<Event xmlns="schemas.microsoft.com/.../event">
<System>
<Provider Name="Dynamics AX Retail" />
<EventID Qualifiers="0">1</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2018-09-08T13:29:30.287487600Z" />
<EventRecordID>4506</EventRecordID>
<Channel>Application</Channel>
<Computer>XXXX104</Computer>
<Security />
</System>
<EventData>
<Data>LSRetailPosis.POSProcesses.POSApp: System.InvalidOperationException: ExecuteScalar requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.InvokePOSMainWindow(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.ShowPOSErrorDialog(PosisException x)
at LSRetailPosis.POSProcesses.POSApp.ConcludeTransaction()
at LSRetailPosis.POSProcesses.POSApp.ResultCallback(PosTransaction clonedTransaction, OperationInfo operationInfo)
at LSRetailPosis.POSProcesses.POSApp.RunOperationInternal(PosisOperations operationID, Object extraInfo, OperationInfo operationInfo, PosTransaction newPosTransaction).</Data>
</EventData>
</Event>