Debugging 500 Error on Salesforce Trigger?

This topic was automatically generated from Slack. You can find the original thread here.

I’m getting a 500 error response on the salesforce trigger. Can anyone help me debug this?

can you help triage when you get a chance?

Sure! I’m going to triag this now. I’m setting up Salesforce

Hello , I couldn’t reproduce your issue as I can create the source okay. In order to investigate further, could you confirm some of the points below?
• You have enabled Salesforce REST API per this document
• You have the permission to:
◦ Creates a Remote Site Setting
◦ Deploys some supporting Apex classes
◦ => I would suggest you to add the admin permission if possible
If you can expand your error (2nd image below), it might have more information

let me check!

I am a salesforce admin, so I believe the correct permissions are set. I can correctly see all of my salesforce objects in Pipedream, I get a slightly different error now. Attaching…

here is the full trigger

I tried creating a Source outside of a workflow, and got this error

I see, can you expand this Create webhook error part?

pipedream shows up under “Oauth connected apps” in salesforce so it appears the permissions are correct

your error sounds quite familiar, I’ll ping the component dev who has the context on the matter to check :pray:

Hello @U02S7FH4T89, as you are familiar with Salesforce source, would you mind taking a look at the error?

In the mean time as a workaround, would you mind trying to use the source that’s not Instant?

sure let me try, but I want to trigger this only once rather than polling on an interval.

Yeah I understand, I have pinged the component dev regarding your issue of the instant source. Until he triage it, the workaround for you to have the feature available now is use the polling source instead. After the instant source is working for you, you can simply switch your workflow to use the instant source

Yes the non instant one seems to work. I’ll use that one for now. Thanks!

@U03CXTHK4RF is there a github issue I can follow to track the resolution of this so I know when I can start using the Instant Triggers? The polling triggers won’t really work for us in production.

Yep ! Thanks for your patience, here’s the link to the issue. I’ll start working on it ASAP

you the man!

Hey ! I was able to create a webhook normally.
Can you please follow these steps and try to create the instant trigger again?