How to resolve when an Appointment, Sale or Lead Source are not attached to the Prospect. Troubleshooting orphaned records generally is described as two records that should be related to one another in the system, but for some reason are not. This can sometimes occur with Campaign Members, Lead Sources, or Appointments. One characteristic is that the breadcrumb trail at the top of the page would be missing. The easiest way to resolve this is to expose all fields by using the native Salesforce Edit page to re-related the records to one another.
Override the Visualforce page with the native Salesforce Edit page
Navigate to a record that has been orphaned, you'll need to alter the URL to override this page.
Step 1: You will remove the highlighted text from the URL (everything after .com/ up to the unique Record ID):
Step 2: Next you will remove the highlighted text from the URL (everything AFTER the unique Record ID):
At this point, the URL will look something like this:
Step 3: Now, you'll type after the unique Record ID the following text: /e?nooverride=1
Making the new URL look like this:
Click Enter, which will load the native Salesforce Edit page.
Here you will use the Lookup fields to relate this record to the appropriate Prospect, Lead Source, etc.
For more information on temporarily overriding a Visualforce page, see also: Override Visualforce pages