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

            rakeshr Rakesh Roy (Inactive) created issue -
            rakeshr Rakesh Roy (Inactive) made changes -
            Field Original Value New Value
            Link This issue clones WT-9298 [ WT-9298 ]
            rakeshr Rakesh Roy (Inactive) made changes -
            Assignee Rakesh Roy [ rakeshr ] Satya [ ID10004 ]
            rakeshr Rakesh Roy (Inactive) made changes -
            Account Executive Veronica Blanco [ veronica.blanco ]
            rakeshr Rakesh Roy (Inactive) made changes -
            Issue Type Support Activity [ 10301 ] Bug [ 1 ]
            Support Task Type Customization [ 11204 ]
            Workflow WT_Support [ 39879 ] WT_Defects [ 39880 ]
            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
            satyap Satya made changes -
            Assignee Satya [ ID10004 ] Jaideep Vinchurkar [ jaideep.vinchurkar ]
            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
            satyap Satya made changes -
            Assignee Jaideep Vinchurkar [ jaideep.vinchurkar ] Saurabh Sablaka [ saurabh.sablaka ]
            satyap Satya made changes -
            Component/s OnBoard [ 10001 ]
            saurabh.sablaka Saurabh Sablaka (Inactive) made changes -
            Assignee Saurabh Sablaka [ saurabh.sablaka ] Sushodhan Vaishampayan [ sushodhan.vaishampayan ]
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) logged work - 25/Apr/17 11:55 AM - edited
            • Time Spent:
              6h
               

              Debugging and modifying SP

            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Status Open [ 1 ] In Development [ 10007 ]
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Item State Parent values: Development(10200)Level 1 values: Ready for Review(10208)
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) logged work - 26/Apr/17 06:56 PM
            • Time Spent:
              2h
               

              Code review and Lb checkin

            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Item State Parent values: Development(10200)Level 1 values: Ready for Review(10208) Parent values: Development(10200)Level 1 values: Ready for Local Testing(10209)
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Code Review Date 27/Apr/2017
            Code Reviewed By Saurabh Sablaka [ 11909 ]
            khandu.kshirsagar Khandu Kshirsagar (Inactive) made changes -
            Item State Parent values: Development(10200)Level 1 values: Ready for Local Testing(10209) Parent values: LB QA(10201)Level 1 values: LB Deployed(11600)
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Attachment 26-04-2017_(WT-9306).patch [ 46497 ]
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Attachment 27-04-2017(WT-9306)_LB.txt [ 46498 ]
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Remaining Estimate 8h [ 28800 ]
            Original Estimate 8h [ 28800 ]
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Remaining Estimate 8h [ 28800 ] 2h [ 7200 ]
            Time Spent 6h [ 21600 ]
            Worklog Id 41802 [ 41802 ]
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Remaining Estimate 2h [ 7200 ] 0h [ 0 ]
            Time Spent 6h [ 21600 ] 8h [ 28800 ]
            Worklog Id 41803 [ 41803 ]
            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
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Assignee Sushodhan Vaishampayan [ sushodhan.vaishampayan ] Rakesh Roy [ rakeshr ]
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Worklog Id 41802 [ 41802 ]
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Worklog Id 41802 [ 41802 ]
            rakeshr Rakesh Roy (Inactive) made changes -
            Assignee Rakesh Roy [ rakeshr ] Hrishikesh Deshpande [ hrishikesh.deshpande ]
            rakeshr Rakesh Roy (Inactive) made changes -
            Status In Development [ 10007 ] Local Testing [ 10200 ]
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) made changes -
            Remaining Estimate 0h [ 0 ] 4h [ 14400 ]
            Original Estimate 8h [ 28800 ] 12h [ 43200 ]
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) made changes -
            Remaining Estimate 4h [ 14400 ] 3.5h [ 12600 ]
            Time Spent 8h [ 28800 ] 8.5h [ 30600 ]
            Worklog Id 42632 [ 42632 ]
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) made changes -
            Item State Parent values: LB QA(10201)Level 1 values: LB Deployed(11600) Parent values: LB QA(10201)Level 1 values: Ready for Stage(10213)
            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.
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) logged work - 02/May/17 05:55 PM
            • Time Spent:
              0.5h
               
              <No comment>
            khandu.kshirsagar Khandu Kshirsagar (Inactive) made changes -
            Item State Parent values: LB QA(10201)Level 1 values: Ready for Stage(10213) Parent values: Stage QA(10202)Level 1 values: Stage Deployed(11602)
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) logged work - 03/May/17 09:48 AM
            • Time Spent:
              1h
               

              -testing

            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.
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) made changes -
            Remaining Estimate 3.5h [ 12600 ] 2.5h [ 9000 ]
            Time Spent 8.5h [ 30600 ] 9.5h [ 34200 ]
            Worklog Id 42844 [ 42844 ]
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) made changes -
            Item State Parent values: Stage QA(10202)Level 1 values: Stage Deployed(11602) Parent values: Stage QA(10202)Level 1 values: Ready for Production(10217)
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) made changes -
            Status Local Testing [ 10200 ] Stage Testing [ 10201 ]
            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
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) logged work - 03/May/17 05:04 PM - edited
            • Time Spent:
              1h
               

              Stage check in

            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Remaining Estimate 2.5h [ 9000 ] 1.5h [ 5400 ]
            Time Spent 9.5h [ 34200 ] 10.5h [ 37800 ]
            Worklog Id 43053 [ 43053 ]
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Worklog Id 43053 [ 43053 ]
            ashwin.wankhede Ashwin Wankhede (Inactive) made changes -
            Item State Parent values: Stage QA(10202)Level 1 values: Ready for Production(10217) Parent values: Production QA(10203)Level 1 values: Production Deployed(10221)
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) logged work - 08/May/17 07:14 AM
            • Time Spent:
              1.5h
               
              <No comment>
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) made changes -
            Remaining Estimate 1.5h [ 5400 ] 0h [ 0 ]
            Time Spent 10.5h [ 37800 ] 12h [ 43200 ]
            Worklog Id 43662 [ 43662 ]
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) made changes -
            Item State Parent values: Production QA(10203)Level 1 values: Production Deployed(10221) Parent values: Production Complete(10222)Level 1 values: Closed(10223)
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) made changes -
            Status Stage Testing [ 10201 ] Production Testing [ 10202 ]
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) made changes -
            Resolution Unresolved [ 10200 ]
            Status Production Testing [ 10202 ] Reopen in Production [ 10027 ]
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) made changes -
            Item State Parent values: Production Complete(10222)Level 1 values: Closed(10223) Parent values: Stage QA(10202)
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) made changes -
            Item State Parent values: Stage QA(10202) Parent values: Production QA(10203)Level 1 values: Re-open(10220)
            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)
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) made changes -
            Assignee Hrishikesh Deshpande [ hrishikesh.deshpande ] Sushodhan Vaishampayan [ sushodhan.vaishampayan ]
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Status Reopen in Production [ 10027 ] In Development [ 10007 ]
            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
            satyap Satya made changes -
            Status In Development [ 10007 ] Local Testing [ 10200 ]
            satyap Satya made changes -
            Status Local Testing [ 10200 ] Stage Testing [ 10201 ]
            satyap Satya made changes -
            Status Stage Testing [ 10201 ] Production Testing [ 10202 ]
            satyap Satya made changes -
            Assignee Sushodhan Vaishampayan [ sushodhan.vaishampayan ] Hrishikesh Deshpande [ hrishikesh.deshpande ]
            Resolution Unresolved [ 10200 ] Fixed [ 1 ]
            Status Production Testing [ 10202 ] Production Complete [ 10028 ]
            satyap Satya made changes -
            Status Production Complete [ 10028 ] Closed [ 6 ]
            hrishikesh.deshpande Hrishikesh Deshpande (Inactive) made changes -
            Item State Parent values: Production QA(10203)Level 1 values: Re-open(10220) Parent values: Production Complete(10222)Level 1 values: Closed(10223)
            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) logged work - 09/May/17 05:13 PM
            • Time Spent:
              1h
               

              Discussion with Saurabh Sablaka and trying fixes.

            sushodhan.vaishampayan Sushodhan Vaishampayan (Inactive) made changes -
            Time Spent 12h [ 43200 ] 13h [ 46800 ]
            Worklog Id 44259 [ 44259 ]
            rakeshr Rakesh Roy (Inactive) made changes -
            Bug Severity Medium [ 16702 ]
            Bug Type Functional [ 15402 ]
            satyap Satya made changes -
            Environment_New Stage [ 18443 ]
            Transition Time In Source Status Execution Times
            Sushodhan Vaishampayan (Inactive) made transition -
            Open In Development
            2d 2h 43m 1
            Hrishikesh Deshpande (Inactive) made transition -
            In Production Testing Reopen in Production
            3m 13s 1
            Sushodhan Vaishampayan (Inactive) made transition -
            Reopen in Production In Development
            1d 4h 18m 1
            Satya made transition -
            In Development In LB Testing
            5d 7h 59m 2
            Satya made transition -
            In LB Testing Stage Testing
            1d 13h 56m 2
            Satya made transition -
            Stage Testing In Production Testing
            4d 21h 25m 2
            Satya made transition -
            In Production Testing Production Complete
            20s 1
            Satya made transition -
            Production Complete Closed
            3s 1

              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