Skip to main content
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

david_r
Celebrity
  • July 28, 2020

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


bwn
Evangelist
Forum|alt.badge.img+26
  • Evangelist
  • July 28, 2020

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings