Error while importing project to DataIKU: java.lang.IllegalStateException

Brij
Brij Registered Posts: 7 ✭✭
edited July 7 in Using Dataiku

Hi All, I am trying to import a project to DataIKU but getting below error -

"Oops: an unexpected error occurred

java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at path $, caused by: IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at path $

Please see our options for getting help

TTP code: 500, type: com.google.gson.JsonSyntaxException"

Kindly share if there is any suggestions.

Thanks,

Operating system used: Linux

Answers

  • Turribeach
    Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,574 Neuron

    This one is one for Dataiku Support. It is very likely your project has corrupted files due to users using the versioning roll back feature to roll back project files to previous version of Dataiku. Long story short when Dataiku rolls back files it doesn't check for backwards compatibility so the project can be left with invalid files. Support can help you fix these files to get the project working properly again. In general you should advice users not to use the versioning roll back in multiple files and only roll back individual files. When rolling back they should be aware of upgrades and version changes which may make the previous version incompatible.

  • Brij
    Brij Registered Posts: 7 ✭✭

    Thanks @Turribeach for quick suggestion. A little more info on issue. Please see if this changes anything. Project is a simple POC project with no code versioning so far. Our team tried creating DataIKU project with help of a python based utility. DataIKU Project creation is happening fine with some issues with few recipes. Ideally I should be able to export and import this project. Can above error occur if there are issues with individual Recipes within project.

  • Turribeach
    Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,574 Neuron
    edited July 7

    In that case it sounds like your code didn’t create the recipes properly. Start deleting the recipes you created and exporting/importing the project again to find out which one you created incorrectly. In the future please give all the relevant information when you post for help otherwise people looking at the issue are left guessing what the problem could be.

Setup Info
    Tags
      Help me…