-
"No such column 'firstName' on sObject of type i42as__OrderEvent__e", "errorCode":"INVALID_FIELD"
In Salesforce, custom platform event and custom objects are similar to tables in a database, and fields are similar to columns in a table. This error message indicates that you're trying to access a field named 'firstName' on an object called 'i42as__OrderEvent__e', but that field doesn't exist on the object.
If the 'firstName' field doesn't exist, you'll need to add it to the 'i42as__OrderEvent__e' object before you can access it. You can do this by checking the object's definition in Salesforce Setup -> Platform Events -> OrderEvent__e -> Custom fields section.
If the 'firstName' field does exist, make sure the field name is spelled correctly. Field names in Salesforce are case-sensitive, so 'firstName' is different from 'Firstname' or 'FIRSTNAME'.
Also pay attention to the ending appended to all custom fields "__c" :
'firstName' is different from 'firstName__c'. -
STRING_TOO_LONG
Receiving a "STRING_TOO_LONG" error while attempting to publish platform events indicates that the content in a specific field surpasses the character limit set. To resolve this, you can modify the field length in the platform event field definition within the Setup. It's important to note that any platform event that triggers an error will not be resent and will be lost.
Comments
0 comments
Please sign in to leave a comment.