Skip to main content

Troubleshoot Payload mappings with Job data

Use Job records to inspect request data, response data, query output, target output, errors, and performance metrics for a Payload run.

Troubleshoot Payload mappings with Job data

When a Payload does not behave as expected, start with the Job record.

The Payload record shows what should happen. The Job record shows what did happen: inputs, queries, outbound data, inbound data, target results, response status, errors, and runtime metrics.

For the configuration side of the same flow, see Understand Payload data flow.

Start with the Job header

Open the Job and check the header fields first.

Confirm the Payload, status, endpoint, response status code, response status, firing mode, created date, and any error message. This tells you whether you are looking at the right run and whether the problem is configuration, API response, target DML, or runtime behaviour.

If the Job failed, read the error before changing the Payload. A failed API response, missing query result, invalid Salesforce field value, and target DML error need different fixes.

A failed Stripe checkout Job showing status, response code, response status, and run context.

The Job header is the fastest way to separate an API failure from a mapping or Salesforce write failure.

Check the runtime metrics

Open Metrics when you need to understand runtime cost.

Metrics show total runtime, CPU time, query count, DML rows, heap usage, callout duration, query duration, and DML duration. Use this when a Payload is slow, close to limits, or doing more work than expected.

A Job Metrics modal showing runtime, CPU, query, DML, and heap usage.

Metrics help you decide whether the problem is an external callout, Salesforce queries, DML, or Apex limits.

Check Data Query output

If an outbound value is missing or wrong, check the Data Query output before changing the Element.

The Job shows the query name, generated SOQL, record count, object, and returned field values. If the expected field is not present, fix the query field list. If no record was returned, fix the query filters or the runtime input used by the filter.

A Job record showing the Opportunity query output used by the Stripe checkout request.

Query output confirms whether Payloads had the Salesforce data needed for downstream mappings.

Check the outbound body

If the external API rejects a callout, inspect the outbound body, headers, parameters, and modifiers on the Job.

Compare the Job output with the external API documentation. This usually reveals missing required fields, an unexpected format, a value that was not transformed, or a query field that returned blank.

A Job record showing the form URL encoded body sent to Stripe.

The outbound body on the Job is what Payloads sent, not just what the Payload was configured to send.

For request body setup, see Map outbound request bodies.

Check Data Target output

If Salesforce data was not created or updated correctly, check the target output on the Job.

The target output shows the object, operation, identifier, field values, record id, and success result. When a target fails, this is where you can see whether the wrong record was identified, a required field was missing, or Salesforce rejected a value.

A Job record showing the Data Target result for a Stripe event that updated an Opportunity.

Target output shows the exact values Payloads attempted to write into Salesforce.

For target setup, see Configure Data Targets.

A practical troubleshooting order

Work through the Job in this order:

  1. Confirm the Job belongs to the Payload and run you are investigating.

  2. Check status, response code, and error message.

  3. Open Metrics if the run was slow or limit-heavy.

  4. Check Dynamic Inputs if the Payload was started by Flow, Apex, a button, or another Payload.

  5. Check Data Query output before editing field mappings.

  6. Check outbound body, headers, parameters, and modifiers before blaming the external API.

  7. Check inbound body, headers, and parameters before editing Data Targets.

  8. Check Data Target output before changing Salesforce fields or transformations.

Change one thing at a time, run the Payload again, then compare the new Job with the previous one.

Did this answer your question?