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.
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
Solved! Go to Solution.
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.
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.
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.
Associations are just another table, I think 500002 on the service, just make an apply edits call