Uploaded image for project: 'Document Management System'
  1. Document Management System
  2. DMS-1446

SMB: Issues with offer sign in DMS staging

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Enhancements - Fall
    • Labels:
      None
    • Company:
      All Clients/Multiple Clients

      Description

       

      We are getting 409 Http error for OfferPreview API with message 

      \r\n  \"sourceUserId\": \"Given EmailId exist with another SourceUserId. Please give correct sourceuserid for this email.\"\r\n}

       

      This is how error can be reproduced:

      [https://apimanagement.cbplatform.link/#routes/tester?preURL=https%3A%2F%2Fwwwtest.api.careerbuilder.com%2F&postURL=%2Fcorporate%2Fats%2Fmapo-tofu%2Fassignments%2F12%2Foffer_preview&method=post&contentType=application%2Fjson&acceptType=application%2Fjson&version=1.0&region=staging&flow=authorization_code&userDid=U815D35WGQZS41Y2KJG&accountDid=A7F0PT78MTMZ470WBBT&headers=&body={%0D%0A%22offer%22%3A+

      {%0D%0A%22start_date%22%3A+%222019-04-17%22%2C%0D%0A%22start_time%22%3A+%2213%3A00%22%2C%0D%0A%22shift%22%3A+%22day%22%2C%0D%0A%22wage_rate%22%3A+50000%2C%0D%0A%22currency%22%3A+%22USD%22%2C%0D%0A%22wage_schedule%22%3A+%22annual%22%2C%0D%0A%22pay_schedule%22%3A+%22weekly%22%2C%0D%0A%22supervisor_name%22%3A+%22John+Johnson%22%2C%0D%0A%22benefits%22%3A+%22benefits_and_eligibility%22%2C%0D%0A%22background_check%22%3A+true%2C%0D%0A%22compensation_days%22%3A+10%2C%0D%0A%22eligible_pto_days%22%3A+20%0D%0A}

      %0D%0A}]

       

       

      It is our internal API that calls your API. I got different error when try to make direct code to your API:

       

      {   "status": "error",   "message": "System cannot generate document at this moment.",   "errorLevel1": "Error",   "code": 500,   "description": "System cannot generate document at this moment." }

       

      My request:

      [https://apimanagement.cbplatform.link/#routes/tester?preURL=https%3A%2F%2Fwwwtest.api.careerbuilder.com%2F&postURL=corporate%2Fdms%2Fapi%2Fdocument&method=post&contentType=application%2Fjson&acceptType=application%2Fjson&version=1.0&region=staging&flow=authorization_code&userDid=U815D35WGQZS41Y2KJG&accountDid=A7F0PT78MTMZ470WBBT&headers=&body={%22payload%22%3A%0D%0A

      {%22sourceProduct%22%3A%22SMBHire%22%2C%0D%0A%22sourceUserId%22%3A%2211%22%2C%0D%0A%22firstName%22%3A%22Ritika%22%2C%0D%0A%22lastName%22%3A%22Sharma%22%2C%0D%0A%22email%22%3A%22ritika.sharma%40careerbuilder.com%22%2C%0D%0A%22primaryPhone%22%3A%221234567890%22%2C%0D%0A%22addressLine1%22%3A%22123+A+st%22%2C%0D%0A%22addressLine2%22%3A%22Apt%23209%22%2C%0D%0A%22city%22%3A%22Pleasantion%22%2C%0D%0A%22state%22%3A%22CA%22%2C%0D%0A%22zipCode%22%3A%2294584%22%2C%0D%0A%22countryCode%22%3A%22US%22%2C%0D%0A%22requisitionId%22%3A%2212%22%2C%0D%0A%22supervisorName%22%3A%22Sup1%22%2C%0D%0A%22supervisorTitle%22%3A%22Sr.+Manager%22%2C%0D%0A%22employmentType%22%3A%22ETFE%22%2C%0D%0A%22department%22%3A%22%22%2C%0D%0A%22location%22%3A%22%22%2C%0D%0A%22offerDate%22%3A%2202%2F26%2F2018%22%2C%0D%0A%22title%22%3A%22Senior+engineer%22%2C%0D%0A%22compensationType%22%3A%22%22%2C%0D%0A%22wageSchedule%22%3A%22annual%22%2C%0D%0A%22offerPaySchedule%22%3A%22%22%2C%0D%0A%22rate%22%3A%2265000%22%2C%0D%0A%22currency%22%3A%22USD%22%2C%0D%0A%22workSchedule%22%3A0%2C%0D%0A%22workScheduleUnit%22%3A%22%22%2C%0D%0A%22workScheduleFrequency%22%3A%22%22%2C%0D%0A%22compensationDays%22%3A365%2C%0D%0A%22eligiblePTODays%22%3A21%2C%0D%0A%22assignmentType%22%3A%22Offer%22%2C%0D%0A%22dateOfHire%22%3A%2202%2F26%2F2018%22%2C%0D%0A%22responsibility%22%3A%22Develop+and+implement+new+software+programs\nTest+software+programs%22%2C%0D%0A%22benefitsAndEligibility%22%3A%22%22%2C%0D%0A%22timeoff_compensation%22%3A%22After+90+days%2C+you+will+be+eligible+for+14+days+of+Paid+Time+Off+(PTO)+which+must+be+approved+by+your+manager.%22}

      %2C%0D%0A%22templateId%22%3A412%2C%0D%0A%22sendDocument%22%3Afalse}]

        Attachments

          Issue Links

            Activity

            Hide
            samir Samir added a comment -

            Please check on priority

            Regards,

            Samir

             

            Dmitry

            Show
            samir Samir added a comment - Please check on priority Regards, Samir   Dmitry
            Hide
            harshveer.singh Harshveer Singh (Inactive) added a comment -

            Hi Dmitry,

            This issue is fixed, approved. We should have it deployed by tomorrow.

            For the first error "Given EmailId exist with another SourceUserId. Please give correct sourceuserid for this email", it is validation error which is being thrown when provided email ID belongs to some other sourceUserId in records.

            Samir

            Show
            harshveer.singh Harshveer Singh (Inactive) added a comment - Hi Dmitry , This issue is fixed, approved. We should have it deployed by tomorrow. For the first error "Given EmailId exist with another SourceUserId. Please give correct sourceuserid for this email", it is validation error which is being thrown when provided email ID belongs to some other sourceUserId in records. Samir
            Hide
            DmitryH Dmitry (Inactive) added a comment -

            Harshveer Singh Samir

            Error "Given EmailId exist with another SourceUserId. Please give correct sourceuserid for this email" makes perfect sense if create/update an account. We know that DMS has a restriction and user (recruiter) can belong only to single account. 

            Although we are getting this error for Offer Preview API. That API should not create any user accounts and should not cause an error. It only sends fields that should be injected into template.

            Can you please clarify if you managed to reproduce this error and what exactly is duplicated.

             

            Thanks

            Dmitry  

             

            Show
            DmitryH Dmitry (Inactive) added a comment - Harshveer Singh Samir Error "Given EmailId exist with another SourceUserId. Please give correct sourceuserid for this email" makes perfect sense if create/update an account. We know that DMS has a restriction and user (recruiter) can belong only to single account.  Although we are getting this error for Offer Preview API. That API should not create any user accounts and should not cause an error. It only sends fields that should be injected into template. Can you please clarify if you managed to reproduce this error and what exactly is duplicated.   Thanks Dmitry    
            Hide
            priya.dhamande Priya Dhamande (Inactive) added a comment -

            Keeping this jira on Hold

            Sachin Hingole Hrishikesh Deshpande Samir Satya

            Show
            priya.dhamande Priya Dhamande (Inactive) added a comment - Keeping this jira on Hold Sachin Hingole Hrishikesh Deshpande Samir Satya
            Hide
            samir Samir added a comment -

            DMS-1467 data correction will resolve this

            Show
            samir Samir added a comment - DMS-1467 data correction will resolve this
            Hide
            DmitryH Dmitry (Inactive) added a comment -

            Samir Permanent solution for several DMS issues is allowing candidate to apply to multiple Company Accounts. Can you please share ticket number for that issue?

            CC Ravi Banda

            Show
            DmitryH Dmitry (Inactive) added a comment - Samir Permanent solution for several DMS issues is allowing candidate to apply to multiple Company Accounts. Can you please share ticket number for that issue? CC Ravi Banda
            Hide
            ravi.banda Ravi Banda (Inactive) added a comment -

            Samir - this has an impact on CBAT usecases as well.

            Robert Malony - we need to discuss and create a story to provide this support

            Show
            ravi.banda Ravi Banda (Inactive) added a comment - Samir - this has an impact on CBAT usecases as well. Robert Malony - we need to discuss and create a story to provide this support
            Hide
            harshveer.singh Harshveer Singh (Inactive) added a comment -

            Dmitry, Data correction was applied, can you please confirm if API call is successful now, I tested DMS API directly, and it is working(URL given in description) but was not able to test your applications URL, may be data changed. Can you please check and confirm.

            Show
            harshveer.singh Harshveer Singh (Inactive) added a comment - Dmitry , Data correction was applied, can you please confirm if API call is successful now, I tested DMS API directly, and it is working(URL given in description) but was not able to test your applications URL, may be data changed. Can you please check and confirm.

              People

              Assignee:
              DmitryH Dmitry (Inactive)
              Reporter:
              samir Samir
              Developer:
              Harshveer Singh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified