<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error creating Geodatabase Version ArcGis pro c# in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/error-creating-geodatabase-version-arcgis-pro-c/m-p/1636044#M97519</link>
    <description>&lt;P&gt;Good morning, I am generating a connection to a service where I have my layers hosted,&lt;BR /&gt;everything is correct, but when I try to generate a new version,&lt;BR /&gt;it shows me the following error: "User does not have privileges to perform this operation." I have already changed the user to one with privileges.&lt;BR /&gt;To confirm that the user is correct,&lt;BR /&gt;I tried directly from the ArcGis Pro interface and it does allow me to generate versions without any errors.&lt;BR /&gt;I don't know if I need to take any other steps.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;This is my code&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;private void Create_Version()&lt;BR /&gt;{&lt;BR /&gt;try&lt;BR /&gt;{&lt;BR /&gt;Uri nonFederatedServerURL = new Uri("&lt;A href="https://procesos/FeatureServer" target="_blank" rel="noopener"&gt;https://procesos/FeatureServer&lt;/A&gt;");&lt;BR /&gt;ServiceConnectionProperties nonFederatedArcGISServer = new ServiceConnectionProperties(nonFederatedServerURL)&lt;BR /&gt;{&lt;BR /&gt;User = "prueba",&lt;BR /&gt;Password = "prueba2"&lt;BR /&gt;};&lt;BR /&gt;using (Geodatabase geodatabase = new Geodatabase(nonFederatedArcGISServer))&lt;BR /&gt;{&lt;BR /&gt;if (geodatabase.IsVersioningSupported())&lt;BR /&gt;{&lt;BR /&gt;// Create a VersionDescription object&lt;BR /&gt;VersionDescription versionDescription = new VersionDescription("VERSIONPRUEBA", "DESDECODIGO", VersionAccessType.Public);&lt;/P&gt;&lt;P&gt;// Get the current version as the parent (or specify a different parent if needed)&lt;BR /&gt;ArcGIS.Core.Data.Version parentVersion = geodatabase.GetVersionManager().GetCurrentVersion();&lt;BR /&gt;ArcGIS.Core.Data.Version newVersion = geodatabase.GetVersionManager().CreateVersion(versionDescription, parentVersion);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;catch (Exception ex)&lt;BR /&gt;{&lt;BR /&gt;MessageBox.Show("error" + ex.Message + " " , "", MessageBoxButton.OK, MessageBoxImage.Information);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;Thank you, I hope you can support me.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jul 2025 17:40:16 GMT</pubDate>
    <dc:creator>JuanManuelPazDiaz</dc:creator>
    <dc:date>2025-07-24T17:40:16Z</dc:date>
    <item>
      <title>Error creating Geodatabase Version ArcGis pro c#</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-creating-geodatabase-version-arcgis-pro-c/m-p/1636044#M97519</link>
      <description>&lt;P&gt;Good morning, I am generating a connection to a service where I have my layers hosted,&lt;BR /&gt;everything is correct, but when I try to generate a new version,&lt;BR /&gt;it shows me the following error: "User does not have privileges to perform this operation." I have already changed the user to one with privileges.&lt;BR /&gt;To confirm that the user is correct,&lt;BR /&gt;I tried directly from the ArcGis Pro interface and it does allow me to generate versions without any errors.&lt;BR /&gt;I don't know if I need to take any other steps.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;This is my code&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;private void Create_Version()&lt;BR /&gt;{&lt;BR /&gt;try&lt;BR /&gt;{&lt;BR /&gt;Uri nonFederatedServerURL = new Uri("&lt;A href="https://procesos/FeatureServer" target="_blank" rel="noopener"&gt;https://procesos/FeatureServer&lt;/A&gt;");&lt;BR /&gt;ServiceConnectionProperties nonFederatedArcGISServer = new ServiceConnectionProperties(nonFederatedServerURL)&lt;BR /&gt;{&lt;BR /&gt;User = "prueba",&lt;BR /&gt;Password = "prueba2"&lt;BR /&gt;};&lt;BR /&gt;using (Geodatabase geodatabase = new Geodatabase(nonFederatedArcGISServer))&lt;BR /&gt;{&lt;BR /&gt;if (geodatabase.IsVersioningSupported())&lt;BR /&gt;{&lt;BR /&gt;// Create a VersionDescription object&lt;BR /&gt;VersionDescription versionDescription = new VersionDescription("VERSIONPRUEBA", "DESDECODIGO", VersionAccessType.Public);&lt;/P&gt;&lt;P&gt;// Get the current version as the parent (or specify a different parent if needed)&lt;BR /&gt;ArcGIS.Core.Data.Version parentVersion = geodatabase.GetVersionManager().GetCurrentVersion();&lt;BR /&gt;ArcGIS.Core.Data.Version newVersion = geodatabase.GetVersionManager().CreateVersion(versionDescription, parentVersion);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;catch (Exception ex)&lt;BR /&gt;{&lt;BR /&gt;MessageBox.Show("error" + ex.Message + " " , "", MessageBoxButton.OK, MessageBoxImage.Information);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;Thank you, I hope you can support me.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 17:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-creating-geodatabase-version-arcgis-pro-c/m-p/1636044#M97519</guid>
      <dc:creator>JuanManuelPazDiaz</dc:creator>
      <dc:date>2025-07-24T17:40:16Z</dc:date>
    </item>
  </channel>
</rss>

