Sorry, the InVision Help Center does not support Internet Explorer. Please download Microsoft Edge or another modern browser.


InVision ambassador ambassador
Justin White Justin White Edited

CRAFT JSON Data Feature Looses Sync Making It Completely Useless

It looks like the JSON data feature is broken.

 

Setup

MBP Late 2015 — 10.13.3 (17D102)

Sketch — 50.2 (55047)

CRAFT — 1.0.66

 

1. I created a JSON file

2. I used the JSON file to apply values to a drop down

3. When I sync with InVision, the values are reverted to the non-JSON values (Favorite Entree, Favorite Entree, Favorite Entree, Favorite Entree, Favorite Entree, etc)

4. I applied the JSON once more and saved.

5. When I reopened the file today, all the values had been reverted to the original values… again.

 

Default State & JSON Snippet

 

JSON Applied Successfully

 

Syncing with CRAFT

 

InVision Results

Additionally, I'll save and close the document

 

File Reopened

 

Source Files

Sketch — https://www.dropbox.com/s/18j24s213eyqq6j/bg-dynamic-attributes-INV-Support.sketch?dl=0

JSON — https://www.dropbox.com/s/dzyrotbrr6oc4ie/Custom-Attributes-Menus.json?dl=0

 

Project Directory Structure (reference)

 

*EDIT* It appears that the CRAFT plugin recognizes that the symbols have values/strings applied to them. Note how the plugin shows the `items` labels applied to the selected symbols but the values do not match the JSON

 

0

comments

sort by


Shaina Torgerson
InVision ambassador Shaina Torgerson, InVision Employee , ambassador
Comment actions Permalink

Hi Justin,

So sorry to hear that you're running into these issues with JSON Data. This sounds like an issue best tackled by our Support team to troubleshoot using the files you are encountering this with.

However, before sending you to Support, can you please answer the following?:

     1. What version of the Craft Data plugin are you using?
     2. Can you please send a screenshot of your "About this Mac" overview?

Thanks in advance,

Shaina

0

Alasdair
InVision ambassador Alasdair , ambassador
Comment actions Permalink

Hey - I'm experiencing a similar problem where I've linked up JSON to text layers, and it's sending through mismatched values to the sketch canvas on duplication.

The first instance pulls through the correct data, then every duplicated instance is pure garbage, with mismatched data being sent to text layers.

Here's the JSON link https://www.commercialrealestate.com.au/for-sale/?bb=-33.28299252069831%2C-34.23744424247815%2C151.76110856353603%2C150.1337587100204%2C10&format=json

 

 

 

0

Michéle (Mikele) De Sousa
InVision ambassador Michéle (Mikele) De Sousa , ambassador Edited
Comment actions Permalink

Hi Alasdair

I am going to take a stab at this and need to ask, can you share a screenshot of the Sketch layer used to create the component? Or even the sketch file?

Justine will try to have a look at the sketch file and information you sent. If you can reply to Shaina question in the meantime please. Thanks.

This could be a sketch versioning issue.

Regards,

0

Shaina Torgerson
InVision ambassador Shaina Torgerson, InVision Employee , ambassador
Comment actions Permalink

Sorry to hear that you're running into a similar issue, Alasdair. Can you please also provide the following information so that we can take a closer look at this?:

     1. Your Sketch version details.
     2. The version of Craft Manager that you're running.
     3. The version of the Craft Data plugin that you have installed. 

To check the current production version numbers and for help updating or finding the Craft tool versions you have installed, please read this guide.

Look forward to hearing from you,

Shaina

0

Alasdair
InVision ambassador Alasdair , ambassador Edited
Comment actions Permalink

Hey - sorry for the slow reply!

Craft manager: 1.0.79

Sketch: 53.2

Sketch data plugin: 1.0.38

0

Alasdair
InVision ambassador Alasdair , ambassador
Comment actions Permalink

Michele - thanks for offering to help. Doesn't look like I can attach a sketch file here. If you give me your email I can send you a google drive link..

In the mean time - here's the sketch layer

And here's a shot of the nested symbol where all the text layers are linked to JSON file

Thanks!

0

Shaina Torgerson
InVision ambassador Shaina Torgerson, InVision Employee , ambassador
Comment actions Permalink

Hi Alasdair,

Thank you very much for including all of this information, and for working a bit with our Community Ambassador, Michéle. After doing much troubleshooting, Michéle was unable to reproduce the issue that you're encountering.

Since you are on the latest versions of everything, this definitely requires a closer look at your file. I will open a ticket on your behalf so that our Support team can dive deeper. 

Please look for a message from one of our Support agents soon.

Best,

Shaina

0

join the conversation

to comment, sign up or sign in.