Sketch Import Error "Object Not Found"

I have been trying to test importing assets from sketch before i spend of bunch of time figure it out. I keep getting this error.

System.Exception: object not found: FC38165E-4D07-455C-B63E-C431B06B9A55

No idea what it means, cant find anything. I just took a random sketch file from here: http://www.sketchappsources.com/resource/download-1933.html and ran fuse import filename.sketch. That didnt work, checked the forums, and tried this:[https://www.fusetools.com/community/forums/permalink/9582bea6-b64f-43a9-9503-eafa40c323e0]. I got the same error. Any ideas?

Some light reading for you…

klik:fuse-mongodb-demo klik$ /Applications/Fuse.app/Contents/Mono/bin/mono /Applications/Fuse.app/Contents/SketchImporter/SketchImporter.exe TETHRUIKit.sketch --app ThethrUIKit.ux
Analyzing TETHRUIKit.sketch. This can take a while if the file is big.
Analyzing file structure...

Unhandled Exception:
System.Exception: object not found: FC38165E-4D07-455C-B63E-C431B06B9A55
  at SketchImporter.SketchParser.FindX (System.Object layers, System.Object obj) <0x338b9648 + 0x0101b> in <filename unknown>:0 
  at SketchImporter.SketchParser.ParseChildLayers (SketchImporter.NameChooser nc, SketchImporter.ParentLayer lg, System.Object layer, System.Object layerInfo) <0x338c4000 + 0x00b1b> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,SketchImporter.NameChooser,SketchImporter.LayerGroup,object,object)
  at SketchImporter.SketchParser.ParseLayerGroup (SketchImporter.ParentLayer parent, SketchImporter.NameChooser nc, System.Object layer, System.Object layerInfo) <0x338c8400 + 0x00404> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,SketchImporter.ParentLayer,SketchImporter.NameChooser,object,object)
  at SketchImporter.SketchParser.ParseLayer (SketchImporter.ParentLayer parent, SketchImporter.NameChooser nc, System.Object layer, System.Object layerInfo) <0x338c56a0 + 0x01454> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,SketchImporter.ParentLayer,SketchImporter.NameChooser,object,object)
  at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid5[T0,T1,T2,T3,T4] (System.Runtime.CompilerServices.CallSite site, System.Dynamic.T0 arg0, System.Dynamic.T1 arg1, System.Dynamic.T2 arg2, System.Dynamic.T3 arg3, System.Dynamic.T4 arg4) <0x338c2fb8 + 0x00139> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,SketchImporter.ParentLayer,SketchImporter.NameChooser,object,object)
  at SketchImporter.SketchParser.ParseChildLayers (SketchImporter.NameChooser nc, SketchImporter.ParentLayer lg, System.Object layer, System.Object layerInfo) <0x338c4000 + 0x00b45> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,SketchImporter.NameChooser,SketchImporter.Page,object,object)
  at SketchImporter.SketchParser.ParsePage (SketchImporter.NameChooser nc, System.Object page, System.Object layerInfo) <0x338c0728 + 0x0039d> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,SketchImporter.NameChooser,object,object)
  at SketchImporter.SketchParser.ParseDocument (SketchImporter.NameChooser nc, System.Object data, System.Object layersInfo) <0x27085ff0 + 0x00aa5> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,SketchImporter.NameChooser,object,object)
  at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet] (System.Runtime.CompilerServices.CallSite site, System.Dynamic.T0 arg0, System.Dynamic.T1 arg1, System.Dynamic.T2 arg2, System.Dynamic.T3 arg3) <0x270836e8 + 0x004a3> in <filename unknown>:0 
  at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) <0x48374b0 + 0x002a9> in <filename unknown>:0 
  at SketchImporter.Program.Main (System.String[] args) <0x8d1f58 + 0x0056f> in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: object not found: FC38165E-4D07-455C-B63E-C431B06B9A55
  at SketchImporter.SketchParser.FindX (System.Object layers, System.Object obj) <0x338b9648 + 0x0101b> in <filename unknown>:0 
  at SketchImporter.SketchParser.ParseChildLayers (SketchImporter.NameChooser nc, SketchImporter.ParentLayer lg, System.Object layer, System.Object layerInfo) <0x338c4000 + 0x00b1b> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,SketchImporter.NameChooser,SketchImporter.LayerGroup,object,object)
  at SketchImporter.SketchParser.ParseLayerGroup (SketchImporter.ParentLayer parent, SketchImporter.NameChooser nc, System.Object layer, System.Object layerInfo) <0x338c8400 + 0x00404> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,SketchImporter.ParentLayer,SketchImporter.NameChooser,object,object)
  at SketchImporter.SketchParser.ParseLayer (SketchImporter.ParentLayer parent, SketchImporter.NameChooser nc, System.Object layer, System.Object layerInfo) <0x338c56a0 + 0x01454> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,SketchImporter.ParentLayer,SketchImporter.NameChooser,object,object)
  at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid5[T0,T1,T2,T3,T4] (System.Runtime.CompilerServices.CallSite site, System.Dynamic.T0 arg0, System.Dynamic.T1 arg1, System.Dynamic.T2 arg2, System.Dynamic.T3 arg3, System.Dynamic.T4 arg4) <0x338c2fb8 + 0x00139> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,SketchImporter.ParentLayer,SketchImporter.NameChooser,object,object)
  at SketchImporter.SketchParser.ParseChildLayers (SketchImporter.NameChooser nc, SketchImporter.ParentLayer lg, System.Object layer, System.Object layerInfo) <0x338c4000 + 0x00b45> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,SketchImporter.NameChooser,SketchImporter.Page,object,object)
  at SketchImporter.SketchParser.ParsePage (SketchImporter.NameChooser nc, System.Object page, System.Object layerInfo) <0x338c0728 + 0x0039d> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,SketchImporter.NameChooser,object,object)
  at SketchImporter.SketchParser.ParseDocument (SketchImporter.NameChooser nc, System.Object data, System.Object layersInfo) <0x27085ff0 + 0x00aa5> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,SketchImporter.NameChooser,object,object)
  at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet] (System.Runtime.CompilerServices.CallSite site, System.Dynamic.T0 arg0, System.Dynamic.T1 arg1, System.Dynamic.T2 arg2, System.Dynamic.T3 arg3) <0x270836e8 + 0x004a3> in <filename unknown>:0 
  at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) <0x48374b0 + 0x002a9> in <filename unknown>:0 
  at SketchImporter.Program.Main (System.String[] args) <0x8d1f58 + 0x0056f> in <filename unknown>:0 
