Slaesforce FAQ

is not a valid salesforce id for the type opportunity

by Emerald Abbott I Published 2 years ago Updated 1 year ago
image

There could be opportunities that are valid IDs in salesforce but some users can't see them due to sharing settings on the org or CRUD on their profile. So while it may be a valid ID in your system, for some people it will appear as though it doesn't exist.

Full Answer

What does ID value of incorrect type mean in Salesforce?

If you are receiving the Salesforce Error "ID Value of Incorrect Type" this means that an ID being sent to Salesforce is not the correct type that Salesforce is expecting. For example, some fields in Salesforce can only accept certain ID types (e.g., Contact ID, Account ID, etc.).

What does 'record type ID is not valid for the user'?

'Record Type ID: this ID value isn't valid for the user:' error occurs in Lightning mode for Opportunity creation on VF page. We are using standard Salesforce action ($Action.Opportunity.New) on custom VF page for Opportunity creation. It works fine in Classic mode but not in Lightning mode. In Lightning mode it shows record type selection.

How do I find the source of an error in Salesforce?

At the top right of your Salesforce Connector choose Go to... and then select Salesforce Objects Reference. Next, find the object that is listed as the source of the error. For example, your error might read: "Create Attachment - Parent ID: id value of incorrect type."

Can we use Salesforce action on custom VF page?

We are using standard Salesforce action ($Action.Opportunity.New) on custom VF page for Opportunity creation. It works fine in Classic mode but not in Lightning mode.

image

What does it mean when you get an error in Salesforce?

If you are receiving the Salesforce Error "ID Value of Incorrect Type" this means that an ID being sent to Salesforce is not the correct type that Salesforce is expecting.

What to do if your error message is only showing one ID?

If your error message is only showing one ID (For example, "2.1. Create Attachment - Parent ID : id value of incorrect type: 00P41000005zgucEAA") the best first step is to look at your Salesforce Objects Reference.

image
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9