Skip to main content
Seasoned ⭐️⭐️
March 2, 2026

Cannot upload files with toolkit version 0.7.135

  • March 2, 2026
  • 22 replies
  • 327 views

Hi,
I’m using toolkit to deploy files to CDF. I am using FileMetadata.yaml as in

- externalId: 'my_external_id.usc'
name: 'my_external_id.usc'
source: 'toolkit'
dataSetExternalId: 'my_dataset_external_id'
mimeType: 'application/usc'
metadata:
origin: 'cognite-toolkit'

I have my .usc file in the same folder and toolkit is not uploading the file (just deploying the metadata).

The dry run recognizes that there is file content to be uploaded, but it does not do it

Use case: I am trying to upload a file to be used in the simulator connector routine. I tried deploying just the file first and then deploy the routine and also tried both together, but it did not work.

Any thoughts?
 

    22 replies

    Anders  Albert
    Expert ⭐️⭐️⭐️⭐️
    Expert ⭐️⭐️⭐️⭐️
    March 16, 2026

    Thanks that was very helpful. 

    This was tricky, but based on your terminal output I think I got it. My guess is that there is a delay from the file is uploaded until it is registered. I have implemented it such that Toolkit checks if the file has content when deploying a simulator model revisions, and if it is not it will await 120 seconds by default. You adjust this withfile_upload_timeout_seconds the https://docs.cognite.com/cdf/deploy/cdf_toolkit/api/cdf_toml#the-cdf-section.

    @Ricardo V Soares Can you upgrade to 0.7.195 of Toolkit and try again?

    Seasoned ⭐️⭐️
    March 18, 2026

    The file is not getting uploaded (see the error message below). 
    When I retrieve the file with sdk after running the pipeline, it says False to uploaded and I cannot download it through the UI (since it does not exist)

    Does it mean that I have to use the data plugin or is there a way to use FileMetadata?


    Error message

    ERROR (ResourceCreationError): Failed to create simulator revisions

    sm_rv_simulator-unisim_Ygg-Hugin-A-sep-v2. CDF API timed out after 120 seconds

    while waiting for the revision file to be uploaded. Wait and try again.

    If the problem persists, please contact Cognite support.

    You can increase the timeout by setting the 'file_upload_timeout_seconds'

    parameter in the CDF TOML configuration file. Current value: 120 seconds.

    Anders  Albert
    Expert ⭐️⭐️⭐️⭐️
    Expert ⭐️⭐️⭐️⭐️
    March 23, 2026

    Thanks for trying it out. I have another suspicion of what it can be, will fix and get back to you.

    Anders  Albert
    Expert ⭐️⭐️⭐️⭐️
    Expert ⭐️⭐️⭐️⭐️
    March 24, 2026

    I have tried another way now, it is out in `0.7.211`. Can you try again and report back whether it resolved the issue?

    Seasoned ⭐️⭐️
    March 24, 2026

    Hi again, it did not work. The file is still not being uploaded :(

    Anders  Albert
    Expert ⭐️⭐️⭐️⭐️
    Expert ⭐️⭐️⭐️⭐️
    March 24, 2026

    Can you send me the terminal output again on email?

    Seasoned ⭐️⭐️
    March 24, 2026

    Sent

    Anders  Albert
    Expert ⭐️⭐️⭐️⭐️
    Expert ⭐️⭐️⭐️⭐️
    March 26, 2026

    Thanks, I have tried to fix it again and released 0.7.219. 

    Can you try again?

    Seasoned ⭐️⭐️
    March 26, 2026

    I see now that the file is uploaded :)
    But I got new error (I sent to your email the terminal output)
    I’ve seen this error before. I also sent my SimulatorRoutineRevision.yaml

     

    Basically I want   dataSampling, logicalCheck  and steadyStateDetection set to False

    When I first reported this issue, I was informed that this was fixed in version 0.7.126

    Anders  Albert
    Expert ⭐️⭐️⭐️⭐️
    Expert ⭐️⭐️⭐️⭐️
    March 27, 2026

    Looking at the API spec, it seem that is not supported. 

    You will have to set them to an empty list.