Skip to main content
Solved

Updating attributes in a ESRI GDB feature class using AttributeManager


Reader: MSSQL_ADO

Writer: Esri File GDB Feature class

Transformer: AttributeManager

 

I am trying to see if I can first set a Where Clause to check if two fields (one from the SQL table and one field from Feature class) match each other. Once this is checked I want to update three other fields in the feature class using the information in the SQL Table

Best answer by zemd23

I was able to resolve the issue using the following transformers.

View original
Did this help you find an answer to your question?

4 replies

  • Author
  • March 9, 2020

Here is how I have it setup right now


Forum|alt.badge.img+2

@zemd23 I think the problem is the Set Value in your AttributeManager - this would set the values of umc_prop_class... to "empty" since you have no value in the Attribute Value column. Try using "do nothing".

To update only the fields read form the SQL Server database follow the instructions in the article Updating Individual Fields of a Record to only update the fields that come from your SQL Server database


  • Author
  • March 10, 2020
markatsafe wrote:

@zemd23 I think the problem is the Set Value in your AttributeManager - this would set the values of umc_prop_class... to "empty" since you have no value in the Attribute Value column. Try using "do nothing".

To update only the fields read form the SQL Server database follow the instructions in the article Updating Individual Fields of a Record to only update the fields that come from your SQL Server database

@markatsafe Thank you for the response. The issue is that it does not like my where clause. The SQL database has a field called bd_id and the Feature class has a field called BUILDINGNUMBER. So my goal is to first see if these two attributes match, and if they do match then we want to update two other fields.

The other article you pointed me to seems to update the same database table, I am looking to update the feature class based on the sql tables information. My where clause is currently setup on the feature class as "BUILDINGNUMBER"=@Value(bd_id)

 

 

 

Kindly let me know what you think I am doing wrong.


  • Author
  • Best Answer
  • March 16, 2020

I was able to resolve the issue using the following transformers.


Reply


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