Hi all,
I have set up a number of products in AX and released them to the store. Items are being recognised when inputting the item id but when inputting the barcode nothing happens.
If a non-existing barcode is inputted then an error is thrown by the POS that the item was not found, but if the barcode exists, nothing happens from the POS side.
It was noted from the event viewer the following error:
LSRetailPosis.POSProcesses.ProcessInput: System.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK__#A75B4DB__A9A5B3BBC145E879'. Cannot insert duplicate key in object 'dbo.@tvp_ProductIds'. The duplicate key value is (52565550704).
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Dynamics.Retail.Pos.BarcodeService.Barcode.Find(IBarcodeInfo barcodeInfo, Boolean promptIfMultiple)
at Microsoft.Dynamics.Retail.Pos.BarcodeService.Barcode.ProcessBarcode(IScanInfo scanInfo)
at LSRetailPosis.POSProcesses.ProcessInput.Execute()
ClientConnectionId:405c6ba6-a87c-401a-8b89-fdb17c3fb010
Error Number:2627,State:1,Class:14.
Any help please?