Select to view content in your preferred language

Add Feature for Table Returns success, Add Result when returned for relationship doesn't

107
0
Wednesday
Labels (1)
TimWestern
New Contributor III

So I have a bit of a puzzling behavior.

We have been working on a custom widget that allows us to collect data from a form, and then add it to a table in AGOL.    The edit is conducted via apply edits sending the new feature with 'add-feature' as part of the data sent.

When it returns it returns as expected and that table entry now appears:

TimWestern_0-1718830690546.png

 



This table also has a relationship with the ID Field used for the parcel, so I have to make sure the relationship is created in code.   I use a similar service call (just different feature data going to the relationship and it returns:

TimWestern_1-1718830745017.png


At first I thought it must have worked because I got a globalID back, but it doesn't include success= true and error is returned = null.  Does this mean the add failed? Or is it possible I've done something else wrong?

The table and relationship are in the same service (and are also in a map that uses the service inside of it in case that matters).

Any thoughts?


 

0 Kudos
0 Replies