Skip to content

Fix Defect #826 - FlowLogEntry throws exception for empty recordId#893

Closed
krishnandusarkar wants to merge 1 commit intojongpie:mainfrom
krishnandusarkar:bugfix/flowlogentry-exception-826
Closed

Fix Defect #826 - FlowLogEntry throws exception for empty recordId#893
krishnandusarkar wants to merge 1 commit intojongpie:mainfrom
krishnandusarkar:bugfix/flowlogentry-exception-826

Conversation

@krishnandusarkar
Copy link
Copy Markdown

@krishnandusarkar krishnandusarkar commented Aug 6, 2025

While attempting to log from Flows, I was encountering an unhandled exception when the Id field was either left blank.

This issue arose because the FlowLogEntry class defined the recordId parameter as an Id type, which is non-nullable.

To address this, I updated the recordId parameter to use the String type instead. I then added logic to convert it to an Id only if the value is not null. This change successfully resolved the issue.

@krishnandusarkar krishnandusarkar changed the title Fix Defect 826 Fix Defect #826 - FlowLogEntry throws exception for empty recordId Aug 6, 2025
@jongpie
Copy link
Copy Markdown
Owner

jongpie commented Feb 23, 2026

@krishnandusarkar thanks for working on this, and apologies for my very late response! I'm going to close this PR though, as this isn't something that can or should be fixed in Nebula Logger:

  • Changing the data type from Id to String in FlowLogEntry unfortunately isn't supported in managed packages, so this solution won't work for Nebula Logger's managed package
  • @jkranz-rk (one of the Flow product managers at Salesforce) mentioned in this comment that this should now be solved in the Winter '26 release/any Flows using v65.0 or newer

I'll confirm that the Winter '26 release definitely fixed the issue before I close out issue #826. Thanks again!

@jongpie jongpie closed this Feb 23, 2026
@jongpie jongpie added Logging Source: Flow Items related to using Nebula Logger within Flow Layer: Logger Engine Items related to the core logging engine Salesforce limitation labels Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Layer: Logger Engine Items related to the core logging engine Logging Source: Flow Items related to using Nebula Logger within Flow Salesforce limitation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants