Uploaded image for project: 'New Features 2017'
  1. New Features 2017
  2. NF-1881

TSR Integration->Error is displaying while updating employee with PUT request.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Integrations
    • Labels:
      None
    • Bug Type:
      Functional
    • Level:
      Admin
    • Module:
      TSR
    • Reported by:
      Harbinger
    • Item State:
      Production Complete - Closed
    • Issue Importance:
      Q2

      Description

      Environment - Stage

      1] Add a employee through API (company ID - 12871)
      Sample Data:

      { "Company":"12871", "JobID":"100795", "JobPosition":"Junior QA", "CandidateID":"107735", "FirstName":"Henry", "LastName":"Thomas", "SSN":"265470405", "EmailID":"henry@thomas.com", "StreetAddress1":"Address123", "StreetAddress2":"5th QA Avenue", "County":"Test", "City":"Hoston", "State":"AZ", "Country":"USA", "PostalCode":"41105", "HoursPerWeek":40, "EmploymentStartDate":"05/12/2017", "AnnualSalary":"$1500000", "TourID":12, "AssignDefaultPayrollSchedule":true }

      2] Try to update same employee with PUT request (e.g updated street address, job position etc)

      Actual Result:
      Below error is displaying:
      {
      "status": "Error",
      "message": "Unable to cast object of type 'ValueObjects.GenericTextValueObject' to type 'System.IConvertible'.",
      "errorLevel": "Error",
      "code": 500,
      "description": " at APIServices.Implementations.Platform.EmployeeService.UpdateEmployee(Int64 companyId, EmployeeTours objEmployeeTours)\r\n at WorkterraAPI.Controllers.Platform.EmployeeController.updateEmployee(EmployeeTours objEmployeeDTO)"
      }

      Cc: Saurabh Sablaka, Prasad Pise

        Attachments

          Activity

            People

            Assignee:
            kunal.kedari Kunal Kedari (Inactive)
            Reporter:
            kunal.kedari Kunal Kedari (Inactive)
            QA:
            Kunal Kedari (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10h
                10h
                Remaining:
                Time Spent - 8h Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - 8h Remaining Estimate - 2h
                8h