Uploaded image for project: 'CFA MX '
  1. CFA MX
  2. CFAMX-22138

Sprint Ticket Created - non-TBC Outside Sales are not having the "Systematic Cust - Outside Sls" account automatically assigned to them

    Details

    • VTask #:
      VTASK0500824
    • Root cause - Reason:
      Functionality new
    • Root Cause:
      implemented retry logic.

      Description

      CFA need assistance figuring out why non-TBC Outside Sales are not having the "Systematic Cust - Outside Sls" account automatically assigned to them

       

      Example: 

      Store 00940

      Business Day: 09/26

      I found errors in the OnAccountSales error queue, the following is the error we are receiving when attempt to reprocess those records:

      Title: On Account Sale Queue
      Timestamp: 9/28/2022 12:39:39 PM
      Message: Error occurred enqueuing transaction ID:4266476 for OnAccountSales processing - type OnAccountSales. Exception: NHibernate.Exceptions.GenericADOException: could not execute batch command.[SQL: SQL not available] ---> System.Data.SqlClient.SqlException: The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_OnAccountSale". The conflict occurred in database "Chick-fil-a", table "dbo.tbOnAccountSale", column 'OnAccountSaleId'.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
      The statement has been terminated.
         at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
         at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
         at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
         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)
         at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
         at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
         at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
         at System.Data.SqlClient.SqlCommandSet.ExecuteNonQuery()
         at NHibernate.AdoNet.SqlClientBatchingBatcher.DoExecuteBatch(IDbCommand ps)
         --- End of inner exception stack trace ---
         at NHibernate.AdoNet.SqlClientBatchingBatcher.DoExecuteBatch(IDbCommand ps)
         at NHibernate.AdoNet.AbstractBatcher.ExecuteBatchWithTiming(IDbCommand ps)
         at NHibernate.AdoNet.SqlClientBatchingBatcher.AddToBatch(IExpectation expectation)
         at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)
         at NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)
         at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Int32[] dirtyFields, Boolean hasDirtyCollection, Object[] oldFields, Object oldVersion, Object obj, Object rowId, ISessionImplementor session)
         at NHibernate.Action.EntityUpdateAction.Execute()
         at NHibernate.Engine.ActionQueue.Execute(IExecutable executable)
         at NHibernate.Engine.ActionQueue.ExecuteActions(IList list)
         at NHibernate.Engine.ActionQueue.ExecuteActions()
         at NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session)
         at NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event)
         at NHibernate.Impl.SessionImpl.Flush()
         at NHibernate.Transaction.AdoTransaction.Commit()
         at Mx.CFA.Data.Repositories.ControlInfoRepository.GetRefundId()
         at Mx.CFA.Data.Repositories.TransactionSummaryRepository.GetSalesTransactionsByTransactionSummaryId(Int64 transactionSummaryId)
         at Mx.Accounts.Services.OnAccountSalesServiceWrapper.SaveCustomer(OnAccountSalePolling onAccountSalePolling, Int32 retryCount)
         at Mx.Services.BaseSystem.Queues.OnAccountSalesMessage.PerformAction(Message message, ITaskController taskController)
      Activity Token: a9c8a0a6-9f79-4ef7-aad6-feb96c42c9e8
      Category: Mobile
      Priority: 30
      EventId: 2
      Severity: Error
      Machine: ATL2CFAAPPV001
      Application Domain: eStruxure Manager.exe
      Process Id: 7520
      Process Name: H:\Macromatix\ServerManager\Chick-fil-A - Instance 7\eStruxure Manager.exe
      Win32 Thread Id: 4548
      Thread Name: chick-fil-a-onaccountsale-q1
      

       As a result of this there have been a few cash day summary / pmix fails that need to be re-exported once the transactions have an account assigned to them

       

        Attachments

        1. dbo.MX_OutsideSalesNameFix_Workaround.sql
          5 kB
          Sree Surapaneni
        2. dbo.qryMMSBankingClose_SaveAndAuthorise_MxC.sql
          3 kB
          Sree Surapaneni
        3. image-2022-09-28-09-12-28-010.png
          154 kB
          Wesam El-Gendy
        4. image-2022-11-03-11-56-48-221.png
          88 kB
          Marwa Abdelwahed

          Issue Links

            Activity

              People

              • Assignee:
                charles.wheeler Charles Wheeler
                Reporter:
                wesam.el-gendy Wesam El-Gendy
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.