Michael Miller<\/A> attribuutassistent<\/P><\/P>Ik heb Attribuutassistent geconfigureerd om een ServiceID (Foreign Key-veld) van de ene Intersecting Service Pipe naar een andere Intersecting Service Pipe te kopiëren. Dit werkt correct bij het plaatsen van een nieuw Service Pipe-object; echter, ik krijg inconsistente resultaten bij het splitsen van een bestaand Service Pipe-object. Als het ServiceID-veld een waarde heeft die niet linkt naar een record, werkt het correct en wordt de ServiceID gekopieerd naar het nieuwe Service Pipe-object dat wordt gemaakt door de splitsing. Echter, als het ServiceID-veld een waarde heeft die wel linkt naar een record, wordt de waarde niet gekopieerd.<\/P><\/P>In de AA-code,<\/P>sourceFeature.get_Value(sourceField) retourneert null als er een gekoppeld record is, maar retourneert de ServiceID-waarde wanneer ik een ServiceID invoer die niet overeenkomt met een record.<\/P><\/P>Is dit een bug, of weet iemand een manier om dit te omzeilen?<\/P><\/P>Hier is de exacte configuratie:<\/P>
<\/P>
Ik heb Attribuutassistent geconfigureerd om een ServiceID (Foreign Key-veld) van de ene Intersecting Service Pipe naar een andere Intersecting Service Pipe te kopiëren. Dit werkt correct bij het plaatsen van een nieuw Service Pipe-object; echter, ik krijg inconsistente resultaten bij het splitsen van een bestaand Service Pipe-object. Als het ServiceID-veld een waarde heeft die niet linkt naar een record, werkt het correct en wordt de ServiceID gekopieerd naar het nieuwe Service Pipe-object dat wordt gemaakt door de splitsing. Echter, als het ServiceID-veld een waarde heeft die wel linkt naar een record, wordt de waarde niet gekopieerd.<\/P>
In de AA-code,<\/P>
sourceFeature.get_Value(sourceField) retourneert null als er een gekoppeld record is, maar retourneert de ServiceID-waarde wanneer ik een ServiceID invoer die niet overeenkomt met een record.<\/P>
Is dit een bug, of weet iemand een manier om dit te omzeilen?<\/P>
Hier is de exacte configuratie:<\/P>
Let me try to explain the data model a little better:
There is a table called P_ServicesSummary. This table gets a uniqueid called ServiceID generated by Attribute Assistant. There is a 1:M relationship between P_ServicesSummary (Origin) ServiceID (PK) to the feature class P_Service(Destination) ServiceID (FK).
If the P_Service feature that I am splitting has a ServiceID value that matches a ServiceID in the P_ServicesSummary, it will return null as the value; however, if I enter "dumb data" into the ServiceID field like "12345", so there isn't a matching record in P_ServicesSummary table. The get value will return the "12345" and copy it to the newly created service feature correctly.
I will send the log information shortly.
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.
I was thinking of something else, but I do not see that option. Could you activate the log file and maybe that can help us narrow it down. How are you splitting the service line? Does not make sense that get_value is not getting the value when split, unless the new feature is not getting is ID carried over because of the 1:M relationship. If you split a main that has a valid ID, with the AA turned off, do the resulting 2 features have the same ID, hence violating the 1:M relationship?
The key "OnCreateWhenSplit" has it's value set to "False". Should I change this to "True"?
There is an option to suspend the AA on split, can you check that in the loaded.aa.config file?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.