Get Constituent Latest Gift and Greatest Gift- Flow Fails in No Giving

Options

I just realized yesterday that within the last week that one of my flows was failing on Get Constituent Latest Gift and Get Constituent Greatest Gift from the NXT Connector. It happens when the constituent had no giving. It's unfortunate that these “breaks” happen without any notice.

Here's the error I am getting:

[{"message":"The given constituent does not have any gifts.","error_name":"ConstituentDoesNotHaveGifts","error_code":404,"raw_message":"The given constituent does not have any gifts.","error_args":[]}]

Luckily I used Glen's suggestion below which did work:

For the condition for last gift date I used this:

length(coalesce(outputs('Get_constituent_latest_gift')?['body/date'],''))

Carolyn Grant

Middlebury College

Categories