Unable to commit

0
I am trying to commit my changes , but unable to and getting this error.   LibGit2Sharp.LibGit2SharpException: object not found - no match for id (3a75533b3296ed626c6f2cdf085e747611837b86)    at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 154    at LibGit2Sharp.Core.Proxy.git_graph_ahead_behind(RepositoryHandle repo, Commit first, Commit second) in /_/LibGit2Sharp/Core/Proxy.cs:line 980    at LibGit2Sharp.HistoryDivergence..ctor(Repository repo, Commit one, Commit another) in /_/LibGit2Sharp/HistoryDivergence.cs:line 23    at LibGit2Sharp.ObjectDatabase.CalculateHistoryDivergence(Commit one, Commit another) in /_/LibGit2Sharp/ObjectDatabase.cs:line 551    at LibGit2Sharp.BranchTrackingDetails..ctor(Repository repo, Branch branch) in /_/LibGit2Sharp/BranchTrackingDetails.cs:line 24    at LibGit2Sharp.Branch.get_TrackingDetails() in /_/LibGit2Sharp/Branch.cs:line 98    at Mendix.Modeler.VersionControl.Operations.Git.GitCheckWorkingCopyOperation.Execute(String projectDirectory) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.VersionControl\Operations\Git\GitCheckWorkingCopyOperation.cs:line 67    at Mendix.Modeler.VersionControl.CommitPreparer.<>c__DisplayClass20_0.<AddCheckWorkingCopyStep>b__0(IProgressInfo info) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.VersionControl.View\Commit\CommitPreparer.cs:line 145    at Mendix.Modeler.Utility.Progress.StepBase`1.Run(TProgressInfo info) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility\Progress\Step.cs:line 31    at Mendix.Modeler.Utility.Progress.StepBase`1.Mendix.Modeler.Utility.Progress.IStep.Run(Object progressInfo) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility\Progress\Step.cs:line 36    at Mendix.Modeler.UIFramework.Progress.ProcessRunner.RunStep(IStep step) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 167    at Mendix.Modeler.UIFramework.Progress.ProcessRunner.OnDoWork(Object sender, DoWorkEventArgs e) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 81    at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)    at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) --- End of stack trace from previous location ---    at Mendix.Modeler.UIFramework.Progress.ProcessRunner.Run() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 57    at Mendix.Modeler.VersionControl.CommitPreparer.PrepareCommit(IProject project, Boolean silent) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.VersionControl.View\Commit\CommitPreparer.cs:line 113    at Mendix.Modeler.VersionControl.RevCommitter.CommitInternal(IProject project, Boolean silent, String initialMessage, RevOperationSource source) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.VersionControl.View\Commit\RevCommitter.cs:line 108    at Mendix.Modeler.VersionControl.RevCommitter.Commit(IProject project, String initialMessage, RevOperationSource source) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.VersionControl.View\Commit\RevCommitter.cs:line 79    at Mendix.Modeler.MainWindow.Menus.VersionControlMenuItemsProvider.CommitChanges() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.ProjectHandling.View\Menus\VersionControlMenuItemsProvider.cs:line 222    at Mendix.Modeler.Core.View.Menus.MainMenu.<>c__DisplayClass13_0.<CreateButtonMenuItem>b__0(Object _, EventArgs _) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View.CrossPlatform\Menus\MainMenu.cs:line 135    at Eto.Forms.Command.OnExecuted(EventArgs e)    at Eto.Forms.Command.Execute()    at Eto.Forms.Command.System.Windows.Input.ICommand.Execute(Object parameter)    at Eto.PropertyStore.CommandWrapper.Command_Execute(Object sender, EventArgs e)    at Eto.Forms.MenuItem.OnClick(EventArgs e)    at Eto.Forms.MenuItem.Callback.OnClick(MenuItem widget, EventArgs e)    at Eto.Wpf.Forms.Menu.MenuItemHandler`3.OnClick()    at Eto.Wpf.Forms.Menu.MenuItemHandler`3.<Initialize>b__1_0(Object sender, RoutedEventArgs e)    at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)    at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)    at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)   Please let me know, what could be the possible solution.
asked
3 answers
3

Hi Deepha,

According to the error, the object you are trying to commit is not found,

It may be the case that somewhere the object gets deleted before it is committed or maybe the object is not able to reach the commit activity,

Pls recheck the whole flow and make sure it is not deleted.

 

Hope it helps!

answered
0

This is about committing changes to Git, not committing objects into the database.

 

It could have to do with Git performing a shallow clone rather than a full clone on initialization, thus some objects not being available.

 

Try running 

git fetch --unshallow
answered
-1

Hi Deepha,

 

It could be possible that the users role does not have the right permission. Check the access rule of the entity for each role. Also check in the microflow property if you have selected Yes for Allow entity access.

 

If the roles dont have write access and in the microwflow the Allow entity access set to Yes then commit will give error.

answered