Sync Changes errors, "Codeless Custom Function "funcname" error on create: this.sdkClient.codeless.createFunctionSource is not a function

Hello,

Our team is trying to set up multiple environments for staging deployments by utilizing the Sync Changes function, however we’re seeing a number of internal errors when using it, predominately errors with codeless custom functions:

06/07/2023 14:24:06 Starting change synchronization for the target app "MageCRM_QA"
06/07/2023 14:24:18 Codeless API Service "OneClickSetup", method "completeOneClickSetup" error on update: Backendless encountered an error while handling the request. An internal trouble ticket with ID 2443AEEA-4179-0683-FF06-9A6BB74ED600 has been created and we will be investigating the issue.
File system element for parameter 'file' does not exist: '/opt/backendless/repo/b9adeaa5-f56f-ab42-ff4a-502d358cce00/files/servercode/CODELESS/OneClickSetup/DRAFT/services/OneClickSetup/completeOneClickSetup.xml'
java.lang.IllegalArgumentException: File system element for parameter 'file' does not exist: '/opt/backendless/repo/b9adeaa5-f56f-ab42-ff4a-502d358cce00/files/servercode/CODELESS/OneClickSetup/DRAFT/services/OneClickSetup/completeOneClickSetup.xml'
at org.apache.commons.io.FileUtils.requireExists(FileUtils.java:2701)
at org.apache.commons.io.FileUtils.sizeOf(FileUtils.java:2822)
at controllers.files.FileManagement.lambda$fileEdit$16(FileManagement.java:423)
at com.backendless.async.BackendlessExecutorService.lambda$submit$0(BackendlessExecutorService.java:84)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

06/07/2023 14:24:26 Codeless API Service "Permissions", method "addPermissions" error on update: Backendless encountered an error while handling the request. An internal trouble ticket with ID 7180CC87-4945-1163-FFFE-C30B641A3400 has been created and we will be investigating the issue.
File system element for parameter 'file' does not exist: '/opt/backendless/repo/b9adeaa5-f56f-ab42-ff4a-502d358cce00/files/servercode/CODELESS/Permissions/DRAFT/services/Permissions/addPermissions.xml'
java.lang.IllegalArgumentException: File system element for parameter 'file' does not exist: '/opt/backendless/repo/b9adeaa5-f56f-ab42-ff4a-502d358cce00/files/servercode/CODELESS/Permissions/DRAFT/services/Permissions/addPermissions.xml'
at org.apache.commons.io.FileUtils.requireExists(FileUtils.java:2701)
at org.apache.commons.io.FileUtils.sizeOf(FileUtils.java:2822)
at controllers.files.FileManagement.lambda$fileEdit$16(FileManagement.java:423)
at com.backendless.async.BackendlessExecutorService.lambda$submit$0(BackendlessExecutorService.java:84)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

06/07/2023 14:24:26 Codeless API Service "Permissions", method "removePermissions" error on update: Backendless encountered an error while handling the request. An internal trouble ticket with ID EAAE3C90-BD5E-FCD9-FF7B-9A094955D800 has been created and we will be investigating the issue.
File system element for parameter 'file' does not exist: '/opt/backendless/repo/b9adeaa5-f56f-ab42-ff4a-502d358cce00/files/servercode/CODELESS/Permissions/DRAFT/services/Permissions/removePermissions.xml'
java.lang.IllegalArgumentException: File system element for parameter 'file' does not exist: '/opt/backendless/repo/b9adeaa5-f56f-ab42-ff4a-502d358cce00/files/servercode/CODELESS/Permissions/DRAFT/services/Permissions/removePermissions.xml'
at org.apache.commons.io.FileUtils.requireExists(FileUtils.java:2701)
at org.apache.commons.io.FileUtils.sizeOf(FileUtils.java:2822)
at controllers.files.FileManagement.lambda$fileEdit$16(FileManagement.java:423)
at com.backendless.async.BackendlessExecutorService.lambda$submit$0(BackendlessExecutorService.java:84)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

06/07/2023 14:24:28 Codeless Custom Function "copyTemplate" error on create: this.sdkClient.codeless.createFunctionSource is not a function
06/07/2023 14:24:28 Codeless Custom Function "sharePropertyTypesSequence" error on create: this.sdkClient.codeless.createFunctionSource is not a function
06/07/2023 14:24:28 Codeless Custom Function "copyDirectoryObject" error on create: this.sdkClient.codeless.createFunctionSource is not a function
06/07/2023 14:24:28 Codeless Custom Function "sharePropertyGroupTypesSequence" error on create: this.sdkClient.codeless.createFunctionSource is not a function
06/07/2023 14:24:28 Codeless Custom Function "setupDefaultProperties" error on create: this.sdkClient.codeless.createFunctionSource is not a function
06/07/2023 14:24:28 Codeless Custom Function "copyCampaign" error on create: this.sdkClient.codeless.createFunctionSource is not a function
06/07/2023 14:24:28 Codeless Custom Function "addUserToMageFolder" error on create: this.sdkClient.codeless.createFunctionSource is not a function
06/07/2023 14:24:28 Codeless Custom Function "addDirectoryObjectPermissions" error on create: this.sdkClient.codeless.createFunctionSource is not a function
06/07/2023 14:24:28 Codeless Custom Function "setupNotesProperty" error on create: this.sdkClient.codeless.createFunctionSource is not a function
06/07/2023 14:24:28 Codeless Custom Function "createDataLimitForNewUser" error on create: this.sdkClient.codeless.createFunctionSource is not a function
06/07/2023 14:24:28 Codeless Custom Function "setupDummyContacts" error on create: this.sdkClient.codeless.createFunctionSource is not a function
06/07/2023 14:24:28 Codeless Custom Function "addUserToMageSupportAccounts" error on create: this.sdkClient.codeless.createFunctionSource is not a function
06/07/2023 14:24:28 Codeless Custom Function "shareDirectoryObjectsSequence" error on create: this.sdkClient.codeless.createFunctionSource is not a function
06/07/2023 14:24:28 Codeless Custom Function "copyFIleItem" error on create: this.sdkClient.codeless.createFunctionSource is not a function
06/07/2023 14:24:28 Synchronization completed.
============================================================

