Select to view content in your preferred language

View Layer Data Error

1628
8
12-14-2022 04:05 PM
Labels (1)
BrandonA_CDPH
Frequent Contributor

I have a Feature Layer I regularly update through ArcGIS Pro by replacing the contents of the Feature Layer with updated data. There are additional view layers that filter and symbolize that data for other tools. historically, this has worked great and the data comes over to the views seamlessly.  Lately (the last couple months), I have trouble. When I update the data in the parent Feature Layer, everything looks fine. in the views, however, the data tab says "Data Error" and the Web App using the view layer shows no points. The only way around this is to completely regenerate the view layer (and reset all of the references in the We App to use the new layer), which in a lot of ways defeat the purpose of having a view layer to begin with.

I have not changed the schema at all on the original layer, it's just replaced the data that is there with new data. I have done some searching and can't seem to find a solution to this. Advice on troubleshooting tips or where to go for a solution would be greatly appreciated.

Thank you in adavance.

8 Replies
HeatherBell
Frequent Contributor

I am also having a similar issue with a view layer. Now when I try and update the data visualisation I get an error that the layer cannot be updated. It's a real issue for when we are sharing this layer as something which should be 'authoritative' with the public if we have to keep replacing the view layer. 

GIS Analyst @ The Rivers Trust
KKelechenyi
Occasional Contributor

I am experiencing the same issue.  My joined view layer was working until this morning, and now says 'Data Error'.  I recreated the joined view, and that too says 'Data Error' and will not display any features on the map. Does anyone know if Esri has addressed this issue on a different thread?

Levon_H
Regular Contributor

We are currently experiencing the exact same scenario.  No schema changes, no Item ID changes.  We have a parent layer that has many hosted view layers.  The parent layer updates just fine, the View layers are showing "Data Error" when we try to look that their tables.  

This is a recent event, as this update process have been working for months with no issues.  

BrandonA_CDPH
Frequent Contributor

Thank you @HeatherBell@KKelechenyi and @Levon_H for verifying that it's not just me. When I go to update that layer next, I'll have to get some Tech support - unless someone else has an idea... If I find anything, I'll update this post.

AnonymousUser23
Occasional Contributor

@BrandonA_CDPH @Levon_H @KKelechenyi @HeatherBell , Has anyone worked to fix this. I have dug around and fount that the viewDefinitionQuery is not in the JSON. I tried adding it but that did not help either

 

Thanks

0 Kudos
Levon_H
Regular Contributor

We created a convoluted, buggy workaround.  Because of that I won't post the details, but here's the overview.

We "copied" the hosted feature layer by doing a "Save As" in the Visualization tab.  Then opened the copied layer in ArcGIS Online Assistant to update the items' JSON.  As in, we created the query in the JSON using the Assistant, as it allows JSON editing (with a warning).  Because it's a copied "Save As" layer, it acts similar to a View, so when the parent layer is updated, this queried layer is as well.  


0 Kudos
BrandonGuo
Regular Contributor

I am having the similar issue. After multiples tries and digging, there are two bugs caused our issue.

BUG-000149669 for ArcGIS Online

This bug removed the relationship labels and caused maps "related data" pop up broken after each overwrite. After each overwrite, the old relationship name will disappear which also cased this issue. Display Name and Field Name of Related tables - Esri Community

BUG-000170446 for ArcGIS Pro

This bug on the ArcGIS Pro side didn't assign a relationship id when overwriting which cased the "Data error" message when viewing view's table. Solved by uncheck and recheck the "Allow assignment of unique IDs for sharing web layers".

Just disappointed those bugs still not fixed in a such long period. 

0 Kudos
PGebhardt_Stone_Env
Regular Contributor

I am also seeing this issue with a very simple view that is simply not editable and the parent layer is. I also have another view that is still working fine.

0 Kudos