Solved

oracle nonspatial writer not writing to table


Badge
I am using the oracle nonspatial writer in FME Desktop 2015 and I am trying to write to an Oracle table to update 2 fields. I do not see an error when the process finishes but I noticed that the changes are not reflecting in the table. I don't see any options to commit changes. How can I ensure that the changes are being committed? Do you know what would cause the changes to not be committed? Thanks for your help.

 

icon

Best answer by erik_jan 11 June 2019, 18:15

View original

9 replies

Userlevel 2
Badge +16

FME will automatically do a commit after finishing the transaction.

So, that is not the cause of not seeing the changes.

Have you set the key attribute, based on which to do the update?

Can you share a screenshot of the writer feature type (table definitions in FME)?

Userlevel 2
Badge +16

Another good option would be using the DatabaseUpdater transformer instead of the writer.

Documentation can be found here

Badge

I set a field called ASSETNUMBER for the Update Key Column field.

Userlevel 2
Badge +16

I set a field called ASSETNUMBER for the Update Key Column field.

This looks good.

Do you have the attributes you want to update in the User Attributes tab?

Only those are needed.

(FME will create a SQL statement from this information).

Badge

Another good option would be using the DatabaseUpdater transformer instead of the writer.

Documentation can be found here

I used the databaseupdater transformer and it still did not update the table.

Userlevel 2
Badge +16

I used the databaseupdater transformer and it still did not update the table.

Can you share the log file?

Badge

Another good option would be using the DatabaseUpdater transformer instead of the writer.

Documentation can be found here

log.txt This is the log file from my process in which I read from a SDE versioned table and write to an Oracle table

Userlevel 2
Badge +16

log.txt This is the log file from my process in which I read from a SDE versioned table and write to an Oracle table

Looks like you use a Sampler t sample 3 objects for the Oracle table.

But all 3 objects end up in the log ffs file 

D:\FME workspaces\PrimaryGasValves\TEST\geodatabase_sde2oracle_nonspatial_log.ffs

I suppose you do not have the option "Redirect to FFS file" set, like this:

0684Q00000ArN52QAF.png

Opening the FFS file in the Data Inspector can help determining the issue.

 

Badge

Another good option would be using the DatabaseUpdater transformer instead of the writer.

Documentation can be found here

Using the DatabaseUpdater transformer worked for me! Thanks eric_jan!

Reply