Sketch Data Incomplete

Hello All, its been a long time since I have been here or used the IDE, a lot has changed with the online IDE (or is it called CLI?) in that time

I just tried to upload a simple blink sketch to familiarise myself with the new environment, works fine on the IDE but online I get an error "sketch data incomplete, either uploading or not compliant with cloud CLI"

I have tried to find the cause in the FAQ but am not able to locate the relevant answer. I presume this is something really basic?

thanks for your assistance in advance

Welcome back

You have posted in the IDE 1.x category of the forum but I suspect that you are using IDE 2.x and/or the IoT Cloud

Can you please clarify how and where you get the error ?

I moved your topic to a more appropriate forum category @Dan0.

In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.

Thanks in advance for your cooperation.

noted

1 Like

Did you find a solution to this? I'm having the same issue as well...

me too !

@anoracknophobia2 @ivantalus I didnt find a solution and ended up just using the old computer based IDE

I have managed to get my code ( and many tabs ) into the cloud … basically I first had to shorten the filename, then compile it on my Mac ( using IDE 2.3.3 ) … then load it onto a WiFi enabled board… then I can’t quite recall the detail ! .. but I think I may have first created a .zip file of the new Sketch and imported in the web editor.

The key issues was reducing the file name to about 20 characters.

NOW - I get loads of compilation errors which I’m working through - thus migration process is not as simple as I expected … good luck.

Thanks for the update @anoracknophobia2. I'm glad you were able to overcome this mysterious "sketch data incomplete" error.

These steps were definitely not necessary.

Interesting. Do you remember the filename it had when it produced the "sketch data incomplete, either uploading or not compliant with cloud CLI" error?

I see you posted about that over here: Project migration from Nano EVERY to 33 IOT - #7 by anoracknophobia2. I'll take a look and respond there.

Hi @ivantalus. I'm going to ask you to provide the full output from an upload attempt that produces the "sketch data incomplete, either uploading or not compliant with cloud CLI" error.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Open your sketch in Arduino Cloud Editor.
  2. Click the button in the Cloud Editor toolbar.
  3. Wait for the upload to fail.
  4. If the black "Console" panel at the bottom of the Cloud Editor page is minimized, click the ˄ icon at the right side of the "Console" toolbar to expand it.
  5. Click the icon in the top right corner of the black "Console" panel at the bottom of the Cloud Editor page that looks like two pieces of paper ("Copy Console Output"):
    Icon in the output panel
  6. Open a forum reply here by clicking the "Reply" button.
  7. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block icon on toolbar
  8. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the error output from the upload into the code block.
  9. Move the cursor outside of the code block markup before you add any additional text to your reply.
  10. Click the "Reply" button to post the output.

the "too long" folder and filename was [ E_NINJA_33IOT_H03_25SEPTEMBER2024 ]
which I truncated to [ E_NINJA_UNOR4_H04_mac ]

The compile errors are the use of the "memset" function and calls to use the UART "Serial1"

Thanks! It is interesting. Arduino Cloud limits the length of sketch names to 32 characters, and E_NINJA_33IOT_H03_25SEPTEMBER2024 is 34 (I assume the [ and ] were added for stylistic purposes rather than being part of the actual filename). There is a bug in Arduino Cloud that allows you to import sketches with names longer than that limit (though you could also argue that the 32 character limit is actually the bug, since the Arduino Sketch Specification sets the limit at 63).

So this made me think that maybe the mysterious "sketch data incomplete, either uploading or not compliant with cloud CLI " error is caused by trying to use Cloud Editor to upload a sketch that has a name longer than 32 characters. However, I created a sketch on my computer with the name E_NINJA_33IOT_H03_25SEPTEMBER2024, imported it to Arduino Cloud, then uploaded it to my Arduino board and still didn't encounter the error. So either the error has a different cause, or else this was the cause of the error when you and the others encountered it, but Cloud Editor has been fixed since that time so it can now handle sketches with names >32 characters.