AmericaSCORESBayArea / student-registration

Student families need to easily access their records and waivers at least once per year. This service needs to be paper-free, secure, and reliable... and a future standard for school districts and youth-focused nonprofits/volunteer organizations. Interfaces with Mulesoft API's and Salesforce.
https://scoresu.org
Other
2 stars 0 forks source link

Salesforce error when submitting a new student registration #208

Closed MarcHenriA closed 1 month ago

MarcHenriA commented 2 years ago

Salesforce error when submitting a new student registration

-Reproduction steps

  1. Open https://student-registration-prod.herokuapp.com/ in desktop browser
  2. Choose Parent/Guardian
  3. View form
  4. Enter new student record and see below what was entered
  5. Submit Result: (Oops! Something went wrong! [1] Error: Request failed with status code 500) Expectation: If the user entered something unacceptable the system should instruct the user how to correct it or what to do. In a case of a duplicate record being blocked, the system should invite the returning user to authenticate and update the existing student record.

-Error found in salesforce response

Error Details February 28,2022 12:36:22.000 02/28/2022 Worker-0 [MuleRuntime].uber.83: [salesforce-data-api-prod].post:\contacts:application\json:salesforce-data-api-config.BLOCKING @158874f3 DEBUG event:162d65e0-98d6-11ec-a9a2-02328102feea Receiving response from Salesforce. Arguments: {endpoint=https://americascoresbayarea.my.salesforce.com/services/Soap/u/48.0/00D50000000NVw6, response=<?xml version="1.0" encoding="UTF-8"?>1964120000API REQUESTS</soapenv:Header>Use one of these records? (Student Dupe)DUPLICATES_DETECTEDtrueStudent_Contact_Duplicate_RuleContactUse one of these records? (Student Dupe)ContactFuzzyMatchEngineSAMEContact_TypecDIFFERENTLastNameDIFFERENTFirstName99.0Contact</sf:type>0031T00004NGuVDQA1</sf:Id>Tes3Feb28 Hayward3</sf:Name>SCORES Student</sf:Contact_Typec>0051T000009eHfvQAE</sf:OwnerId>2022-02-28T20:15:31.000Z</sf:LastModifiedDate>0031T00004NGuVDQA1</sf:Id>Student_Full_Name_matching1truefalse</soapenv:Body></soapenv:Envelope>}.


xmlns:sobj="urn:sobject.partner.soap.sforce.com">Contact</sobj:type>Hayward4</sobj:LastName>Tes4Feb28</sobj:FirstName></sobj:MiddleName>01250000000VBbXAAW</sobj:RecordTypeId></sobj:MailingStreet></sobj:MailingCity></sobj:MailingState>0</sobj:MailingPostalCode>US</sobj:MailingCountry></sobj:HomePhone></sobj:Email>2015-02-28T00:00:00.000Z</sobj:Birthdate>Female</sobj:Genderc><sobj:Allergiesc xsi:type="xsd:string"></sobj:Allergiesc><sobj:Emergency_Contact_Name_Phone_01c xsi:type="xsd:string">5168483324</sobj:Emergency_Contact_Name_Phone_01c><sobj:Emergency_Contact_Namec xsi:type="xsd:string">Feb28 Test4</sobj:Emergency_Contact_Namec><sobj:Emergency_Contact_Relationship_to_Childc xsi:type="xsd:string">Legal Guardian</sobj:Emergency_Contact_Relationship_to_Childc><sobj:Ethnicityc xsi:type="xsd:string">Native American</sobj:Ethnicityc><sobj:Gradec xsi:type="xsd:string">2nd</sobj:Gradec>Fairview Elementary School</sobj:School_Attendingc>test4Feb@yahoo.fr</sobj:Parent_Email_Addressc><sobj:Parent_First_Namec xsi:type="xsd:string">Feb28Test</sobj:Parent_First_Namec><sobj:Parent_Home_Languagec xsi:type="xsd:string">Hmong</sobj:Parent_Home_Languagec><sobj:Parent_Last_Namec xsi:type="xsd:string">Test4</sobj:Parent_Last_Namec><sobj:Parent_Other_Languagec xsi:type="xsd:string"></sobj:Parent_Other_Languagec><sobj:Parent_Phone_01c xsi:type="xsd:string">4627239683</sobj:Parent_Phone_01c><sobj:Parent_Phone_02c xsi:type="xsd:string"></sobj:Parent_Phone_02c><sobj:Parent_Phone_03c xsi:type="xsd:string"></sobj:Parent_Phone_03c>Grandparent</sobj:Parent_Relationship_to_Childc>Yes</sobj:Reduced_Price_Lunchc><sobj:Second_Emerg_Contact_Relationship_Childc xsi:type="xsd:string"></sobj:Second_Emerg_Contact_Relationship_Childc></sobj:Second_Emergency_Contact_Namec></sobj:Second_Emergency_Phone_01c></sobj:Second_Emergency_Phone_02c>No</sobj:Volunteer_for_this_Program_Parentc>SCORES Student</sobj:Contact_TypeC>0011T00002O0xWLQAZ</sobj:AccountId></m:sObjects></m:create></env:Body></env:Envelope>, endpoint=https://americascoresbayarea.my.salesforce.com/services/Soap/u/48.0/00D50000000NVw6}.

CritiqalPete commented 1 month ago

For now because this is originating at the API level we are going to disable the checks there until we can sort out what the UX needs to be