The last days I had opened a topic about disappearing codeless blocks. This morning it happened again.
I’ve nothing changed in the functions so far. But there are now again missing blocks, especially at if blocks.
After last time fixing the functions, I backupped the XML files of the functions, when I compare them to the state now, you can clearly see that these blocks are even missing in the XML files, without I changed something active…
<xml xmlns="http://www.w3.org/1999/xhtml">
<block id="ljS.8q_XKPSGe7PYjG/P" type="root_block_method_EightCloud_GetAcquisitionMetaData" y="-123" x="150" deletable="false">
<statement name="statements_code">
<block id="rw2KFzu_jjl@T.EWX~|W" type="controls_if">
<statement name="DO0">
<block id="tnVoudRlvCf-0;blsK{d" type="throw_error">
<value name="error">
<shadow id=",x7XT$3r/l]j-M1c5~}j" type="new_error">
<xml xmlns="http://www.w3.org/1999/xhtml">
<block id="ljS.8q_XKPSGe7PYjG/P" type="root_block_method_EightCloud_GetAcquisitionMetaData" y="-123" x="150" deletable="false">
<statement name="statements_code">
<block id="rw2KFzu_jjl@T.EWX~|W" type="controls_if">
<value name="IF0">
<block id="3k8!)![6$E.Z=Nb09FVP" type="logic_negate">
<value name="BOOL">
<block id="G(Sb-`CO{P@XI#jE(#?-" type="codeless_function_block_8e86f58d99ad807a64fb5f530684ffea">
<value name="UserID">
<block id="Ekrt9WtWyj;`eXGyO~m;" type="root_block_method_context_blocks_user_id"></block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block id="tnVoudRlvCf-0;blsK{d" type="throw_error">
<value name="error">
<shadow id=",x7XT$3r/l]j-M1c5~}j" type="new_error">
Good to see, that in the first if tag there are a few blocks missing in the first Code.
I can’t imagine how this can happen on the Servers. Yesterday evening all my functions were working, then this morning I opened the browser to check my app and got error Messages, then I saw this again.
Poorly this happens now very often directly before the launch of my app. I think I have to move to JS or Java or to a completely other mBaaS company…but that would now delay everything even more


Hi Jonas
I’ve created an internal ticket BKNDLSS-16171 for resolve your problem, and we will notify you here about any result as soon as possible
Regards, Vlad
just want to clarify, have you clicked to “deploy model” button after some blocks are gone ?
Yes, I deployed something today, as I tried to fix the function. But the XML I copied into above, is from the state before the deploy. I can give that to you, if that helps.
Yes, it will help, you can send the xml file/files to support@backendless.com (with link on the topic). I will import the xml to my local app and try to reproduce it.
For catch the problem I need to repeat the same behavior.
Until I’ve found a reason of the problem if you see that blocks are gone again don’t click “deploy model”, and I can check it on my side without your local changes
I sent you a mail a few minutes ago with the XML file of the corrupt function and a backup of my working application from yesterday.
What I noticed while fixing my functions now and maybe that helps, there are normally the same blocks missing.
- Mostly “not” blocks and everything else what was behind this not block
- Sometimes numbers/constants
- Sometimes “typeof” blocks, when this happens, normally all blocks of this type are gone
and sometimes the “equal/unequal/…” block, then also with all blocks which were behind/inside
I’m trying to reproduce the problem several times with different use cases and nothing help, I can not get any blocks missed.
Could you confirm this steps:
- you have deployed service-method logic where all the blocks are present, and in the codeless browser (items-tree) the service-method is not highlighted by green color (no local changes)
- close the Codeless Designer
- sometime you open the service-method and see that some of the blocks are gone, and in the codeless browser the service-method is highlighted by green color (has local changes), right?
Yes, the steps are right.
I can’t exactly remember whether the service method was highlighted green when I clicked on it in the browser tab.
It just happened again. Now I can exactly describe you what I did.
- Changed one of my service methods. After that I did a “backup” in the Coding tab, by downloading project and saved the ZIP file on my PC. After that I logged off from the backendless page and left my PC at work. At work, I use the latest Microsoft Edge (the only which is allowed, so far).
- Now on another computer I opened the browser (Firefox 57.0), logged into backendless, clicked BusinessLogic, then my service method in the Api Services Tab, and then the Logic Tab in the middle.
- There are again missing some blocks:
- One “is empty list” block with a variable inside
- One “equal” block with a parameter and a constant number in it
If you want, I can again sent you the backup from 2 hours ago. This time I did not touch anything except that what I described above.

it’s great, I mean that we know the problem is with browsers.
I guess you did not “deploy” the missed block yet, and I can take a look on the logic in my side
I can see that both of your xml files of “GetAcquisitionMetaData” method in Production and in Draft are equals, and there are missed blocks
I have a few assumptions why it happened:
- you have deployed the missed blocks from your another laptop
- you have not deployed the fixes from your work laptop
- when you fixed everything and try to deploy from your work laptop, the deploy is failed by some reason
yeah, please send backup from 2 hours ago
Thanks
Hmm, I’m really shure that fixed and I deployed the missing blocks, the tests with my client software worked after the deploy again. When the blocks were missing, I got no/the wrong data.
I just sent you a mail with my backup from when I left work.
there are the same xml and in js code I can see the next:
...
await Backendless.UserService.logout()
if (false) {
ReturnData = [];
}
...
“false” - that’s mean in xml no “if_condition”
I propose when you fix/deploy everything let us know and we will check it on our side, and maybe we can reproduce the problem with missed blocks
Now I repaired the service function and deployed. All missing blocks are there, also on another Computer, when I log in there.
The appropriate code looks like this:
if (!ReturnData.length) {
ReturnData = [];
}
if (!DbData.length && id == -1) {
throw (new Backendless.ServerCode.Error(0,'Resource ID not available',404))
}
In the first backup I sent (Mail from 16.11. 14:11) you, the Code looked like this after I deployed it.
if (ReturnData == null) {
ReturnData = [];
}
if (!DbData.length && id != -1) {
throw (new Backendless.ServerCode.Error(0,'Resource ID not available',404))
}
so, now on your both computers all the logic is without missed blocks, right?
if you notice that blocks gone again don’t “deploy”, just let us know here and I will check it on my side
Yep, I see the new/fixed blocks on both PCs.
Ok, I’ll net you know when I happens again.
Hi Jonas
How are you doing? Have you get the problem again? or I may mark the topic as solved?
Regards, Vlad
Yes, there are still problems. But they are definetly not related to your servers, they are related to the browser(s)or blocky.
Sometimes blocks disappear when I add new blocks. Then you can notice that the whole function block moves a little up, then I know that blocks disappeared. Clearing the cache and restarting the browser helps to get the old state of the codeless function.
This happens irregular. Yesterday there was nothing, today very often. Not only on my PC, also at the PCs of my colleagues and at home with different browsers (Internet Explorer, Edge, Firefox, Safari, Chrome and Opera tested).