Dates in cluase with codeless

Can you share what the object in JSON looks like when you create it?

I don’t create a JSON file, I using Backendless.data to save a class

Let’s make sure your afterCreate handler is even invoked. Add the following block as the very first block in the logic and create a new object. Check the log if the log produced any output.
Codeless%20-%20BL%20-%20ConsoleDemo%20-%20Backendless%202018-12-10%2015-25-06

made the change, no print
36

Ok, so we know that the event handler doesn’t run, that’s a good start.

What if you make the event handler to run as blocking? Right now it is configured to run as non-blocking. It is configured on the Event Handlers screen.

made the change, no effect
very strange, like the after create stopped to run

more then that, I saw the one time the after effect was run

but I didn’t see it on the log

why is beforeCreate non-blocking now??

it’s before create, changed it, let me try again

done it, no effect again :frowning:

mark, if before create fails, does it still run the after create?

found something, in the before create it’s working
that’s mean in time to time the after create for some reason not working
I am adding now the try catch to the before and trying to print the problem

if the before event handler fails, the after one will not run.

put the before in try catch, don’t have any error :frowning:

beforeCreate is still non-blocking. Is this how you want it?

moved it again to blocking
I also add a print as the last block, to see if exception is thrown
I getting the last print, which mean, the before create is working o.k.
I see also in the Backendless data that I have single event

the problem is that after event is not firing at all

ok, try removing the after event handler in production and then deploy it again using the DEPLOY MODEL button in the codeless editor.

done, no change, still after is not firing

it’s something new, few days ago, all was working o.k.
is it related that I delete the cache file?