Skip to content

Invalid field Event_ID__c for SObject Stripe_Webhook__c #9

@izeta

Description

@izeta

Description Resource Path Location Type
Save error: Invalid field Event_ID__c for SObject Stripe_Webhook__c StripeWebhookListener.cls /ocegSalesforce/src/classes line 101 Force.com save problem

In line 101 of StripeWebhookListener.cls, there's use of Event_ID__c:
} catch (WebhookDelayedProcessor.WebhookDelayedProcessorException e) {
Stripe_Webhook__c webhook = new Stripe_Webhook__c(
Webhook_Data__c = RestContext.request.requestBody.toString(),
Webhook_Type__c = event.stripeType,
Event_ID__c = event.id
);

But the problem is that Event_ID__c is not defined/declared in the Stripe_Webhook__c.object. Commenting it out made the error go away.

Same goes with Error_Message__c.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions