Select to view content in your preferred language

Dynamic Content to Image URL Not Working

1464
9
Jump to solution
11-12-2024 08:15 PM
ToddFagin
Frequent Contributor

I am trying to add dynamic images based on a URL to my app. I have done this before and it worked marvelously, but it is not working now on a new Experience or with the older ones that were formally working.

The short version is this.

I add an image, connect to data, specify the data source, select Dynamic, and then select the field with the image URL. I also have view for empty selection set, etc.

It is not working and, I wish to repeat, it has worked in the past.

Is this a glitch with Experience Builder or has some subtle change been made since last I did this?

ToddFagin_0-1731471209297.png

 

0 Kudos
1 Solution

Accepted Solutions
TonghuiMing
Esri Regular Contributor

Our colleagues did a bit more testing - when we tried to put this URL into the community, it couldn't show either:

TonghuiMing_0-1731566983232.png

Which indicates the server hosting this image (www.nationsonline.org) has a CORS policy or recently added one, which caused the failure to fetch this specific image. You might want to double-check that. Thanks

View solution in original post

0 Kudos
9 Replies
Jianxia
Esri Regular Contributor

@ToddFagin, thanks for letting us know. This is a regression from the release. We are working on it.

0 Kudos
Allen_Zhang
Regular Contributor

Hi Todd, can you please provide your app URL? So we can resolve this more quickly.

0 Kudos
ToddFagin
Frequent Contributor

Here is a link to the one previously working. The space between the state name and population is where the image used to be:

https://experience.arcgis.com/experience/c58da91cd8c940bd98c80cd55435b7db/?draft=true

0 Kudos
Jianxia
Esri Regular Contributor

@ToddFagin the app you shared requires log in. Could you make it public? We can't reproduce the issue in house.

0 Kudos
ToddFagin
Frequent Contributor

Please try now, I didn't realize I hadn't shared it.

Jianxia
Esri Regular Contributor

Yeah, we can access the app. Thanks @ToddFagin !

0 Kudos
TonghuiMing
Esri Regular Contributor

Well, this is very odd - I checked the configuration of your app, and the configuration looks okay. The URL is resolved, but the server returned a 403 error:

TonghuiMing_0-1731554862174.png

We are still trying to figure out what is happening.

 

@ToddFagin Could you provide more info, like if the same app/data was working last week (before our recent release)? Or is it something similar you tried that worked, but not with this specific URL?

0 Kudos
TonghuiMing
Esri Regular Contributor

Our colleagues did a bit more testing - when we tried to put this URL into the community, it couldn't show either:

TonghuiMing_0-1731566983232.png

Which indicates the server hosting this image (www.nationsonline.org) has a CORS policy or recently added one, which caused the failure to fetch this specific image. You might want to double-check that. Thanks

0 Kudos
ToddFagin
Frequent Contributor

I believe this is it. I changed the URLs and it is working now.

Thanks.