Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlowLogEntry throws exception for empty recordId #826

Open
dominykasvitkus opened this issue Jan 8, 2025 · 0 comments
Open

FlowLogEntry throws exception for empty recordId #826

dominykasvitkus opened this issue Jan 8, 2025 · 0 comments
Labels
Type: Bug Something isn't working

Comments

@dominykasvitkus
Copy link

Package Edition of Nebula Logger

Unlocked Package

Package Version of Nebula Logger

v4.15.3

New Bug Summary

I'm using a subflow as a fault path for elements, one of the subflow's variables is recordId which is set as input. In subflow, I have Flow Log Entry action and I've set recordId to be assigned from my input variable to action.

When recordId is null/empty my flow catches exception:

An Apex error occurred: System.StringException: Invalid id:

I could make a workaround for this by checking if recordId is provided and only then use it in the action, but this makes it more complicated. Would it be possible to make Apex Action to ignore null/empty recordId?

@dominykasvitkus dominykasvitkus added the Type: Bug Something isn't working label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant