+ Start a Discussion
Stefan GarciaStefan Garcia 

Creating Object Relations | Error ("FIELD_INTEGRITY_EXCEPTION")

Hello, 

I believe that I have completed all of the requirements within the Create Object Relations Trail - BUT - when I "Check Challenge" - I receive the error message below. 

Error Message:
"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: 00536000001A7k9AAC: [User__c]" 

Error Screen Shot:
User-added image
Additionally - below is a screen shot of the customer object I have created (i.e. Campsite Reservations). 

Please let me know and thanks in advance for the help!

Custom Object Screen Shot ("Campsite Reservations"):

User-added image
 
Best Answer chosen by Stefan Garcia
Deepak GulianDeepak Gulian
I got your Error:-

In Campsite Reservations field User__c should be lookup to User object

User__c Lookup(User)   Its need to be this

All Answers

Deepak GulianDeepak Gulian
Name field should be auto number.
The Name field for Campsite Reservation must be a 'Auto Number' type (not Text). Use 'CR-{0000}' as the display format for the Name field and a starting number of 1.
Stefan GarciaStefan Garcia
Hello Deepak, 

I believe that I have already done that - can you see below?

User-added image
Deepak GulianDeepak Gulian
Can you please share "Campsite__c" object screenshot also?
Stefan GarciaStefan Garcia
Hello Deepak, 

Please see below. 

User-added image
Deepak GulianDeepak Gulian
I got your Error:-

In Campsite Reservations field User__c should be lookup to User object

User__c Lookup(User)   Its need to be this
This was selected as the best answer
Stefan GarciaStefan Garcia
Perfect - it worked. 

Thanks again for the assistance Deepak!