klik:fuse-mongodb-demo klik$ 

Thank you.

Hi,

Please upload the specific sketch file that causes this error.

Thanks

deleted

looks like files are kind a big. I created a new fuse project just to test the import. I added a sketch file. I ran fuse import. Looks like the end result is that many files were created but you still get import failed error. I will check to see if all the files where converted before the error logs. Uploaded to github so you can see it https://github.com/aarmand/sketchimport. Taking some time to upload.
https://github.com/aarmand/sketchimport/blob/master/readme.md

Alain: you can’t upload such files directly to the forum. Put it on a Dropbox or similar service and paste the share-link here.

All the docs and output are here.

https://github.com/aarmand/sketchimport.

Console Output:
https://github.com/aarmand/sketchimport/blob/master/readme.md

Hi Alain,

Thank you for adding the example on GitHub, very helpful. We have reproduced the error with the files you provided and are currently looking into the issue.

Do you know which version of Sketch was used to produce the file?

Thank you

Hi Alain,

I’ve discovered two issues related to the example you provided. The first was an unhandled color format, this has been fixed in the upcoming 0.29 release of Fuse.

The second one is an issue with slashes in element names. This is a known issue which will be fixed in a future release. The current work around is to not use slash for naming components. I think there was one button called On/Off button, after renaming that I was able to import the example.

So look out for the upcoming 0.29 release, I hope this solves your issue.

Standing by. You guys are awesome.

Thanks

Thanks :slight_smile: Just pointing out that if you just rename that component, you can keep working, there’s no real reason to stand by for a fix.

Thanks, Bent. Figured that, but wanted to let you all know anyway.