Michael Miller attributeassistant
I have Attribute Assistant configured to copy a ServiceID (Foreign Key field) from one Intersecting Service Pipe to another Intersecting Service Pipe. This works correctly when placing a new Service Pipe feature; however, I get inconsistent results when splitting an existing Service Pipe feature. If the ServiceID field has a value that doesn't link to a record, it will work correctly and copy the ServiceID to the new Service Pipe feature that gets created by the split. However, if the ServiceID field has a value that does link to a record, the value is not copied.
In the AA code,
sourceFeature.get_Value(sourceField) returns null if there is a linked record, but returns the ServiceID value when I put in a ServiceID that doesn't match a record.
Is this a bug, or does anyone know a way to work around this?
Here is the exact configuration:
TABLENAME | FIELDNAME | VALUEMETHOD | VALUEINFO | ON_CREATE | ON_CHANGE | ON_CHANGEGEO | ON_MANUAL | RUN_WEIGHT | COMMENTS |
P_Service | ServiceID | INTERSECTING_FEATURE | P_Service|ServiceID | 1 | 0 | 1 | 0 | 10 |
Just reviewing the issue, looks like I did not fix it, and it is something I cannot fix
https://github.com/Esri/local-government-desktop-addins/issues/224
OK, so I tested changing this value from "False" to "True" and it still doesn't work. The fields that do not have a relationship class with a link record work correctly, but the ServiceID field doesn't. For example, my InServiceDate and InServiceYear will copy to the newly created split feature, but the ServiceID does not.