Skip to main content
Solved

GENERIC Reader Error: Generate requires an even number of arguments

  • August 25, 2017
  • 5 replies
  • 22 views

Forum|alt.badge.img

I am unable to add generic reader. My requirement is to read multiple files of two formats i.e *.dwg and *.dgn with dynamic schema.

I am able to add simple generic reader with single value like one dwg file.

Thanks in advance.

Getting the following error in translation log.

Generate requires an even number of arguments -- received arguments `C:\Program Files\FME\fmeworker.exe' `GENERATE' `GENERIC' `NULL' `C:\ProgramData\Safe Software\FME Server\resources\data\user\*.dwg' `C:\ProgramData\Safe Software\FME Server\resources\data\user\*.dgn' `C:\Users\username\AppData\Local\Temp\FME_1503658297685_15148.fmw' `+MERGE_SCHEMAS' `YES' `--SourceREAL_FORMAT' `GUESS_FROM_EXTENSION' `LOG_STANDARDOUT' `YES'Program TerminatingTranslation FAILED.

Defining the path in GENERIC Reader as follows:

"C:\ProgramData\Safe Software\FME Server\resources\data\anyfolder\*.dwg" "C:\ProgramData\Safe Software\FME Server\resources\data\anyfolder\*.dgn"

Best answer by danilo_fme

Hi @dheeraj,

I sinulated here in my FME Desktop 2017:

1) in Reader - Dataset - Select Multiple Folders / Files

2) Write the Folder with two Filters:

3) Result:

C:\\Users\\dlima\\Desktop\\Teste_\\*.dgn,C:\\Users\\dlima\\Desktop\\Teste_\\*.dwg

Thanks,

Danilo

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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.

5 replies

danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • Best Answer
  • August 25, 2017

Hi @dheeraj,

I sinulated here in my FME Desktop 2017:

1) in Reader - Dataset - Select Multiple Folders / Files

2) Write the Folder with two Filters:

3) Result:

C:\\Users\\dlima\\Desktop\\Teste_\\*.dgn,C:\\Users\\dlima\\Desktop\\Teste_\\*.dwg

Thanks,

Danilo


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • August 25, 2017
Hi @dheeraj, the solution is good to you?

 

 

Thanks,

 

Danilo

 


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • August 25, 2017

Hi @dheeraj,

I sinulated here in my FME Desktop 2017:

1) in Reader - Dataset - Select Multiple Folders / Files

2) Write the Folder with two Filters:

3) Result:

C:\\Users\\dlima\\Desktop\\Teste_\\*.dgn,C:\\Users\\dlima\\Desktop\\Teste_\\*.dwg

Thanks,

Danilo

Hi @dheeraj, the solution is good to you?

 

 

Thanks,

 

Danilo

 


Forum|alt.badge.img
  • Author
  • August 28, 2017

Yes, It works for me, Thanks a lot for the help @danilo_inovacao


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • August 28, 2017

Yes, It works for me, Thanks a lot for the help @danilo_inovacao

@dheeraj, you are Welcome !