POST
|
Has anyone managed to solve this? We're running into a similar issue. Standard Portal Auth, nothing sophisticated. It's worked for months with mobile clients connecting and synchronizing and suddenly poof. If we reboot the server everything works for about 2 hours and then falls apart. This error shows up on all services on the server. Failed to return the service configuration 'XYZ.MapServer'. Server machine 'https://myserver.domain:7443/arcgis/sharing/rest/search' returned an error. 'Invalid token.'
... View more
09-22-2022
01:09 PM
|
0
|
0
|
4385
|
POST
|
Yes, both sub modules implement the category through <updateCategory refID="my_special_tool"> and both contain an defined interface which allows for communication between the host and the embeddable components. It's a very odd problem - it's almost like Pro just isn't incorporated the control1 embeddable control, I can see it's installed in the Pro Addin's manager, but Pro just isn't readying the config.daml from it
... View more
05-12-2022
04:35 AM
|
0
|
0
|
745
|
POST
|
Ah, my apologies. No, solution 1 is acting as the Host and has the Host control - it is the one that defines the component category. Solution 2 has two independent modules (embeddable controls) which the Host Control needs to see and be able to load depending on conditions present. The modules in solution 2 do not need to see each other and have no dependencies between them. It is only solution 1 (Host) which needs to load the addins. When I call var cat = Categories.GetComponentElements("my_special_tool") cat should have two (or more entries) for the components which implement that DAML element. It did work, then something broke. So I know it's not inherently wrong, I am trying to trouble shoot why Pro just stopped seeing the one module and attempting to avoid moving it into a new solution which Pro can see and load
... View more
05-12-2022
04:24 AM
|
0
|
2
|
746
|
POST
|
I am not sure what you mean? The two components in the second solution are independent of each other (i.e. no dependencies). What I discovered is some of the references in Control2 were broken, I removed them and added in the ArcGIS Pro Extensions nuget, it build just fine. Otherwise the two DAML's (Control1 and Control2) are the same (aside from class and viewmodel names, etc). What was really bizarre, is it worked for days, then suddenly Pro just stopped registering Control2. I did upgrade my Visual Studio, so it hypothetically could be related to that, but one would have thought both embeddable controls would have broken, not just one of them
... View more
05-12-2022
04:02 AM
|
0
|
4
|
749
|
POST
|
All, very annoying and thorny problem. Solution A - I have defined a new DAML category <insertCategory id="my_special_tool"/> This solution has an ArcGIS Dockpane which loads in Embeddable Controls using the ContentPresenter pattern. This works quite well. Solution B - Has 2 projects which contain the embeddable controls (defined as ArcGIS Modules, with Embeddable controls added) In the categories section in their DAML's I have <categories> <updateCategory refID="my_special_tool"> <insertComponent id="Control1" className="Control1ViewModel"> <content className="Control1View" displayName="Control1" /> </insertComponent> </updateCategory> </categories> and the second is <categories> <updateCategory refID="my_special_tool"> <insertComponent id="Control2" className="Control2ViewModel"> <content className="Control2View" displayName="Control2" /> </insertComponent> </updateCategory> </categories> I can build both modules and see them get added as addins to the Pro system. When I start Pro and load my dockpane I can issue the call var cat = Categories.GetComponentElements("my_special_tool") I used to get both addins (Controls), then suddenly my second addin just stopped working. No matter what I try, deleting the addin cache, rebooting, nothing will enable the second one to be seen. It is almost like Pro, on startup isn't reading the second addin's DAML file (though I can see it's installed). Using the GetComponentCategories, it returns only the 1st solution and not the second. Any thoughts / options / troubleshooting tips would be much appreciated. I have had this before and I just created a new solution, but surely there must be a better way of dealing with components that just stop loading in Pro. Thank you
... View more
05-11-2022
03:28 PM
|
0
|
6
|
844
|
POST
|
Did you ever figure this out? I know one can change the visibility at the layer level which changes the table as well. Did you determine if it's possible to only alter the feature inspector itself?
... View more
03-11-2022
08:22 AM
|
0
|
1
|
729
|
POST
|
Rich Ruh, quick question. Looking through the trace arguments and everything, it all works very well. Is it easily doable to use attributes on the underlying features to constrain the trace? I.e. set up a condition where I can query and constrain based on Attribute Value "A", something like trace a water line, but only where pressure is 50? or material is "steel"
... View more
09-01-2020
04:07 AM
|
0
|
1
|
879
|
POST
|
Rich, Thank you, that was relatively painless - ended up adding it to the Filters in order to stop the trace, but it's working well now.
... View more
08-25-2020
12:42 PM
|
1
|
2
|
879
|
POST
|
Hi, I am trying to trace a Utility Network with ArcGIS Pro 2.6 using a custom C# trace task (need to do some neat stuff). Any one know how to pass in a trace argument for a condition barrier? Subnetworks—ArcGIS Pro | Documentation I'd like to be able to set the condition barrier programmatically for a network category Thanks, Kieren
... View more
08-25-2020
10:36 AM
|
0
|
4
|
966
|
POST
|
Xander Bakker thank you for the idea. In this case though, I need to update a record in the parent when the child is deleted, I am not actually triggering deletes.. Example, ParentID 54 has children A, B and C - each child has an address record. Due to a limitation in the Arcade labeling profile, the script reads the building number from the children and writes the building numbers to the Parent as a comma separated list in a "label" field - which a labeling Arcade script processes. If we add Child D - it's building number when created triggers the update and the building number is written to Parent 54, so it now has building numbers from child A, B, C and D. The problem is, if we delete child C - then the Arcade script never runs, so the Parent has building numbers from Child A, B, C and D. If we modify a building number in child A for example, then the script runs and updated the parent removing the building number from child C. So my problem that I am working on, is if Child C is deleted, how do I trigger an update such that the Parent will only have building numbers from A,B and D Thanks for the help. Kieren
... View more
07-24-2020
09:01 PM
|
0
|
1
|
890
|
POST
|
Xander Bakker what needs to happen is Premise has label field - records to label from come from related customer table (1:M relationship class). As the label profile for Arcade doesn't support relationship classes, we roll up the address information from the customer table and write the building numbers to a string which is then written to the label field on the feature class. A complicated label script then runs and voila, all is well. If we add a related record and then add a building number, the rule runs and rolls everything up. If we modify the customer record then the script runs and updates the label field. The problem, if I remove a related record from the customer table the script crashes on a keyword error. If I delete a related record in the customer table the script doesn't run, thereby leaving the label field in an incorrect state. If I update an address it's fine. Key is deleting a customer record (table) doesn't cause the Update to happen.
... View more
07-24-2020
07:55 AM
|
0
|
3
|
890
|
POST
|
I saw that one with the adds - do you know if deleting a record in the related table considered an "Update". That's my next modification - if I add a row in the related table, then update the address value the system triggers properly and updates the Feature Class with the rolled up items. When I delete a record, it doesn't trigger the script to roll up the values to update the feature class. But, so far so good.
... View more
07-24-2020
06:29 AM
|
0
|
5
|
3366
|
POST
|
Xander Bakker Thank you for your help, I have it working now. I had missed the "GlobalID" for the update edit method.
... View more
07-23-2020
08:17 PM
|
0
|
7
|
3366
|
POST
|
Xander Bakker thank you very much for all the help. Here is the update from our conversation. I feel like I am soo close - Pro, during the edit, is complaining that a required keyword is missing, but near as I can tell I have them in there, I added the "attribute" from what I saw on a different blog post, but that doesn't appear to be it. var tbl = FeatureSetByName($datastore,"GISLND.LAND.NonCustomerAddress"); var fc = FeatureSetByName($datastore,"GISLND.LAND.Premise"); var premiseKey = $feature["GlobalID"]; var nonCustomerSql = "GlobalID = @premiseKey"; var nonCustomerAddressPremise = Filter(tbl, nonCustomerSql); for (var address in nonCustomerAddressPremise){ premiseKey = address.premiseguid; } var nonCustomerSql = "premiseguid = @premiseKey"; var nonCustomerAddress = Filter(tbl, nonCustomerSql); var txt = ""; for (var address in nonCustomerAddress){ txt = txt + address.building_number + ','; premiseKey = address.premiseguid; } var premiseSQL = "GlobalID = @premiseKey"; var premiseResult = Filter(fc, premiseSQL); return { "result": txt, "edit":[{ "className": "Premise", "updates" : [{ "attributes": [{ "labeltext": txt }] }] }] }
... View more
07-23-2020
06:30 PM
|
0
|
8
|
3366
|
Title | Kudos | Posted |
---|---|---|
1 | 11-07-2017 03:22 AM | |
1 | 08-25-2020 12:42 PM | |
1 | 07-23-2020 01:48 PM | |
2 | 12-22-2017 05:49 AM |
Online Status |
Offline
|
Date Last Visited |
07-12-2023
05:01 AM
|