Hello!
I created a 1:M relationship class between a point layer (origin) and a table (destination). EDIT: In the same gdb I have a 1:M relationship class between a polygon layer (orgin) and the same table as above (destination). Both relationships are set up with the primary key as the GlobalID (in the point and polygon layer) and foreign key as a created GUID field Log_GUID. The gdb was created in ArcGIS Pro then published to AGOL as a hosted feature layer. The relationship works as expected in Pro, but after publishing to AGOL the primary key does not copy to the foreign key when creating a new related record.
To make it even weirder, when creating the record in the form, the primary key copies(!) but as soon as I submit the record the primary key disappears and leaves the field blank. See images below:
1. Relationship class setup in pro before publishing to AGOL:
2. Create new record in Map Viewer using forms:
3. Form populates with the correct primary key into the foreign key field
4. Data is created without any error but not related to origin layer. The primary key doesn't carry over to the foreign key.
Why is this happening? It seems like it's working fine until I actually submit the form.