Thursday
In my recipe, I’m using a trigger condition to pick new or updated Contracts from Salesforce where:
contract_end_date.to_date > yesterday
If one of the records has a blank or null Contract End Date, how does the Salesforce connector behave? Will it still evaluate and process the remaining records that meet the trigger condition, or will the empty date cause the entire batch to fail?
Thursday
Ah, now I am able to upload. Please find below screenshot.
Thursday
actually your error is, formula can't be applied to NULL values, for that simply you can add another trigger condition like CONTRACT_END_DATE.isPresent as shown in image.
You can implement this in 2 approaches,
1. as you mentioned about trigger conditions
2. using SOQL WHERE clause
Please check the images for both approaches:
Hope you got my point?
Thanks,
J Rajesh Kumar.
Friday
Yes, I was able to resolve the issue by adding a null check in my condition. Before applying this fix, the recipe was not processing records even when they met the criteria. Ideally, the connector should throw an error for only the problematic record and continue processing the remaining valid records, but in this case the entire job stopped due to the null value.
Isn't it connector need to handle this smartly ?
Thank You
San
Friday - last edited Friday
Have you tried with Query?
if not, Please try with SOQL query once and let me know, if you still face an error.
Friday - last edited Friday
Hi @San ,
Here is my understanding on the ask
Why it can affect other jobs
Concurrency Behavior: When concurrency is set to 3, the recipe does not display an error message upfront like it does when concurrency is 1. If you want the trigger to validate and show errors before processing, that’s not recommended—but you can always add a condition check after the recipe is triggered.
Field Type Impact: For Date/DateTime fields, missing values behave differently in your case, fields are not mandatory. Comparisons like “less than” or “greater than” on empty dates will show an error even though recipe is running, unlike numeric fields (e.g., amount, ID) where such conditions typically skip the job.
Skipping job when we set up above condition
Thanks and Regards,
Shivakumara K A