tsalb/lwc-utils

Recipes - SOQL Datatable - Show Selection in Collection Datatable flow error

solo-1234 opened this issue · 6 comments

On the Collection Datatable tab, the flow called SOQL Datatable - Show Selection in Collection Datatable throws an error. After selecting contacts and clicking next, it displays an unhandled fault message.

(This is in a sandbox with a clean installation of core + recipes)

The error in the email is

Error element Show_Row_Data (FlowScreen).
The flow failed to access the value for Selected_Contacts_Loop.Account.Name because it hasn't been set or assigned.

Seems like the issue is that the SOQLDatatable in the flow only stores AccountId and not Account.Name, so the flow can't access it later. I added Account.Name to the soql in the flow but for some reason got the same error again.

tsalb commented

FWIW, never use a clean sandbox when testing out the recipes since they are meant for scratch org (as a first pass)

I did remember fixing this though, so it might be the packageIds not being fixed. I'll investigate this one later.

I hear - I guess that would be a good reason to learn how to use scratch orgs.

Thanks!

Just installed in a new scratch org and I see the same flow error

Okay to clarify - I installed core+recipes into two scratch orgs, one via the cli and one via the install links, and both orgs throw this error.
Wonder if it's related to #54 perhaps!

tsalb commented

Action item is on me to redo the fix, I probably forgot to pull from scratch org prior to packaging.

IIRC, flow now throws away lookup relationships for unknown reasons. I will adjust the recipe according.

Interesting, I didn't realize it was a new issue!