Skip to main content
Solved

command line fails


hello.

FME tells me that the Command-line to run this workspace is

fme.exe abc.fmw --SourceDataset_DGNV8 "abc.dgn" ^

--SourceDataset_LAS """"""10.las"" ""11.las"" ""12.las""""""

When executing in dos window only the first las file is processed.

any help would be greatly appreciated.

Best answer by trentatsafe

Hi @walgram,

This issue does appear to be a bug (in regards to the number of quotations). However, as Takashi stated, I believe the command line will function correctly by removing the outer pair of quotation marks(rather than 6 quotations, only requires 5). An update will be posted on this page when this issue has been addressed.

 

 

Apologies for the inconvenience.
View original
Did this help you find an answer to your question?

4 replies

scyphers
Participant
Forum|alt.badge.img+5
  • Participant
  • June 17, 2017

Hi @walgram

If the datasets in the workspace script are never going to change you could simply run

>fme.exe abc.fmw and it will read the parameters as are saved in the workspace.

For instance can the first parameter pointing to the dgn be dropped? (as in delete the DGN published parameter in workspace)

Next thing to try the cmd call all on one line (remove the carriage return)

and last perhaps vary the call to the datasets with a wildcard which will capture the las files you are chasing. e.g.

sys32> fme.exe "las_2_answer.fmw" --SourceDataset_LAS "C:\\Data\\PointClouds\\*.laz"

I think the call is having trouble parsing the --SourceDataset_LAS """"""thing1.las"" ""thing2.las""""" when i monkey around with balancing the quotes it starts failing. If a wildcard call to a directory of files will work for you i suggest trying that.


takashi
Evangelist
  • June 17, 2017

Hi @walgram, possibly the most outer pair of quotation marks is excessive. Try this command line.

fme.exe abc.fmw --SourceDataset_DGNV8 "abc.dgn" --SourceDataset_LAS """""10.las"" ""11.las"" ""12.las"""""

trentatsafe
Safer
Forum|alt.badge.img+6
  • Safer
  • Best Answer
  • June 23, 2017

Hi @walgram,

This issue does appear to be a bug (in regards to the number of quotations). However, as Takashi stated, I believe the command line will function correctly by removing the outer pair of quotation marks(rather than 6 quotations, only requires 5). An update will be posted on this page when this issue has been addressed.

 

 

Apologies for the inconvenience.

sussexpete
Contributor
Forum|alt.badge.img+4
  • Contributor
  • August 6, 2018

Thanks for posting a fix to this @trentatsafe and @takashi

I had exactly the same issue as @walgram. Now fixed by removing the outermost quotation marks from:

C:\\FME2018\\fme.exe C:\\FME\\EH-Documents\\201-GetEDRMS.fmw --SourceDataset_CSV2 """""".\\output\\GetPersonalLicence.csv"" "".\\output\\GetCharityLicence.csv"" "".\\output\\GetStandardLicence.csv"" "".\\output\\GetRisk.csv"" "".\\output\\GetNotice.csv"" "".\\output\\GetPlanning.csv"" "".\\output\\GetGrant.csv"" "".\\output\\GetComplaint.csv""""""

It's still a problem in FME2018.0 but good to know there's an easy get-round.


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