Skip to main content
Archived

Enable Database Connection embedding for transformers too

Related products:Transformers
DanAtSafe
  • DanAtSafe
    DanAtSafe

eskolahdensivu
Contributor

In short: Readers and Writers have and option to change a named database connection into an embedded one.

This is our standard way of making sure that workspaces published to FME Server don’t overwrite other users' connections.

And it is easy to do in FME Desktop:


However, this not possible for FeatureReader, FeatureWriter, SQLCreator or SQLExecutor ! How many of your workspaces contain one or many of these transformers ? More than 50% ? 80% ? Yeah, I thought so …

Consider the time savings, when in development you can add your transformers with named connections, and when publishing to FME Server you don’t have to embed the connection parameters by hand in every flaming transformer.

In fact, it should be made possible in the ”Database Connections” section of Navigator - so that all transformers using that same connection would get embedded with one click !!!

Read on for a case (almost) from real life ..


Consider this scenario:your organization has several eager FME users, some of them fairly new, and you decide to let them publish their workspaces to FME Server. The users have learned enough FME to use saved ”Database Connections” in Desktop (because you teached them – or they learned it from an FME Webinar!).

You yourself have made and deployed some critical scheduled workspaces using your own ”standardized” Database Connections like ”REPORTING”, ”CRM”, etc.

After awhile you get emails from business users complaining that they haven’t received their critical reports for after sales marketing or contact lists of potential new customers.

You start investigating and find out that your workspaces have crashed when trying to connect to the ”REPORTING” database. So what on earth has happened ?

You finally find out that someone has actually over-written your database connection in FME Server. Someone has used the same database connection name ”REPORTING”, clicked ”Yes” when asked by FME whether existing connection with the same name should be replaced, and done the damage.

But you remember that you told your FME users to replace their named database connections with embeded connection parameters in Readers and Writers when publishing their workspaces, and everyone says they have done so!

So now you look at the Database Connections definition of ”REPORTING” in FME Server and find out that it connects to a completely different data warehouse (the one called HR_REPORTING). You then call the HR guy who made the latest deployment and ask him why he didn’t embed the connection parameters.

He claims he did, only that he added one FeatureReader, tested with his named database connection ”REPORTING”, but could find the command to embed the connection parameters in the transformer. So he thought FME would somehow automagically take care of it, as it does for many things, and published his workspace anyway ...

This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

ebygomm
Influencer
Forum|alt.badge.img+33
  • Influencer
  • May 11, 2020

Am i missing something? You can embed connections within these transformers, or are you asking for something else?

'

'


eskolahdensivu
Contributor
Forum|alt.badge.img+1

"Embedding" in these transformers (and all others) means typing all database connection parameters manually. In Readers and Writers you can change saved Database Connections into embedded ones with only one click !

My list of transformers was incomplete, missing eg. DatabaseJoiner, -Deleter and -Updater and possibly more ...


esko
Forum|alt.badge.img+2
  • April 26, 2022

Sorry to come back so late (can't figure out any other excuses than being "too busy"). Anyways, the point you are missing here is that you can change a connection from a named one into an embedded one with one click for Readers and Writers:

 

image 

but you cannot do that for transformers:

 

imageAnd if you use named connections in development (which makes it faster), you then have to manually change connection parameters in all your transformers using named connections, which makes it slow, tedious and error prone.

 


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