{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/local-government-desktop-addins/issues/140","repository_url":"https://api.github.com/repos/Esri/local-government-desktop-addins","labels_url":"https://api.github.com/repos/Esri/local-government-desktop-addins/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/Esri/local-government-desktop-addins/issues/140/comments","events_url":"https://api.github.com/repos/Esri/local-government-desktop-addins/issues/140/events","html_url":"https://github.com/Esri/local-government-desktop-addins/issues/140","id":171174059,"number":140,"title":"Multiple Network Junction Layers","user":{"login":"roemhildtg","id":5471079,"avatar_url":"https://avatars.githubusercontent.com/u/5471079?v=3","gravatar_id":"","url":"https://api.github.com/users/roemhildtg","html_url":"https://github.com/roemhildtg","followers_url":"https://api.github.com/users/roemhildtg/followers","following_url":"https://api.github.com/users/roemhildtg/following{/other_user}","gists_url":"https://api.github.com/users/roemhildtg/gists{/gist_id}","starred_url":"https://api.github.com/users/roemhildtg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roemhildtg/subscriptions","organizations_url":"https://api.github.com/users/roemhildtg/orgs","repos_url":"https://api.github.com/users/roemhildtg/repos","events_url":"https://api.github.com/users/roemhildtg/events{/privacy}","received_events_url":"https://api.github.com/users/roemhildtg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-15T13:50:34Z","updated_at":"2016-08-15T14:03:39Z","closed_at":null,"body":"When I created my geometric network between storm pipes and storm structures, it also created an extra table Storm_Net_Junctions. \r\n\r\n![capture](https://cloud.githubusercontent.com/assets/5471079/17666278/234bc9f8-62c5-11e6-8ba5-e65762661055.PNG)\r\n\r\nI have two fields on the storm_pipe layer F_ID and T_ID representing the from and to ids of the structures. AA is configured to update these fields using the TO_JUNCTION_FIELD and FROM_JUNCTION_FIELD rules. But it appears that AA is looking at the wrong junction table and is using `Storm_Net_Junctions` instead of my storm structures table.\r\n\r\n```\r\n  Setting sort order: Field - RUNORDER\r\n  Querying table for Last Value for layer: storm_pipe\r\n  Query Used: (TABLENAME = '*' OR TABLENAME = 'storm_pipe' OR TABLENAME like 'storm_pipe|*' OR TABLENAME like 'storm_pipe|%') AND VALUEMETHOD = 'Last_Value'\r\n  Number of results: 0\r\n  Querying table for rules for layer: storm_pipe\r\n  Query Used: (TABLENAME = '*' OR TABLENAME = 'storm_pipe' OR TABLENAME like 'storm_pipe|*' OR TABLENAME like 'storm_pipe|%') AND ON_CHANGEGEO = 1\r\n  Number of results: 4\r\n  Looping through the rows\r\n    ------------------------------------------------\r\n      Row Info\r\n        Row Number 1\r\n        TableName: storm_pipe\r\n        FieldName: to_struc_id\r\n        ValueInfo: storm_struc|cid\r\n        ValueMethod: TO_JUNCTION_FIELD\r\n        On Create: 0\r\n        On Change: 0\r\n\r\n      Checking for Subtype Restriction\r\n      Field Name: To Structure ID was found at index: 20\r\n                  Trying: TO_JUNCTION_FIELD\r\n                  Layer restriction found, Class name of junction is: UtilityStorm_Net_Junctions\r\n                  Layer restriction does not match, breaking\r\n                  Finished: TO_JUNCTION_FIELD\r\n    ------------------------------------------------\r\n```\r\n\r\nHere are the configured rules:\r\n\r\n![capture](https://cloud.githubusercontent.com/assets/5471079/17666313/519aa2b6-62c5-11e6-9c04-804fb239d71f.PNG)\r\n"},"comment":{"url":"https://api.github.com/repos/Esri/local-government-desktop-addins/issues/comments/239809738","html_url":"https://github.com/Esri/local-government-desktop-addins/issues/140#issuecomment-239809738","issue_url":"https://api.github.com/repos/Esri/local-government-desktop-addins/issues/140","id":239809738,"user":{"login":"roemhildtg","id":5471079,"avatar_url":"https://avatars.githubusercontent.com/u/5471079?v=3","gravatar_id":"","url":"https://api.github.com/users/roemhildtg","html_url":"https://github.com/roemhildtg","followers_url":"https://api.github.com/users/roemhildtg/followers","following_url":"https://api.github.com/users/roemhildtg/following{/other_user}","gists_url":"https://api.github.com/users/roemhildtg/gists{/gist_id}","starred_url":"https://api.github.com/users/roemhildtg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roemhildtg/subscriptions","organizations_url":"https://api.github.com/users/roemhildtg/orgs","repos_url":"https://api.github.com/users/roemhildtg/repos","events_url":"https://api.github.com/users/roemhildtg/events{/privacy}","received_events_url":"https://api.github.com/users/roemhildtg/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T14:03:39Z","updated_at":"2016-08-15T14:03:39Z","body":"You're right. Thanks. But if I run the rule on a pipe that **is** properly connected, I'm seeing this. What does \"Layer restriction does not match\" mean?\r\n\r\n```\r\nON_CHANGEGEO = 1\r\n  Number of results: 4\r\n  Looping through the rows\r\n    ------------------------------------------------\r\n      Row Info\r\n        Row Number 1\r\n        TableName: storm_pipe\r\n        FieldName: to_struc_id\r\n        ValueInfo: storm_struc|cid\r\n        ValueMethod: TO_JUNCTION_FIELD\r\n        On Create: 0\r\n        On Change: 0\r\n\r\n      Checking for Subtype Restriction\r\n      Field Name: To Structure ID was found at index: 20\r\n                  Trying: TO_JUNCTION_FIELD\r\n                  Layer restriction found, Class name of junction is: storm_struc\r\n                  Layer restriction does not match, breaking\r\n                  Finished: TO_JUNCTION_FIELD\r\n    ------------------------------------------------\r\n```"}}
{"actor":{"display_login":"roemhildtg"}}