Very rarely, you might run into a strange bug where your animation file won't open and you see an error window that says "Flow was unable to locate a layer or property named"... Follow along to see how you can triage your file.
Download this broken file:
Strap yourself in for a bit of the matrix.
In some very rare cases, your Flow file can get out of sync with itself (or your Sketch file… we haven’t really nailed down which one). If this happens to you, and you get a window like this:
This is actually easy to fix.
When a file breaks like this you won’t be able to double-click it. So, to get this error you’ll have to open it from Flow’s menu.
This step starts at 0:12
In Flow…
Deeeenied…
The .flow
is a lovely extension name, but really a Flow file is directory in disguise. You can easily see its contents by:
You’ll see the guts of the Flow file looks something like this:
We’ll dive into this structure in another doc. So for now…
To fix your file you need to find the broken reference in the file.
F908BEDF-6559-4393-954F-3DED1A25092D
)The most likely explanation for this bug is that a layer was deleted from your Sketch file, and your flow file wasn’t able to sync properly. In our case, the property looks like this:
"F908BEDF-6559-4393-954F-3DED1A25092D" : {
"properties" : {
"position.x" : 2227
}
},
It looks like an x
position for a property…
To fix your file, simply delete the entire reference above, so that this…
Becomes this…
Save the edited .json
file, then open missingPropertyExample.flow
again.
Wham.
result(s) found for “”.