Skip to content
Bug Barometer
All issues
Working as Expected

Uncategorized

Creating activity associated to a Lead and Related To record results in "Review the errors on this page. field integrity exception..." error

Summary

In reference to the Related To field on activites our documentation states, "This field is available only when a user relates the task to a contact, not to a lead."

Task Fields: https://help.salesforce.com/apex/HTViewHelpDoc?id=task_fields.htm&language=en_US or

Event Fields: https://help.salesforce.com/apex/HTViewHelpDoc?id=event_fields.htm&language=en_US

However, user's may find that when creating or editing an activity related to a Lead record in Lightning Experience, the Related To field is available and populating it results in the following error upon saving:

"Review the errors on this page.

field integrity exception: WhoId, WhatId (cannot specify whatID with lead WhoID: 1)"

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Working as Expected with 75 reports

    Nov 30, 2026

Creating activity associated to a Lead and Related To record results in "Review the errors on this page. field integrity exception..." error · Bug Barometer