Skip to main content
Solved

Raster renaming in Esri SDE

  • September 25, 2024
  • 1 reply
  • 20 views

scarecrow
Contributor
Forum|alt.badge.img+4

Hi All,

I’m creating an archiving workbench for our Esri Enterprise SDE databases. I’m trying to automate checking for an existing version of a raster in either our shared or archived databases and then assigning a version suffix according to if the data already exists in one of the databases. I have the majority of the workbench sorted but struggling to automate renaming the raster to include the version suffix when writing to archive.

In my example below I’ve identified that there are two existing versions of the test data “gen_aaa_aaa_test_ras” so I’ve created a name field “archhiveddataname”, which contains the the name I want to give the raster when I write it to Archived “gen_aaa_aaa_test_ras_2”. I can access this information from the schema port but not from the generic. If I include the information from the schema port I get an error saying that I’m trying to write non-raster geometry and the workbench fails.

 

I’m using FME 2023.1.2.0 (20231110 - Build 23641 - WIN64)

 

Thanks in advance for your replies.

 

Best answer by hkingsbury

 

The approach i’d take would be to leverage ArcPy in the PythonCaller and use the Rename function

arcpy.management.Rename(in_data, out_data, data_type)

https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/rename.htm

View original
Did this help you find an answer to your question?

1 reply

hkingsbury
Celebrity
Forum|alt.badge.img+50
  • Celebrity
  • Best Answer
  • September 25, 2024

 

The approach i’d take would be to leverage ArcPy in the PythonCaller and use the Rename function

arcpy.management.Rename(in_data, out_data, data_type)

https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/rename.htm


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings