Skip to main content
Participant
June 5, 2024

Import triggers blocking warning "The structure of the data file for the layer "xx" has changed"

  • June 5, 2024
  • 5 replies
  • 439 views

In scripts, when importing a project with a JSON data file asset, , AE throws a modal warning dialog with the following message:

 

After Effects warning: The structure of the data file for the layer "scores.json" has changed

The dialog triggers regardless of the file not having changed since saving and furthermore it halts all scripting as the dialog does not respect app.suppressDialogs(), even from aerender.exe.

 

Also see:
https://community.adobe.com/t5/after-effects-discussions/mute-ae-warning-about-json-structure-changing/td-p/10044014

 
This topic has been closed for replies.

5 replies

June 12, 2024

There is a change going out with the 24.6x21 BETA later today that will remove the warning dialog. Hopefully that'll help with this situation. 

Participant
June 12, 2024

For anyone concerned - the workaround for this is to _only_ have the json as footage in your project, and _not_ add it as a layer anywhere. This avoids triggering the parsing for the properties tree that show up when JSON is presented as a layer.
However this means that you have to reference your JSON from footage rather than pickwhipping from the properties tree of a JSON layer.

var brands = footage("brands.json").sourceData;
brands[whatBrand+1].name;

If you want to export as a mogrt or reduce your project, you will need to include the layer in your comp, or the json file will be omitted from the mogrt.

Participant
June 12, 2024

Please do not hesitate to reach out if you have problems reproducing the error

Tom Olsen
Community Manager
Community Manager
June 5, 2024

I'm looking at this issue right now.

June 5, 2024

Thanks for reporting this and linking over to the other bug. I've created a bug internally to further discuss why we have this dialog and if we can get rid of it.