Suite 8.8 - Workflow Not Setting Date Field to NULL - Inappropriately

Suite 8.8 - New install. (Have imported Many records)

Here is a workflow rule I’ve configured:
(Which, anecdotally, works fine on 7.14.6)

When the workflow triggers, the “Lead” record update ‘should’ be setting the field “Lead Greeting Card 1 Sent” to Today’s date, but I see the query is setting the date field to NULL.

Mon Mar 31 2025 at 12:55:33 [152917][1]
[INFO] Query:UPDATE leads_cstm 
SET  jjwg_maps_lng_c=0.00000000 ,jjwg_maps_lat_c=0.00000000 ,jjwg_maps_geocode_status_c='' ,jjwg_maps_address_c='' ,ac_tag_dump_c='All Leads CORE Campaign COMPLETED, Valentines Value Promotion, 2024-12-Kickmas' 
,active_student_ct_range_c='' ,activecampaign_id_c=NULL ,ams_sid_c='' ,benefit_desired_2_c='' ,benefit_desired_3_c='' ,benefit_desired_primary_c='' 
,days_since_last_activity_c=NULL ,days_since_last_any_connect__c=NULL ,days_since_owner_connect_c=NULL ,dead_lead_reason_c='' 
,demo_1_apt_datetime_c=NULL ,email_2_c='' ,email_3_c='' ,facebook_business_page_c='http://' ,facebook_profile_c='http://' ,interview_apt_c=NULL 
,interview_complete_date_c=NULL ,last_activity_date_c=NULL ,lead_greeting_card_2_sent_c=NULL ,lead_greetingcard_1_sent_c=NULL 
,lead_greetingcard_3_sent_c=NULL ,lead_pkg_1_sent_c=NULL ,lead_pkg_2_sent_c=NULL ,lead_pkg_3_sent_c=NULL ,lead_postcard_1_sent_c=NULL ,lead_postcard_2_sent_c=NULL 
,lead_postcard_3_sent_c=NULL ,legacy_last_action_date_c=NULL ,legacy_lead_source_c='' ,legacy_notes_c='' ,monthly_gross_revenue_c='' ,num_multi_schools_owned_c='' 
,other_full_svc_billing_used__c='' ,other_software_used_c='' ,other_website_used_c='' ,phone_mobile_invalid_c='4074944237' ,phone_mobile_val_check_date__c='2025-01-09' 
,phone_mobile_val_chk_carrier_c='Google (Grand Central) - SVR' ,phone_mobile_val_chk_type_c='voip' ,postponed_followup_date_c=NULL 
,postponed_reason_c='' ,primary_language_c='English' ,school_ownership_category_c='' ,last_owner_connect_date_c=NULL ,legacy_assigned_user_c='' 
,last_any_connect_date_c=NULL WHERE id_c='29680a1c-6b12-ae2e-087f-6780417f8ecb'

Clearly it’s setting this to NULL:
lead_greetingcard_1_sent_c=NULL

I’ve tried setting many different dates, by selecting a specific date in the workflow builder, setting it to the date the record was created etc…but still, it continues to set the date to NULL…

Ok, after much testing…I’m not convinced these fields are getting set to Null…I think they are not being updated at all.
Does that smell like some kind of relationship issue??

Any thoughts???

@pgr ?

Hello Toby,

that does small like a relationship issue indeed. :smiley:
There is this flex relate which behaves a bit differently from the standard relate. Plus: It’s an activity module - they behave a bit differently again :wink:

What I’ve done now is simply:

  1. Added a new relationship between leads and calls
  2. Built a similar workflow like yours to update the related lead

It was working right away - even though I haven’t change the related value in the modify action.

Thanks for the help @BastianHammer !

Hmmm…When I try to add a relationship to the Lead Module, I get an error in the GUI, and this is in the error log:

Tue Apr 1 2025 at 12:23:14 [201738][1][ERROR] Unable to get proper side for link contact

Tue Apr 1 2025 at 12:23:35 [194470][1][ERROR] Given parameter should contains index “copy_email_addresses”

Tue Apr 1 2025 at 12:23:35 [194470][1][ERROR] Email address copy error occured, bean was: Calls

Tue Apr 1 2025 at 12:23:35 [194470][1][ERROR] Unable to load related bean by id

Tue Apr 1 2025 at 12:23:38 [201738][1][ERROR] Trying to load subpanel without definition: leads_calls_1 in module Leads

