|
POST
|
checking the versions on the geodatabase I found: the records in the database are not the same that ArcGIS Pro 2.9 shows:
... View more
07-18-2023
04:31 AM
|
0
|
0
|
3830
|
|
POST
|
following the recommendation of @Aashis I changed my code to use VersionManager.GetVersionNames() method: the result is the same I am still getting an exception: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
... View more
07-18-2023
04:15 AM
|
0
|
0
|
3831
|
|
POST
|
Hello @Aashis here you have the same snippet but in C#: void Main()
{
ArcGIS.Core.Hosting.Host.Initialize();
ArcGIS.Core.Data.DatabaseConnectionProperties connectionProperties = new(ArcGIS.Core.Data.EnterpriseDatabaseType.SQLServer);
connectionProperties.Instance = "YOUR_SQL_SERVER";
connectionProperties.Database = "YOUR_DATABASE";
connectionProperties.User = "YOUR_USER";
connectionProperties.Password = "USER_PASSWORD";
var gdb = new ArcGIS.Core.Data.Geodatabase(connectionProperties);
var versionManager = gdb.GetVersionManager();
var existingVersions = versionManager.GetVersions();
foreach (var version in existingVersions)
{
Console.WriteLine(version.GetName());
}
} As I already mention this happens just in one database, I have tried to spot the difference between a functional one an the faulty one, but I can not narrow the difference.
... View more
07-18-2023
12:54 AM
|
0
|
0
|
3835
|
|
POST
|
@Aashis as I already mentioned One really nice thing about it is the ArcGIS Pro allows me to list and create versions using its interface. I confirm: I can connect to the database and create versions manually.
... View more
07-17-2023
08:53 AM
|
0
|
2
|
3854
|
|
POST
|
There is an add-in that create a version, in the process of creating the version, it verifies the existing of the version calling the existing versions. Current it is throwing at exception when connected to ONE geodatabase: Unhandled exception at 0x00007FFDF2C423EB (CoreInterop.dll) in ArcGISPro_2.9.5.32739_47FF8EC5-67F0-4891-8FB6-0A95A0AC38D0_07_13_2023_15_41_05.dmp: 0xC0000005: Access violation reading location 0x0000000000000000. at the beginning I though the issue was related to my code but I was able to isolate the issue, Even I create a small snippet in PowerShell that horribly crash when executed: Add-Type -Path 'C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll'
Add-Type -Path 'C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll'
[ArcGIS.Core.Hosting.Host]::Initialize()
[ArcGIS.Core.Data.DatabaseConnectionProperties]$connectionProperties = [ArcGIS.Core.Data.DatabaseConnectionProperties]::new([ArcGIS.Core.Data.EnterpriseDatabaseType]::SQLServer)
$connectionProperties.AuthenticationMode = [ArcGIS.Core.Data.AuthenticationMode]::DBMS
$connectionProperties.Instance = "YOUR_SQL_SERVER"
$connectionProperties.Database = "YOUR_DATABASE"
$connectionProperties.User = "YOUR_USER"
$connectionProperties.Password = "USER_PASSWORD"
$gdb = [ArcGIS.Core.Data.Geodatabase]::new($connectionProperties);
$versionManager = $gdb.GetVersionManager()
$existingVersions = $versionManager.GetVersions()
$existingVersions | %{$_.GetName()} the issue here is that this error only happens with one database. What should i look into the database to detect the reason of this failure, and if possible solve it. One really nice thing about it is the ArcGIS Pro allows me to list and create versions using its interface.
... View more
07-17-2023
01:52 AM
|
0
|
8
|
3893
|
|
POST
|
I have created a GP tool in python and decided to publish it as a GeoProcessing service in ArcGIS Server. The GP Service permissions are set to: Public, available for everyone This GP service receives a JSON string as Input, in it a credential to access the Geodatabase are set. It is intended that the GP service creates a Geodatabase connection file, access a table (set with Editor Tracking capabilities) and modify a row. It is expected the user name defined in the passed credentials appears in the Editor tracking field, instead appears ESRI_Anonymous I created a user (my_user_server) and a role in ArcGIS Server, set the permisions of the GP Service to: Private, available only to selected users, and select the created role. It is expected the user name defined in the passed credentials appears in the Editor tracking field, instead appears my_user_server I found this documentation It states that the behavior applies for Feature services. do not mention GP Services. In my ideal world I would like to keep the GP service public, and have the Editor tracking field with the user name provided in the input JSON. is that possible?
... View more
07-07-2023
05:15 AM
|
1
|
3
|
1969
|
|
POST
|
Did not work., I tried both first and second option. no lick.
... View more
07-04-2023
01:33 AM
|
0
|
0
|
4260
|
|
POST
|
Hello @AyanPalit, let me show you the process I am doing: As you can see in the following image, I am already logged in: When I select the solution, I have the option enable, moreover there is no sign that i do not have permission to deploy it (I tried with another less powerful account I have).: In my solutions, you will notice that I already made the deployment of the similar solutions (1) and even yesterday was able to deploy the Pipeline Referencing Foundation (2). The deployment of the Gas and Pipeline Referencing Utililty Network Foundation starts (3): It reaches the 69% of the deployment process: Then, as can be seen, the original 3 solutions remain deployed, but the new one failed to deploy with no more information: The one already deployed from March 14, 2022 is the version 2.1.....I would like to have the version 2.2 Any hint ???
... View more
06-29-2023
01:06 AM
|
0
|
2
|
4274
|
|
POST
|
I have been trying to install the Gas and Pipeline Referencing Utility Network Foundation version 2.2, but I keep receiving the message the it fails. Is there a way to directly download the zip file with out this "deploy" process. @TomDeWitte @AyanPalit
... View more
06-28-2023
03:05 AM
|
0
|
12
|
5277
|
|
POST
|
I am looking for the latest UPDM version, now I found there are kind of two ESRI solutions that include the UPDM. I was reading the presentation page of both of them. I would like to hear from you guys, what is the difference between Pipeline Referencing Foundation and Gas and Pipeline Referencing Utility Network foundation I understand so far that i can with both of the have UPDM instantiated.
... View more
06-28-2023
03:01 AM
|
0
|
2
|
1876
|
|
POST
|
Hello, Yes I tried what you mentioned, but I thought I had a typo in my code I decided to use the path generated by the tool that creates the file. But in order to understand the logic behind your suggestion, could you explain me why using the result of the tool's execution would be an issue?
... View more
04-10-2023
11:43 PM
|
0
|
0
|
1954
|
|
POST
|
check my post about it: https://community.esri.com/t5/arcgis-api-for-python-questions/creation-of-database-connection-does-not-work-on/m-p/1275167
... View more
04-05-2023
01:07 AM
|
0
|
0
|
1458
|
|
POST
|
Following the recommendation of the page https://enterprise.arcgis.com/en/system-requirements/latest/windows/database-requirements-sqlserver.htm I downloaded from Microsoft site the latest version of the ODBC driver version 18, that is the one that I installed in both machines (Client and Server): A colleague recommend me to install the ODBC driver provided by ESRI, I proceed to install it: Now the result of the snippet is the one expected: Conclusion: ArcGIS server 11 has an issue with the ODBC Driver version 18.6.3
... View more
04-04-2023
05:47 AM
|
0
|
0
|
1992
|
|
POST
|
I have a snippet that creates a database connection to an enterprise geodatabase, then list the tables: import arcpy
new_conn2 = arcpy.management.CreateDatabaseConnection(r"c:\temp", "Myconnection2", "SQL_SERVER", "MySQLServer", account_authentication="DATABASE_AUTH",
username="myUser",
password="mySecretPassword",
save_user_pass="SAVE_USERNAME", database="myEGDB")
print(arcpy.Describe(new_conn2[0]).dataElementType)
arcpy.env.workspace = new_conn2[0]
# Get and print a list of tables
tables = arcpy.ListTables()
for table in tables:
print(table) the output when I run the snippet in ArcGIS Pro 3.0 is: 'DEWorkspace' DATAOWNER.P_Centerline_Sequence
DATAOWNER.P_DocumentPoint__ATTACH
DATAOWNER.P_CasingInspection
DATAOWNER.P_CPBondInspection
DATAOWNER.P_CPRectifierInspection
DATAOWNER.P_CPTestPointReading
DATAOWNER.P_CrossingInspection
DATAOWNER.P_ElectricSurvey
DATAOWNER.P_ExcavationDamage__ATTACH
DATAOWNER.P_ExposedPipeInspect__ATTACH
DATAOWNER.P_GasLeak__ATTACH
DATAOWNER.P_GasLeakInspect ..... When I run the same code in ArcGIS Server python instance the output is: 'DEFile' I tried using the Python3 command prompt as well as the Jupyter notebook present in the ArcGIS Server installation. @BrianClee or @GhislainPrince do you have any idea about this?
... View more
04-04-2023
04:20 AM
|
0
|
3
|
2021
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-11-2021 02:41 AM | |
| 2 | 12-01-2023 02:45 AM | |
| 1 | 07-19-2021 11:25 PM | |
| 1 | 07-21-2023 04:44 AM | |
| 1 | 07-07-2023 05:15 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-02-2024
12:42 AM
|