Skip to main content

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.

 

 

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