We are trying to migrate changes from app ID 532CF1B7-693E-48CA-B1B1-F16FCB709609 into B9ADEAA5-F56F-AB42-FF4A-502D358CCE00

Please advise as we are unsure how to proceed besides migrating these objects manually.

Thanks!

Hello @Nathan_Cousins

Thx for reporting. We found the problem. We will fix it as soon as possible.

Regards

1 Like

Hello, any updates on this? We need to create a staging environment asap

Hello @Luke_Jasudavicius,

Sorry for inconvenience.
Right now the fix is made and waiting for the stage testing, so it should appear shortly.

Regards,
Olha

Should we try again now?

Hi @Luke_Jasudavicius,

The issue has already been fixed. It is now in the testing phase, as soon as it is released and available, we will let you know in this thread. The problem will be fixed in the next release.

Regards,
Marina

Any updates on this?

Hi @Luke_Jasudavicius,

We are going to make a release with a fix for the issue reported above in the nearest time. When the fix is available, we will let you know.

Regards,
Marina

Hi @Luke_Jasudavicius,

The issue that you wrote about above has been fixed from our side. Can you confirm that everything is working as it should now?

Regards,
Marina

Hi @Marina.Kan ,

I’ve reran the migration and it appears to have mostly worked. The custom functions appear to have gone through, though there are still a few more errors that appear to be internal:

07/14/2023 14:54:02 Starting change synchronization for the target app "MageCRM_QA"
07/14/2023 14:54:13 Codeless API Service "OneClickSetup", method "completeOneClickSetup" error on update: Backendless encountered an error while handling the request. An internal trouble ticket with ID 4ABAB3BE-319C-A590-FF83-0022F4FED900 has been created and we will be investigating the issue.
File system element for parameter 'file' does not exist: '/opt/backendless/repo/b9adeaa5-f56f-ab42-ff4a-502d358cce00/files/servercode/CODELESS/OneClickSetup/DRAFT/services/OneClickSetup/completeOneClickSetup.xml'
java.lang.IllegalArgumentException: File system element for parameter 'file' does not exist: '/opt/backendless/repo/b9adeaa5-f56f-ab42-ff4a-502d358cce00/files/servercode/CODELESS/OneClickSetup/DRAFT/services/OneClickSetup/completeOneClickSetup.xml'
at org.apache.commons.io.FileUtils.requireExists(FileUtils.java:2701)
at org.apache.commons.io.FileUtils.sizeOf(FileUtils.java:2822)
at controllers.files.FileManagement.lambda$fileEdit$18(FileManagement.java:440)
at com.backendless.async.BackendlessExecutorService.lambda$submit$0(BackendlessExecutorService.java:84)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

07/14/2023 14:54:15 Codeless API Service "Permissions", method "addPermissions" error on update: Backendless encountered an error while handling the request. An internal trouble ticket with ID 82783615-37A8-F83C-FFC4-FE0C8FD97800 has been created and we will be investigating the issue.
File system element for parameter 'file' does not exist: '/opt/backendless/repo/b9adeaa5-f56f-ab42-ff4a-502d358cce00/files/servercode/CODELESS/Permissions/DRAFT/services/Permissions/addPermissions.xml'
java.lang.IllegalArgumentException: File system element for parameter 'file' does not exist: '/opt/backendless/repo/b9adeaa5-f56f-ab42-ff4a-502d358cce00/files/servercode/CODELESS/Permissions/DRAFT/services/Permissions/addPermissions.xml'
at org.apache.commons.io.FileUtils.requireExists(FileUtils.java:2701)
at org.apache.commons.io.FileUtils.sizeOf(FileUtils.java:2822)
at controllers.files.FileManagement.lambda$fileEdit$18(FileManagement.java:440)
at com.backendless.async.BackendlessExecutorService.lambda$submit$0(BackendlessExecutorService.java:84)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

07/14/2023 14:54:15 Codeless API Service "Permissions", method "removePermissions" error on update: Backendless encountered an error while handling the request. An internal trouble ticket with ID 55E0C136-A20F-D0F4-FFC0-AD93F577D400 has been created and we will be investigating the issue.
File system element for parameter 'file' does not exist: '/opt/backendless/repo/b9adeaa5-f56f-ab42-ff4a-502d358cce00/files/servercode/CODELESS/Permissions/DRAFT/services/Permissions/removePermissions.xml'
java.lang.IllegalArgumentException: File system element for parameter 'file' does not exist: '/opt/backendless/repo/b9adeaa5-f56f-ab42-ff4a-502d358cce00/files/servercode/CODELESS/Permissions/DRAFT/services/Permissions/removePermissions.xml'
at org.apache.commons.io.FileUtils.requireExists(FileUtils.java:2701)
at org.apache.commons.io.FileUtils.sizeOf(FileUtils.java:2822)
at controllers.files.FileManagement.lambda$fileEdit$18(FileManagement.java:440)
at com.backendless.async.BackendlessExecutorService.lambda$submit$0(BackendlessExecutorService.java:84)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

07/14/2023 14:54:17 Synchronization completed.
============================================================

Thanks

Hi @Nathan_Cousins,

I have created an internal ticket BKNDLSS-33107 to investigate this problem. The team will take a look at it. I think it may be related to some blocks that are used in the logic of these services. We will respond to you when we get any results.

Regards,
Marina