Select to view content in your preferred language

Error 10500 String to Integer after Adding Relationship Class

271
1
Jump to solution
10-28-2024 08:36 AM
Blevins_Mark
Frequent Contributor

I have two separate surveys, and I want a relationship between the layers behind the surveys. Both surveys work fine after published without making the following modifications.

  • In Pro, export the layers of the two surveys to a fgdb.
  • In Pro, build relationship class.
  • In Pro, share fgdb layers with relationship class as web layer to enterprise portal.
  • In survey123 connect of the two surveys, point submission urls to new layers

After configuring the forms, i get this error on the layer that would be the parent in the relationship :

[{"id":0,"addResults":[{"success":false,"globalId":"{B3DFC754-AB76-43EC-863D-0A3D57C9FDF5}","error":{"code":10500,"description":"Cannot convert a value of type 'String' to 'INTEGER'."},"objectId":null}],"updateResults":[],"deleteResults":[]}]

The other survey with the layer that would be the child in the relationship works successfully. Is it something I am doing with building the relationship in pro? Is this not possible? I dont really undersdtand the error, as I am not trying to do a conversion.

0 Kudos
1 Solution

Accepted Solutions
Blevins_Mark
Frequent Contributor

solved...issue was that i was using the same hosted layer for the submission url in each survey but was trying to hit the separate indexes in which by specificng the form id...solution was to create two view layers for the two indexed layers with one layer in each, and then use those views in the submission url.

View solution in original post

0 Kudos
1 Reply
Blevins_Mark
Frequent Contributor

solved...issue was that i was using the same hosted layer for the submission url in each survey but was trying to hit the separate indexes in which by specificng the form id...solution was to create two view layers for the two indexed layers with one layer in each, and then use those views in the submission url.

0 Kudos