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

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

Open
solo-1234 opened this issue Jul 6, 2021 · 6 comments
Assignees
Labels
chore Devil is in the detail

Comments

@solo-1234
Copy link
Contributor

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
Copy link
Owner

tsalb commented Jul 6, 2021

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.

@solo-1234
Copy link
Contributor Author

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

Thanks!

@solo-1234
Copy link
Contributor Author

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

@solo-1234
Copy link
Contributor Author

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
Copy link
Owner

tsalb commented Jul 9, 2021

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.

@tsalb tsalb assigned tsalb and unassigned solo-1234 Jul 9, 2021
@tsalb tsalb added the chore Devil is in the detail label Jul 9, 2021
@solo-1234
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Devil is in the detail
Projects
None yet
Development

No branches or pull requests

2 participants