+ Start a Discussion
Sachin Ks 5Sachin Ks 5 

I am trying to finish the "Create custom objects, fields, and relationships" Challenge.

Error I am getting is "Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, User: id value of incorrect type: 00528000003zbMiAAI: [User__c]"

In the question, one point is "
Add a custom field to Campsite Reservation with the type 'Lookup' related to the 'User' object with the field name and label of 'User' and Child Relationship Name of 'Campsite_Reservations'. The resulting API name should be 'User__c'."  I am little confused about this, should we create a a new object called User? or should we put lookup to 'Campsite' Object and name the Field User??This is the Campsite Reservation Object
badibadi
You create new lookup relation field in Campsite Reservation object  to User object with

Related to: User
Fieldname: User
Child relationship Name: Campsite_Reservations

The field should look like this 

User-added image

User-added image