Question

How can I create a primary key so Microsoft Access Writer won't throw an error?


I am creating a query from Snowflake and want to write the results to a Microsoft Access database. The job fails when writing to Access with the following error: Microsoft Access Writer: Writer mode for feature type `tblDaily' requires key column specification, or a where clause specification. I have searched on line and can't find a good example of how to correct this error. Can you point me in the right direction? Thanks!


2 replies

Userlevel 4

Can you post a screenshot of your Access table definition as well as the FME output feature type?

Badge +3

It sounds like the Writer it set to write in Update Mode. In order to match a Feature to an existing Database Record and update a field's attributes, FME needs to know what the Key Identifier field(s) are to match with (or an equivalent WHERE clause that states a way to match the Features to the Table being updated to like WHERE FMEResultKeyIDAttribute = AccessDBKeyIDField

Reply