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

            samir Samir created issue -
            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
            samir Samir made changes -
            Field Original Value New Value
            Assignee Samir [ samir ] Harshveer Singh [ harshveer.singh ]
            samir Samir made changes -
            Developer Harshveer Singh [ harshveer.singh ]
            Sprint DMS - Fall Sprint 3 [ 162 ]
            Remaining Estimate 4h [ 14400 ]
            Original Estimate 4h [ 14400 ]
            samir Samir made changes -
            Fix Version/s Enhancements - Fall [ 10610 ]
            harshveer.singh Harshveer Singh (Inactive) made changes -
            Status To Do [ 10000 ] In Progress [ 3 ]
            harshveer.singh Harshveer Singh (Inactive) made changes -
            Status In Progress [ 3 ] Code Review [ 11801 ]
            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    
            Raj.Hawaldar Raj Hawaldar (Inactive) made changes -
            Status Code Review [ 11801 ] In QA Testing [ 11901 ]
            Raj.Hawaldar Raj Hawaldar (Inactive) made changes -
            Assignee Harshveer Singh [ harshveer.singh ] Priya Dhamande [ priya.dhamande ]
            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
            priya.dhamande Priya Dhamande (Inactive) made changes -
            Status In QA Testing [ 11901 ] On hold in Test [ 10019 ]
            shashikant.mishra ShashiKant Mishra (Inactive) made changes -
            Sprint DMS - Fall Sprint 3 [ 162 ] DMS - Fall Sprint 3, DMS - Fall Sprint 4 [ 162, 163 ]
            samir Samir made changes -
            Assignee Priya Dhamande [ priya.dhamande ] Samir [ samir ]
            samir Samir made changes -
            Assignee Samir [ samir ] Harshveer Singh [ harshveer.singh ]
            samir Samir made changes -
            Status On hold in Test [ 10019 ] To Do [ 10000 ]
            samir Samir made changes -
            Status To Do [ 10000 ] In Progress [ 3 ]
            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
            shashikant.mishra ShashiKant Mishra (Inactive) made changes -
            Sprint DMS - Fall Sprint 3, DMS - Fall Sprint 4 [ 162, 163 ] DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5 [ 162, 163, 164 ]
            Robert.Malony Robert Malony (Inactive) made changes -
            Link This issue relates to DMS-1505 [ DMS-1505 ]
            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.
            shashikant.mishra ShashiKant Mishra (Inactive) made changes -
            Sprint DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5 [ 162, 163, 164 ] DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6 [ 162, 163, 164, 165 ]
            shashikant.mishra ShashiKant Mishra (Inactive) made changes -
            Sprint DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6 [ 162, 163, 164, 165 ] DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6, DMS - Fall Sprint 7 [ 162, 163, 164, 165, 166 ]
            samir Samir made changes -
            Assignee Harshveer Singh [ harshveer.singh ] Dmitry [ dmitryh ]
            shashikant.mishra ShashiKant Mishra (Inactive) made changes -
            Sprint DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6, DMS - Fall Sprint 7 [ 162, 163, 164, 165, 166 ] DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6, DMS - Fall Sprint 7, DMS - Fall Sprint 8 [ 162, 163, 164, 165, 166, 167 ]
            shashikant.mishra ShashiKant Mishra (Inactive) made changes -
            Sprint DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6, DMS - Fall Sprint 7, DMS - Fall Sprint 8 [ 162, 163, 164, 165, 166, 167 ] DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6, DMS - Fall Sprint 7, DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1 [ 162, 163, 164, 165, 166, 167, 173 ]
            shashikant.mishra ShashiKant Mishra (Inactive) made changes -
            Sprint DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6, DMS - Fall Sprint 7, DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1 [ 162, 163, 164, 165, 166, 167, 173 ] DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6, DMS - Fall Sprint 7, DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1, DMS - Gap Fall & Win Sprint 2 [ 162, 163, 164, 165, 166, 167, 173, 174 ]
            shashikant.mishra ShashiKant Mishra (Inactive) made changes -
            Sprint DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6, DMS - Fall Sprint 7, DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1, DMS - Gap Fall & Win Sprint 2 [ 162, 163, 164, 165, 166, 167, 173, 174 ] DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6, DMS - Fall Sprint 7, DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1, DMS - Gap Fall & Win Sprint 2, DMS - Gap Fall & Win Sprint 3 [ 162, 163, 164, 165, 166, 167, 173, 174, 177 ]
            shashikant.mishra ShashiKant Mishra (Inactive) made changes -
            Sprint DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6, DMS - Fall Sprint 7, DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1, DMS - Gap Fall & Win Sprint 2, DMS - Gap Fall & Win Sprint 3 [ 162, 163, 164, 165, 166, 167, 173, 174, 177 ] DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6, DMS - Fall Sprint 7, DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1, DMS - Gap Fall & Win Sprint 2, DMS - Gap Fall & Win Sprint 3, DMS - Gap Fall & Win Sprint 4 [ 162, 163, 164, 165, 166, 167, 173, 174, 177, 179 ]
            samir Samir made changes -
            Sprint DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6, DMS - Fall Sprint 7, DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1, DMS - Gap Fall & Win Sprint 2, DMS - Gap Fall & Win Sprint 3, DMS - Gap Fall & Win Sprint 4 [ 162, 163, 164, 165, 166, 167, 173, 174, 177, 179 ] DMS - Fall Sprint 3, DMS - Fall Sprint 4, DMS - Fall Sprint 5, DMS - Fall Sprint 6, DMS - Fall Sprint 7, DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1, DMS - Gap Fall & Win Sprint 2, DMS - Gap Fall & Win Sprint 3 [ 162, 163, 164, 165, 166, 167, 173, 174, 177 ]
            samir Samir made changes -
            Resolution Done [ 10000 ]
            Status In Progress [ 3 ] Done [ 10001 ]
            Transition Time In Source Status Execution Times
            Harshveer Singh (Inactive) made transition -
            In Progress Code Review
            5s 1
            Raj Hawaldar (Inactive) made transition -
            Code Review In QA Testing
            20h 16m 1
            Priya Dhamande (Inactive) made transition -
            In QA Testing On hold in Test
            55m 18s 1
            Samir made transition -
            On hold in Test To Do
            7d 3h 32m 1
            Samir made transition -
            To Do In Progress
            2h 3m 2
            Samir made transition -
            In Progress Done
            118d 16h 50m 1

              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