Skip to main content
Solved

"Source file is not valid" error after running

  • September 21, 2017
  • 6 replies
  • 62 views

fmenco
Contributor
Forum|alt.badge.img+5

Hi, I've literally just started experimenting with FME. When I run, it says that the translation was successful. But it doesn't seem to create output. I get a "The source file isn't valid" error when I open the inspector, and when I browse to the folder there's no output file. I'm trying to convert a DGN to Esri shapefile, and I've literally just been following the steps on an online tutorial, and I've used their datafile, and my own. With both input files, I get the same error. Do I have to change something in my general FME settings, or are the settings on my PC the issue?

Best answer by fmenco

I found the problem, guys! It was in step 3 of the tutorial... I didn't select Microstation design v8, but v7. This because I let FME atomatically detect the format from the dataset, and my file was a v7 file. It also used v7 for the data in the tutorial. I guess with v7, FME has a problem writing the data? That's literally the only thing I did differently, and now I do have output, for both my data and the tutoriald ataset. Thanks for helping me think ..:-)

View original
Did this help you find an answer to your question?

6 replies

ciarab
Contributor
Forum|alt.badge.img+9
  • Contributor
  • September 21, 2017
Maybe share the logfile with us if you can?

 

 


fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • September 21, 2017
ciarab wrote:
Maybe share the logfile with us if you can?

 

 

@fmenco I agree the logfile can really be helpful in cases like this. Are you trying to follow along with this tutorial? How to Convert DGN to Shape (CAD Levels to GIS Attributes)

 


fmenco
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • September 21, 2017
fmelizard wrote:
@fmenco I agree the logfile can really be helpful in cases like this. Are you trying to follow along with this tutorial? How to Convert DGN to Shape (CAD Levels to GIS Attributes)

 

 

Lol.. Yes !..., And I've also used my own DGN file, but I get the same error... It does read the features, but writes 0 features as output... I'll post the logfile when I can.

 

 


fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • September 21, 2017
Are you able to Inspect your Reader and successfully see the DGN in the Data Inspector?

 


fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • September 21, 2017

Hi @fmenco,

 

 

It's possible that you're geometries aren't being accepted by the shapefile writer - Be sure to check out step 8 of the tutorial carefully: https://knowledge.safe.com/content/kbentry/1533/index.html

 

 

In the example dataset from the tutorial you want to make sure your writer is looking for polylines (not polygons). If the geometries don't match then the writer will skip them and you will have an empty output file. I think you should see some kind or warning in your lob (blue text)

 

 

This was exactly my first issue with FME and is my best guess at the problem.


fmenco
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • Best Answer
  • September 22, 2017

I found the problem, guys! It was in step 3 of the tutorial... I didn't select Microstation design v8, but v7. This because I let FME atomatically detect the format from the dataset, and my file was a v7 file. It also used v7 for the data in the tutorial. I guess with v7, FME has a problem writing the data? That's literally the only thing I did differently, and now I do have output, for both my data and the tutoriald ataset. Thanks for helping me think ..:-)


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