Uploaded image for project: 'WORKTERRA'
  1. WORKTERRA
  2. WT-9306

CLONE - Cloning Company results in server error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Onboard
    • Labels:
      None
    • Environment:
      Stage
    • Bug Type:
      Functional
    • Bug Severity:
      Medium
    • Module:
      Platform
    • Reported by:
      Support
    • Item State:
      Production Complete - Closed

      Description

      Hello,

      I attempted to clone a company and received a message showing a server error. I was unable to clone. Please review and correct this issue.

      In addition, please clone "Long" in stage and name the new company "Onboard Test Case". Please give access to myself, Robyn Adkison, Chitra Rao, Monika Demla, Ryan Sapp, Gary Cunningham, Amanda Hagan, Kylee Reeves, Jamela Sandridge and Amannda Johnson.

      Thank you,
      Veronica Blanco

        Attachments

          Issue Links

            Activity

            Hide
            satyap Satya added a comment -

            Hi Jaideep,

            Can you please get this fixed with Platform team?

            Regards,
            Satya Prakash

            Show
            satyap Satya added a comment - Hi Jaideep, Can you please get this fixed with Platform team? Regards, Satya Prakash
            Hide
            satyap Satya added a comment -

            Hi Saurabh,

            As discussed, can you please get this issue fixed?

            Below is error log:
            ErrorID : 0
            ErrorSource : ControllerAppTier.Clone->WORKTERRAControllerAppTier.Clone->Company.Clone->Company.CloneCompany->Company.DeleteEmployeeDetails
            ErrorMessage: The DELETE statement conflicted with the REFERENCE constraint "FK_EmployeeSource_EmployeeID". The conflict occurred in database "OnboardTest24Apr2017_13032", table "dbo.EmployeeSource", column 'EmployeeID'.
            The DELETE statement conflicted with the REFERENCE constraint "FK_EmployeeSource_EmployeeID". The conflict occurred in database "OnboardTest24Apr2017_13032", table "dbo.EmployeeSource", column 'EmployeeID'.

            Regards,
            Satya Prakash

            Cc: Vijay Siddha Jaideep Vinchurkar Samir Rakesh Roy

            Show
            satyap Satya added a comment - Hi Saurabh, As discussed, can you please get this issue fixed? Below is error log: ErrorID : 0 ErrorSource : ControllerAppTier.Clone->WORKTERRAControllerAppTier.Clone->Company.Clone->Company.CloneCompany->Company.DeleteEmployeeDetails ErrorMessage: The DELETE statement conflicted with the REFERENCE constraint "FK_EmployeeSource_EmployeeID". The conflict occurred in database "OnboardTest24Apr2017_13032", table "dbo.EmployeeSource", column 'EmployeeID'. The DELETE statement conflicted with the REFERENCE constraint "FK_EmployeeSource_EmployeeID". The conflict occurred in database "OnboardTest24Apr2017_13032", table "dbo.EmployeeSource", column 'EmployeeID'. Regards, Satya Prakash Cc: Vijay Siddha Jaideep Vinchurkar Samir Rakesh Roy
            Hide
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) added a comment -

            Hi team,

            Following are the details of the issue :

            Cause : Some foreign key violations were occuring as the Parent table(referred table) was being truncated without truncating child tables(referring tables) while cloning company.

            Correction : The stored procedure was modified to truncate child tables before parent tables.(dbo.OES_SP_ClearEmployeeDetails.StoredProcedure.sql)

            Regards
            Sushodhan Vaishampayan

            Show
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) added a comment - Hi team, Following are the details of the issue : Cause : Some foreign key violations were occuring as the Parent table(referred table) was being truncated without truncating child tables(referring tables) while cloning company. Correction : The stored procedure was modified to truncate child tables before parent tables.(dbo.OES_SP_ClearEmployeeDetails.StoredProcedure.sql) Regards Sushodhan Vaishampayan
            Hide
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) added a comment -

            Clone company issue is Fixed on LB. Ready for Stage.

            Show
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) added a comment - Clone company issue is Fixed on LB. Ready for Stage.
            Hide
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) added a comment -

            Hi Veronica Blanco,

            This issue is Fixed on Stage. We will move it on Production and update you.

            We have not cloned Long Stage Company as there is company already present with name "Onboard Test Case". We have confirmed that all given users have rights to this company.

            Let me know in case you need any information on this.

            Thanks,
            Hrishikesh.

            Show
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) added a comment - Hi Veronica Blanco , This issue is Fixed on Stage. We will move it on Production and update you. We have not cloned Long Stage Company as there is company already present with name "Onboard Test Case". We have confirmed that all given users have rights to this company. Let me know in case you need any information on this. Thanks, Hrishikesh.
            Hide
            veronica.blanco Veronica Blanco (Inactive) added a comment -

            Yes, we do have access to the newly cloned company.

            Thank you Hrishikesh Deshpande!

            Veronica Blanco

            Show
            veronica.blanco Veronica Blanco (Inactive) added a comment - Yes, we do have access to the newly cloned company. Thank you Hrishikesh Deshpande ! Veronica Blanco
            Hide
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) added a comment -

            Hi Sushodhan Vaishampayan,

            This is not working on Production.
            Getting server error on Company clone.

            Log -

            ErrorID : 0
            ErrorSource : ControllerAppTier.Clone->WORKTERRAControllerAppTier.Clone->Company.Clone->Company.CloneCompany->Company.BackupAndRestoreNewCompany
            ErrorMessage: Could not find server 'BONANNOSR\BONANNOSR' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.
            Could not find server 'BONANNOSR\BONANNOSR' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.
            StackTrace: at WORKTERRA.Shared.WORKTERRAControllerAppTier.Clone(WORKTERRAControllerWebTierEntity objWORKTERRAControllerWebTierEntity)
            at WORKTERRA.ControllerAppTier.Clone(Int32 intProjectsId, String strInput)
            TargetSite: System.String Clone(WORKTERRA.Shared.WORKTERRAControllerWebTierEntity)

            Show
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) added a comment - Hi Sushodhan Vaishampayan , This is not working on Production. Getting server error on Company clone. Log - ErrorID : 0 ErrorSource : ControllerAppTier.Clone->WORKTERRAControllerAppTier.Clone->Company.Clone->Company.CloneCompany->Company.BackupAndRestoreNewCompany ErrorMessage: Could not find server 'BONANNOSR\BONANNOSR' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers. Could not find server 'BONANNOSR\BONANNOSR' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers. StackTrace: at WORKTERRA.Shared.WORKTERRAControllerAppTier.Clone(WORKTERRAControllerWebTierEntity objWORKTERRAControllerWebTierEntity) at WORKTERRA.ControllerAppTier.Clone(Int32 intProjectsId, String strInput) TargetSite: System.String Clone(WORKTERRA.Shared.WORKTERRAControllerWebTierEntity)
            Hide
            satyap Satya added a comment -

            Hi Hrishikesh,

            'Add Company' and 'Clone Company' is not getting used on production. Please test this feature only till stage.

            As per our current implementation, company is added/clonned on stage & then moved to production for their go-live.

            Regards,
            Satya Prakash

            Cc: Saurabh Sablaka Samir Rakesh Roy Vijay Siddha Ashwin Wankhede

            Show
            satyap Satya added a comment - Hi Hrishikesh, 'Add Company' and 'Clone Company' is not getting used on production. Please test this feature only till stage. As per our current implementation, company is added/clonned on stage & then moved to production for their go-live. Regards, Satya Prakash Cc: Saurabh Sablaka Samir Rakesh Roy Vijay Siddha Ashwin Wankhede

              People

              Assignee:
              hrishikesh.deshpande Hrishikesh Deshpande (Inactive)
              Reporter:
              rakeshr Rakesh Roy (Inactive)
              Account Executive:
              Veronica Blanco (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Code Review Date:

                  Time Tracking

                  Estimated:
                  Original Estimate - 12h Original Estimate - 12h
                  12h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 13h
                  13h