Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Git integration error 'No files to commit' after add new notebook via vscode in repo

Hi,

When we add a new notebook in vscode into a fabric repo  we are able to update into Fabric workspace and notebook is available in workspace which is great. Note we created the Notebook folder structure with the 2 files within ( .platform and notebook-content.py. We generated a new guid for .platform logicalId in vscode)

 

The challenge is once updated in Fabric workspace we are prompted to commit on doing so we get Git integration error 'No files to commit' . IF we disconnect the repo and re-connect to a new folder in git the worskspace all is fine. 

 

This work around long term may not be suitable

Similar to this
https://community.fabric.microsoft.com/t5/Issues/Git-integration-error-No-files-to-commit/idi-p/3394...

Status: Needs Info

Hi @grantkrieger 

You mentioned that you generated a new guid for .platform logicalId in vscode , can you explain it in detail ? The other file you added didn't generate a new guid, so when you update it, does it say that?

 

Best Regards,
Community Support Team _ Ailsa Tao

Comments
v-yetao1-msft
Community Support
Status changed to: Needs Info

Hi @grantkrieger 

You mentioned that you generated a new guid for .platform logicalId in vscode , can you explain it in detail ? The other file you added didn't generate a new guid, so when you update it, does it say that?

 

Best Regards,
Community Support Team _ Ailsa Tao

grantkrieger
New Member

Hi,

We created a random guid (logicalId) using the following in Python. This is for .platform file:

 import uuid
 logicalId = str(uuid.uuid4())  
The notebook-content.py does not need guid (logicalId) as it uses the metadata from .platform file. The files are linked by folder structure.
 
See examples of the files below. This is the notebook folder structure for Fabric
 
Example .platform file:
platform.png
Example notebook-content.py file

Notebook-content.png

Example folder structure of 1 notebook with both files
FolderStructure.png