Solved

SQL Executor results not mapped in Schema Mapper


Hi All,

I created a SchemaMapper lookup table in PostgreSQL and used it to map schemas in two scenarios.

  1. When I used ESRI SDE feature class as a reader and PostgreSQL as a writer the SchemaMapper mapped all and no problem
  2. When I used SQLExecutor reading from Microsoft SQL Server database that creates a query from four tables and writing to a Single PostgreSQL table, the SchemaMapper outputs the results as unmapped. I have used AttributeExposer transformer and it still didn't change. please see the screen shot below:

Can anyone please help me fix the issue or let me know if I'm missing anything?SchemaMapper issueThank you in advance

icon

Best answer by david_r 14 July 2021, 08:45

View original

2 replies

Userlevel 4

My first hunch would be to check the case of the attribute names in both scenarios, remember that FME is case sensitive when comparing attribute names. Also make sure your SchemaMapper doesn't reference fme_feature_type, in which case you'll have to set it yourself after the SQLExecutor.

Thanks david_r, setting fme_feature_type worked for me.

Reply