Data not saving

Data isn’t saving when creating a new thing. I’m trying to create a new data called Dog. Users fill out information



about this dog then hit create listing and then a workflow will create this listing. Problem is the button is recognizing it is being pressed and it does create that Dog but non of the data entered is actually applying to that dog. It doesn’t save any information, no name, location, age of the dog nothing gets saved. Been pulling my hair out on this.

Can you share a screenshot of your workflow where you’re creating the dog? Did you map out each field on type ‘Dog’ to correspond to one of these inputs?

I have a screenshot here, a question about the fields. Does every field that exist in the type Dog have to have a correspondence? If i lets say leave even 1 field empty when creating that Dog. Is that what leads to the empty type? Because to answer your question no, not every field in that dog data type gets filled out when making the listing. Almost all of them do but i left a couple blank that only appear when you go to edit the listing because it just makes more logical sense that way.


No it doesn’t, it should just save the fields you have mapped and leave the blank ones blank.

Are you able to share a link to your editor (you could DM it to me if you don’t feel comfortable posting it). I’d be happy to take a look - because it certainly looks like this is setup properly.

Just shared that link. Ya this whole thing has me so confused because it use to work no issues at all and then one day i went to test it again and it just stopped working…. It’ll create that Thing but all the data inside is completely empty. If someone creates one and then goes to edit that thing it will save all the edits they made no problem but creating it with the data just doesn’t work.

I think this is your culprit:

It’s possible it’s resetting the form before creating the new thing. Try removing this step and seeing if it works for you-

I have already and that is not the culprit sadly.

I still see it there - do you mind removing it (or cloning the page for me with a version without it?)

Gotcha, i meant like I’ve tried it before and it hasn’t work but sure i just got rid of it for ya.

I had some success - when I hit ‘Preview’ from the editor, it tries to load a ‘dog’ that isn’t there (since the page is type ‘Dog’). If you don’t intend on using this page for anything other than creating Dogs (i.e. not modifying them) I would get rid of the Datatype of this page:
image

And then in step 2 of your Create a New Dog workflow, instead of ‘this page’s dog’ you’re going to add ‘Result of Step 1 (Create a new dog)’

Let me know if this works for you.

I tested this by removing the ‘Lorem%20ipsum…?’ from the URL, which is what it will automatically add when there’s no data on the page (in this case, no ‘dog’ data). In theory if you follow the above changes, this will no longer appear either, and I believe the workflow will run.

I appreciate the help and i tried what you mentioned and unfortunately no luck.

Ok it may not have been the aforementioned changes I suggested, and I realize now you do use that page to later edit a dog.

I found success again, this time removing the ‘?debug_mode=true’ from the URL, which only pops up when you load the preview from the editor. Truth be told I can’t figure out why that would be stopping it, but I had success 2 for 2, both times removing that from the URL. If anyone else has encountered this I’d love to hear from them!

Oh i got rid of the dog data type from the page because yes people do edit that dog but it doesnt take them to that page it’s a different page that lets them edit the dog. That was the only way i could get it to work. I once again tried what you mentioned and still no luck! So crazy. Im going to make a blank page with just a few inputs and another button to create a dog and see if it lets me there. Hopefully if it does it does truly mean something is just messed up with that page and i may have to remake it.

Yep made a very basic empty page with only two input fields, i tested out those input fields and it did create that dog with just those two input fields data. So something is totally busted on that page I’m thinking i should just remake it.

1 Like

I noticed a ton of conditions on each input - I feel it’d be a lot simpler from a dev perspective if you just put the only condition on the Submit / Create button, that way you don’t have to change each input individually based on the user type.

Yea your right ill look into that, so i created a new page and re-made it from scratch to see if that’ll work and i just tested it still doesnt work, so its clearly wrong on how its setup. Im just not sure how to be honest.

Try getting rid of all of these, just for testing purposes:

So i got rid of those AND i deleted a few fields to see if it’ll help and when i created a dog it did create one now, so clearly the thing that’s wrong is either those workflows OR those fields i had in the workflow to create the dog.

I think it is that the steps of the workflow don’t fire in sequence, they fire simultaneously - so I think it’s moving to the final step (Go to) before finishing the creation of the Dog. Can you ‘Go To Page’ only after Result of Step 1?