Select to view content in your preferred language

Text widget Arcade expression connected to multiple data layers stops working after period of time

252
3
Jump to solution
07-07-2025 09:43 AM
Labels (1)
EdwardMcFarlin
Occasional Contributor

I used an Arcade expression that was connected to some layers in a Text widget in an Experience Builder app last week. The widget worked as expected. When I checked the app today, the Arcade expression wasn't returning anything. When I checked the widget's Arcade expression it was throwing an error on the $dataSources profile variable saying that it "is not defined".

EdwardMcFarlin_0-1751905039036.png

Also the Arcade editor now shows that this profile no longer has any Profile variables:

EdwardMcFarlin_1-1751905170664.png

Now, if I try to add another Arcade expression into this same Text widget, it just shows an empty script (before it had a built-in function and commented-out variables that linked to all of the layers I had defined in the "connect to data" in the Text widget configuration). If I try to add dynamic content, that works. If I create a new Text widget that is connected to just single layer, an Arcade expression works. But if I try to make an Arcade expression connected to more than one layer in the map, it again doesn't even recognize the $dataSources profile variable. The weird thing is that it was working fine a few days ago.

0 Kudos
1 Solution

Accepted Solutions
ShengdiZhang
Esri Regular Contributor

Thanks @EdwardMcFarlin , this bug should be fixed by today's update.

View solution in original post

3 Replies
ShengdiZhang
Esri Regular Contributor

Thanks @EdwardMcFarlin , this bug should be fixed by today's update.

DavidHanimann
Emerging Contributor

I'm still experiencing this bug in the Developer Edition. Will this be fixed any time soon?

Latest version downloaded from here: https://developers.arcgis.com/experience-builder/guide/downloads/

0 Kudos
EdwardMcFarlin
Occasional Contributor

Oh great! It is working again! Thank you, @ShengdiZhang!

0 Kudos