Comments and answers for "Duplicate records from SqlCreator" https://knowledge.亚搏在线safe.com/questions/85338/duplicate-records-from-sqlexecutor.html The latest comments and answers for the question "Duplicate records from SqlCreator" Answer by david_r https://knowledge.亚搏在线safe.com/answers/85951/view.html

A simple way to debug if it's the table contents or something else that's causing the issue,is to add the following where-clause at the end of your SQL statement:

...and rownum = 1

If you still get two features,then it's probably not the database.On the other hand,if that fixes the problem then it's 99% certain that it's the table contents that actually contains several records that match your where-clause.

Mon,28 Jan 2019 08:00:21 GMT david_r
Comment by roberto on roberto's comment https://knowledge.亚搏在线safe.com/comments/85915/view.html

Thanks.I'll document better the issue and I'll follow your suggestion.

Fri,25 Jan 2019 18:26:06 GMT roberto
Comment by markat亚搏在线safe https://knowledge.亚搏在线safe.com/comments/85651/view.html

@robertoIt sounds like it is the FME Server environment that is causing the problem,not the SQLCreator.Perhaps run a test using FME desktop and determine if this gives a good or bad result.At this point I think I would report the issue throughhttps://www.亚搏在线safe.com/support/report-a-problem/

Mon,21 Jan 2019 18:15:39 GMT markat亚搏在线safe
Comment by roberto on roberto's answer https://knowledge.亚搏在线safe.com/comments/85365/view.html

Hi,

the sql query,works fine in Oracle.The same 亚搏在线workflow also from a different server pointing to the same DB.Confusing.

The fact that the duplication happens only on one record is an additional confusing fact.

One is always duplicated while the other (if any) don't.

THX

The query is:

Select a.EMPLOYEEID as CID,a.EMERGENCYPHONE,a.HOMEPHONE,a.UMHOLDER,a.UMHOLDERDESCRIPTION,a.UO_COREHOLDER,a.COREHOLDERDESCRIPTION,a.FIRSTNAME as NOME,a.LASTNAME as COGNOME,a.CUSTOMDATA.EmployeeCustom1 as TELEFONO1,a.CUSTOMDATA.EmployeeCustom2 as TELEFONO2,a.CUSTOMDATA.EmployeeCustom3 as TELEFONO3 from DEFINEDEMPLOYEE a where (upper(a.LASTNAME) like upper('%$(sCriterio)%')

Tue,15 Jan 2019 09:55:37 GMT roberto
Answer by david_r https://knowledge.亚搏在线safe.com/answers/85362/view.html

Can you share the exact contents of statement used in the SQLCreator?A screenshot would be perfect.

Tue,15 Jan 2019 09:25:31 GMT david_r
Comment by roberto on roberto's answer https://knowledge.亚搏在线safe.com/comments/85342/view.html

@erik_jan,I made a mistake in the topic title and body.SqlCreator instead of SqlExecutor.The problem is that the same transformer with a second Database instance,works fine.The only difference is that the landscape where the problem occurs has two FME servers with distributed engines.I also tried to temporarily stop the secondary server but without positive result.

Roberto

Mon,14 Jan 2019 20:59:38 GMT roberto
Answer by erik_jan https://knowledge.亚搏在线safe.com/answers/85341/view.html

I suppose you have connected only the Result output port?

If you would have connected both Result and Initiator output ports,that would explain the duplicates.

Mon,14 Jan 2019 20:33:37 GMT erik_jan