I successfully updated a point geometry in the ArcSDE writer within a specific version.
I encountered an issue.
When I select "Update Mode" and set "Row selection - Columns " to ObjectID, I get an error translation running . But if I leave "Row seletion - Columns" empty, the translation runs successfully.
The "Row selection - Columns " field turns red when left empty, and I’m unable to click "OK." To work around this, I temporarily set "Row Selection - Columns" to ObjectID, click "OK," and then use a Remover transformer before the writer to remove ObjectID—and when I run the workspace ,it works great and translation is successfully .
But ’m unclear on how FME identifies the correct point to modify it ,how to resolve my issue ?
Update Spatial columns : Should be yes or no ?
FME version: 2021, 64-bit.
Thanks in advance
Page 1 / 1
Transaltion successful when I remove all attributes before writer ,even writer has red field
but if I let objectid or other unique id , I got error running translation .
how to fix it ?
Hi, @jokerfme.
Thanks for posting your question.
Reading your question here, we have a few suggestions.
If you are wanting to update the geometry, the Update Spatial Columns should be set to Yes.
If the Match Columns parameter is the issue, a quick solution could be to try using the WHERE clause option. You could use the ObjectID there ("ObjectID" = @Value(OBJECTID))
If you want to stick with just the Match Columns parameter, ensure the case matches.
If these don’t work out, we would like to request your workspace. It’ll assist problem solving the issue. Hope this helps!
Thanks!
@AliAtSafe
Thank you for your suggestions
I've spent the whole day working to resolve my issue. Here’s what I’ve found so far:
When I run my workspace after using row selection with the "match column" set to ObjectID or applying a WHERE clause, I receive a warning indicating that ObjectID and GlobalID are not editable.
After a few minutes, the translation completes successfully, but then an error appears translarion error running . However, when I check the results in ArcMap, I see that the changes have already been applied in the version.
I’m still not entirely sure why this is happening. Do you have any other suggestions that could help resolve this issue?
I am testing only with one record .
Fme version 2021
Hello, @jokerfme,
Thanks for trying that out and providing details. Interesting; to confirm, it does work but throws an error? Could you provide the error that is being thrown before it writes successfully? If you can, could you share your workspace and log file? It’ll help troubleshoot this issue better.
Thanks!
Hello @AliAtSafe
Uploading the workspace is challenging due to data security restrictions, as it’s not permitted.
I have tested inserting and updating with just one point. This is the log file, showing that I tried also where clause approaches, but encountered an error when running the translation.
However ,I can see the result of changes in Arcmap .
As the admin, I have full permissions, and I verified in the database that insert, update, and delete actions are permitted. However, I'm wondering because I can delete any point by matching the ObjectID column, and the translation completes successfully.
But when I attempt an insert or update, the following log file appears:
Feature Caching is ON
Fast deletes enabled
The 'HAS_Z_VALUES' keyword is set to 'AUTO_DETECT'. With the exception of MultiPatch feature classes, the dimensionality of new feature classes will be based on the first feature written to the feature class. (Features with no geometry are considered 2D)
A default z-value of '0' will be used for all 3D features where z-values are not provided
Esri Geodatabase Writer: Not simplifying geometries being written
Esri Geodatabase Writer: The field 'OBJECTID' in feature type 'Featureclass name' will not be updated since it is not editable
Esri Geodatabase Writer: The field 'GLOBALID' in feature type 'Featureclass name' will not be updated since it is not editable
Starting an edit session
Geodatabase Writer: WHERE clause is evaluated as '("OBJECTID" =162823)'
Destination Feature Type Routing Correlator (RoutingFactory): Tested 1 input feature(s), wrote 1 output feature(s): 0 matched merge filters, 1 were routed to output, 0 could not be routed.
Final Output Nuker (TeeFactory): Cloned 0 input feature(s) into 0 output feature(s)
GeodatabaseRelationshipFeaturesPipeline::GeodatabaseRelationshipFeatures (SortFactory): Finished sorting a total of 0 features.