Hi fellow Prisma users, it seems that we cannot im...
# orm-help
r
Hi fellow Prisma users, it seems that we cannot import data with null fields into existing database. Is this correct? Thanks and have a great weekend!
h
please share some logs so that people may help
👍 1
r
Thank you for your reply. All I have done was issuing the command
prisma import -d my_previously_exported_file.zip
and I get the following message:
Copy code
Unzipping 9ms
Uncaught exception, cleaning up: Error: Object {"_typeName":"User","id":"j8k001r0745ovpgr971","updatedAt":"2018-11-16T16:17:32.148Z","email":"<mailto:confused@nowhere.co|confused@nowhere.co>","lastName":"Hussain","firstName":"test3","createdAt":"2018-11-07T19:19:14.437Z","auth0UserId":"an_auth0_id"} lacks the following properties: dateOfBirth
Validating data ✖
It seems that it cannot find the field dateOfBirth for this user. In my application, some users entered dateOfBirth and some didn't; where the field was then given a null value.