LightningFlowComponents icon indicating copy to clipboard operation
LightningFlowComponents copied to clipboard

*Datetable 4.0.12* - Error for LWR Guest User - Unauthenticated

Open bryan3200 opened this issue 2 years ago • 14 comments

Steps to reproduce

Steps to reproduce the behavior:

  1. Load flow that has the datatable on it that works in Community and internal to a page that guest user can access.
  2. Open link to the page and you get an error when it tries to render the datatable. See error: Cannot read properties of undefined (reading 'split')

Screenshots

image

bryan3200 avatar Jan 22 '23 01:01 bryan3200

What version of Datatable are you running?

ericrsmith35 avatar Jan 22 '23 21:01 ericrsmith35

Version 4.0.12

BDOGG32 avatar Jan 22 '23 21:01 BDOGG32

Does the flow work with authenticated users? Is it set to run in System Mode?

ericrsmith35 avatar Jan 28 '23 18:01 ericrsmith35

Yes it does work with Authenticated Users. It is running in system mode.

bryan3200 avatar Jan 28 '23 18:01 bryan3200

I think this may be a security issue. Do other flows with standard components work?

ericrsmith35 avatar Jan 28 '23 18:01 ericrsmith35

Yes they work. I can get it to show everything on the screen but the Datatable component.

bryan3200 avatar Jan 28 '23 18:01 bryan3200

It may have to do with how I'm trying to generate the site url. Can you run the flow and show me what appears in the browser console view? (CTRL-SHIFT-I), select the Console tab.

ericrsmith35 avatar Jan 28 '23 18:01 ericrsmith35

Here is what I get:

image

bryan3200 avatar Jan 28 '23 19:01 bryan3200

I am getting that behavior with a LWR site. If I use aura site it gives me this:

image

When I click OK on this I get this:

image

Its showing no data for the table but you can see that controller passed the data

bryan3200 avatar Jan 28 '23 19:01 bryan3200

It definately looks like LWR sites may have an issue here. What object are you using for the Datatable?

ericrsmith35 avatar Jan 28 '23 23:01 ericrsmith35

ContentDistrubution - We have public links to documents that we want guest users to have access to in a table.

bryan3200 avatar Jan 28 '23 23:01 bryan3200

Does this work with the new standard Data Table component?

ericrsmith35 avatar Jan 28 '23 23:01 ericrsmith35

I have not tried that. But I will give it a shot.

bryan3200 avatar Jan 29 '23 01:01 bryan3200

I have tried and it errors out on the LWR site. I get this for the standard Data Table: Something went wrong with the "Voting_Files_table" screen component on the "Cast Ballot Flow" flow. Contact your Salesforce admin about this error. LWR3008: Error loading https://vforce--vmxdev2.sandbox.my.site.com/virtualforms/webruntime/component/latest/prod/en-US/dxp_flowruntime%2Fdatatable

image

With that said I tried it on the aura framework site it does work and shows the data table with Content Distribution.

bryan3200 avatar Jan 29 '23 17:01 bryan3200