POST
|
Geodatabase Designer 2 does exactly this but unfortunately hasn't been updated in a LONG time. It still works on 10.2.1 at least although in the link you reference, apparently it doesn't work on some of the newer versions even with the work around. All of the ArcObjects calls still exist and it's the installation method and reliance on the GxDockableWindow that cause problems. So it's possible to reuse the code in a new extension or add-in that doesn't use these and get the same results. But it is a bit of work as there's a lot of code in there. You don't need to do everything though as GDB designer does a lot more than just geometry networks. At the very least, it can be used as a reference for building a process to rebuild a network with all the same parameters.
... View more
05-14-2020
10:02 PM
|
2
|
0
|
939
|
POST
|
I was getting this same error running Server 10.6.1 and Pro 2.3.2 and found this discussion looking for help. But since my versions didn't match, the issue didn't apply to me. What I finally found out was that when publishing my UN, I forgot about the step to flip over to the Configuration section and check the "Version Management" box. Once I did this, the errors went away and everything worked. Not sure if this is your issue but thought I would mention it. Seems to be a common issue I've been running into with the UN. Something doesn't work but the error messages are vague or do little to help understand what minor little thing was missed or wasn't done correctly.
... View more
08-21-2019
08:32 AM
|
1
|
0
|
447
|
IDEA
|
The background geoprocessing concept can be useful in some cases. In ArcPro, all geoprocessing is background. I can get where ESRI is going with this. But, in most cases, when I'm running some processing, I'm waiting for that to finish before I move on to something else. I like to see the details of what is happening as well so I almost always hit the View Details button after starting a tool. It would be nice if there were an option to show this by default. Then, in the few cases were I do want to hide this while I do something else, I can just close it and let it continue to run in the background. Although even than, I would likely just want to move the details off to the side so I can keep an eye on it while doing other things. Is there any option for this that I just haven't noticed? If not, it would be a nice feature.
... View more
08-19-2019
07:37 AM
|
7
|
3
|
459
|
POST
|
No scripting involved. Just populating a text field with a link to a document. Something like this... <a href="file:///\\server\share\documents (PDF's)\target.pdf">Target Document</a> If the path doesn't have a single quote in it, it works. If it does, it fails.
... View more
04-04-2019
12:42 PM
|
0
|
0
|
2652
|
POST
|
We're trying to hyperlink in ArcPro to some documents that have a single quote/apostrophe in the path. Clicking the link gives the error... Any attempt to escape the character doesn't change the error. I've tried double single quotes and %27 and it still gives the same error. The fact that %27 gives the same error suggests that it reads the urlencode correctly and makes it a single quote before passing it on to whatever causes this error. Anyone know how to get around this? The obvious work around is to rename the folders to not have single quotes in them. But single quotes are valid characters in normal urls. So this seems to be a bug in the way Pro handles this.
... View more
04-03-2019
12:41 PM
|
0
|
8
|
2908
|
POST
|
Thanks for the info. The project we were setting this up for is done now and the resources have been reallocated. But when I get the chance, I'll try your solution so I know for myself in the future.
... View more
06-04-2018
11:03 AM
|
1
|
0
|
2415
|
POST
|
I never got it to work. In the end, I setup a VM on the same hardware to act as the "client" while the physical system acted as the server. Then I didn't have to try to work around having the server and client software running on the same windows installation.
... View more
05-30-2018
02:05 PM
|
0
|
4
|
2415
|
POST
|
Forgot to mention that the workaround for this issue is to just use GetRows/GetFeatures passing the one OID and grab the first record from the cursor. This has the added benefit that GetRows doesn't through an exception when the OID doesn't exist. Then I can return null and deal with that instead of having to handle an exception.
... View more
05-16-2018
12:52 PM
|
0
|
0
|
292
|
POST
|
I've know that some of our custom tools occasionally run into memory leaks from time to time. Usually, we just run the tool in smaller batches to get through it. But after doing some investigation, I finally tracked down where the problem is coming from. It would seem that calling IFeatureClass.GetFeature or IStandaloneTable.GetRow on a table that is currently being edited, causes the row to not be released. I tried using Marshal.FinalReleaseComObject to force it to release the feature but it didn't help. I think I had some minor success or improvement by doing that and forcing garbage collection. But it didn't fix everything. If you do the same thing on a table that is not being edited, there's no issue. Maybe there's something in the editor extension that is grabbing on to features that are being retrieved and not letting go of them. Here is some sample code I created that shows the issue. It gets the OID of all of the features in the first layer in your map and puts them into an array. Then goes through those OIDs and calls GetFeature for each one. var StartTime = DateTime.Now; var Count = 0; var Total = 0; var Layer = (IFeatureLayer)mxDoc.FocusMap.get_Layer(0); var Cursor = Layer.FeatureClass.Search(null, true); var OIDs = new List<int>(); var Feat = (IFeature) null; try { while ((Feat = Cursor.NextFeature()) != null) { OIDs.Add(Feat.OID); Total++; } } finally { Marshal.FinalReleaseComObject(Cursor); } foreach (var OID in OIDs) { if (Count % 1000 == 0) { var Ts = DateTime.Now - StartTime; MxApp.StatusBar.set_Message(0, string.Format("{0:#,0}s - {1:#,0}/{2:#,0} - GetFeature()...", Ts.TotalSeconds, Count, Total)); Application.DoEvents(); } Feat = Layer.FeatureClass.GetFeature(OID); System.Runtime.InteropServices.Marshal.FinalReleaseComObject(Feat); Feat = null; Count++; } Attached is a video showing this code executing. I've included Task Manager so you can watch the memory increase as it goes. I've sped it up about 12x as it takes a few minutes to get through the whole thing. If you run this with the layer not being edited, then there's no issue and memory usage never goes over about 200MB.
... View more
05-16-2018
09:43 AM
|
0
|
1
|
399
|
POST
|
Yeah, I confirmed that removing the 64bit oracle and only including the 32bit oracle in the path doesn't change anything for the user that doesn't work. The user that does work stops working if I remove the 32bit oracle path as would be expected.
... View more
04-04-2017
11:25 AM
|
0
|
3
|
1517
|
POST
|
I have some active sessions on the system right now that I will have to wait for before I can try this again. But I'm pretty sure I tried this already with the same result. It almost seems like something is stopping the specific user from accessing the oracle client software. But I checked permissions and made sure everyone has access to the folder with the oracle client and nothing has changed.
... View more
04-04-2017
10:11 AM
|
0
|
0
|
1517
|
POST
|
Yes, single system so only one tnsnames.ora file. At least with the way I've been doing things for years, I never touch the tnsnames.ora file. I let oracle manage that on the server and all clients use tns-less connections.
... View more
04-04-2017
10:09 AM
|
0
|
0
|
1517
|
POST
|
I tried adding the TNS_ADMIN variable pointing at the tnsnames.ora file but that doesn't appear to have changed anything. And that sounds like it would be a different issue. It would have to load the oracle client before doing anything with the tnsnames so I would expect a different error if it just wasn't able to resolve the database naming. This is a self contained system right now. Only local users. So no other versions or systems are being accessed and only the one version of ArcMap and Oracle are being used.
... View more
04-04-2017
09:39 AM
|
0
|
8
|
1517
|
Title | Kudos | Posted |
---|---|---|
1 | 06-01-2021 08:21 PM | |
1 | 11-13-2020 11:24 AM | |
1 | 09-29-2020 08:45 PM | |
1 | 04-04-2017 08:53 AM | |
2 | 05-14-2020 10:02 PM |
Online Status |
Offline
|
Date Last Visited |
01-09-2024
07:11 AM
|