Appending to a UN and preserving GlobalIDs

77
3
Jump to solution
Wednesday
LoganSuhr_PSE
New Contributor III

Hi community,

I have a new set of data in an asset package that I would like to copy to a dedicated version in my electric UN.  The asset package has a schema similar to my published UN. I have a CSV of associations that also need to be imported.

The trouble is that I need to preserve the global ids of my asset package features upon import.  This keeps my CSV of associations relevant.  If the globals change, my associations file is useless.

I tried the Append GP tool but received the following error:

WARNING 000594: Input feature 1: Function not implemented.

https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/001001-010000/tool-...

The error doesn't seem to describe my issue.  If I choose not to 'Preserve GlobalIDs' in my environments settings, the Append works.  Disabling network topology doesn't make a difference here either.  Same error.

After disabling network topology I can write to the database directly and Append as intended.  But this writes to the DEFAULT which is really not going to work for what I need.

So, is it possible to append to a UN and preserve globalids?  If so, what is recommended.

Thanks

1 Solution

Accepted Solutions
MikeMillerGIS
Esri Regular Contributor

I think you best option is to craft a script using the python api and make the apply edits call.  The apply edits has an option call UseGlobalIDs which will add the feature with the Global ID from the client.

 

https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-.htm#GU...

View solution in original post

3 Replies
MikeMillerGIS
Esri Regular Contributor

I think you best option is to craft a script using the python api and make the apply edits call.  The apply edits has an option call UseGlobalIDs which will add the feature with the Global ID from the client.

 

https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-.htm#GU...

View solution in original post

LoganSuhr_PSE
New Contributor III

@MikeMillerGIS ,

Yep, I think this is the best route.  I found last night while digging through something else.  It solves the issue with globals and gets my data to the right version.  I'm using FME to write to the feature service/version which must be making the apply edits call for me.

Now I just have to figure out how to work with associations via the API since I don't seem to be able to with the FME Portal writer.

Much appreciated.

0 Kudos
MikeMillerGIS
Esri Regular Contributor

Associations are just another table, I think 500002 on the service, just make an apply edits call

0 Kudos