Tue Apr 1 2025 at 12:23:46 [202031][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:46 [202031][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:46 [202031][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:46 [202031][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:46 [202031][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:46 [202031][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:46 [202031][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:46 [202031][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship projects_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship projects_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship projects_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship projects_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship projects_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship projects_users_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship am_projecttemplates_users_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship projects_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship projects_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship projects_users_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship am_projecttemplates_users_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship projects_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship projects_users_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship am_projecttemplates_users_resources

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

Tue Apr 1 2025 at 12:23:47 [197220][1][ERROR] Unable to find relationship emails_email_templates

The entry is made in the relatioships table in the Dbase, but when running the Workflow, it still seems not to trigger the action.

Is there some way I can ‘reset’ all the relationship to default?
Any other suggestions??

That’s odd, it didn’t happen here.

To reset your relationships you can reset your module:


and then clear only the relationships:

That will remove your custom relationships.

That’s interesting! I never noticed it.

So, if I have issue with custom relationships, could I clear them and add them back? :thinking:

Thanks for that.
Very cool tool…however, every time I try to create a new custom relationship I’m getting an error.
(It is odd that I can see the relationship set in the relationship table…but still some error…)
It’s also the case, that no matter what ‘direction’ I try to create the relationship (from lead to call, or call to lead) I still get the error.

The workflow is not triggering with, or without the error.

I think I’m going to go back to ‘formula’, and reinstall 8.8 fresh, and see if I can get that to work.
Seem right??
(I mean, other than the pain and suffering I’m putting myself through…heh)

It loads slow but I think you can try it out here. Instance with admin access.

https://www.softaculous.com/demos/SuiteCRM

Thanks again @BastianHammer and @rsp

On @rsp brainwave, I’ve tried to configure this in that sandbox:
https://www.softaculous.com/demos/SuiteCRM

I’m not able to get this to work in the Sandbox either…
Here is what I have set up:

Custom Date field in Lead Record:

Workflow to “set” that date field on the logging of a call.

Built relationship(s) - one at a time in both the lead and call module. (Tested by submitting a call log each time) - but the date is not being set.

Any thoughts???

Perhaps anecdotally…I also see this periodically in the sandbox, when configuring this:

To re-mention:
This type of set up and workflow is working fine in 7.14.6, WITHOUT having to create additional relationships between these modules. I have MANY of them working in 7 similar to this.

Is it possible there is some underlying issue here preventing this from working?

Is perhaps 8.8 not quite production ready?

Bumping this a little.
Any thoughts @pgr @BastianHammer ??

I think this is not working in the sandbox either…?

Try Admin / Repairs / Repair relationships

Yeah…did that a few times.
Reset the module(s) and more…

I think the thing that’s most worrisome, is that setting up the same type of workflow in the Sandbox (Softaculous - SuiteCRM Demo) app doesn’t work either…so perhaps a ‘real’ issue?? (Where that same workflow works fine in V7).

For now, it’ll prevent me from migrating to 8…

image

You should try getting the full text of those errors (ideally, with a stack trace).

If you’re on 8.8, I believe these are now logged into suitecrm.log, can anybody confirm?

If not - then go to symfony dev mode in app.env and you should get them in the network tab of the browser’s dev tools.

Ok guys…I’ve done a LOT on this one.

I think I’ve narrowed this down to the “Lead” module for some reason.
I Nuked my entire install, and set up a brand new, fresh install of 8.8.
I set up a similar workflow on a custom Date field, and still the system is not setting that value.
(Works fine on “Account” module, but not on Lead Module.

Here is the error log on Debug.
suitecrm.zip (131.4 KB)

I tried to update a Lead record named: Test Lead; AAA Test
With a Call log named “AAA Test Lead Call 003”

Any thoughts y’all?? (@pgr @BastianHammer @rsp )?

Do we have relationship between Accounts & Calls?

Do we have similar relationship between Leads and Calls?

You can check it in the studio.

This is a stock fresh install…so the relationships it has is what it’s currently ‘coming’ with…I’ve not changed any.

To - re-mention, this same functionality works fine in V 7.14.6.


Do these stock relationships seem right?

I wish I know that why it is working in 7.14 but not working in 8.8 :slightly_frowning_face: but I do not know.

Just make sure you have data in the system and you’re using same workflow settings in the v8.8 :upside_down_face:

Do yo have custom stuff such as hooks in custom/modules/Leads?

No…this is ‘literally’ a fresh, clean install.
Fresh DBase, Fresh Files etc…
I’ve only created 1 custom field, 1 workflow rule, and added 1 lead record, and a few call records to test.

It is slow but instance with admin rights

https://www.softaculous.com/demos/SuiteCRM


Demo version v8.8

I’ve already tested it there in the sandbox, and see the same issue…
Then I nuked my install, and did a fresh, clean install…and see the same issue…