Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

String or binary data would be truncated exceptions on new revisions #3

Open
gcox opened this issue Nov 5, 2012 · 0 comments
Open

Comments

@gcox
Copy link

gcox commented Nov 5, 2012

I'm seeing this exception frequently in the log view for my Git plugin profile after I push new commits. When this exception occurs the new revision fails to get associated with the entity that was referenced in the commit comment.

This is reproducible in that if I delete the profile for the Git plugin, recreate it, and set the date so that it includes revisions that previously caused the exception to be thrown, the exception is thrown for those same revisions.

I'm loving TP in general but without reliable git integration, there's no way I can use it.

So far I've only used TP with private Github repos, I'll try to get the problem to occur with a public repo.

Full Exception Message:
05-Nov-2012 14:42:05 String or binary data would be truncated. The statement has been terminated.
System.Data.SqlClient.SqlException (0x80131904): String or binary data would be truncated. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader() at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult) at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries) at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) at System.Data.Linq.ChangeDirector.StandardChangeDirector.DynamicInsert(TrackedObject item) at System.Data.Linq.ChangeDirector.StandardChangeDirector.Insert(TrackedObject item) at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) at Tp.Integration.Plugin.Common.Storage.Persisters.ProfileStorageSqlPersister.Flush(DataContext context) in c:.jenkins\workspace\BuildPackageOnly\Code\Main\Tp.Integration.Plugin.Common\Storage\Persisters\ProfileStorageSqlPersister.cs:line 35 at Tp.Integration.Plugin.Common.Storage.Persisters.ProfileStorageSqlPersister.Insert(ProfileStorage[] profileStorages) in c:.jenkins\workspace\BuildPackageOnly\Code\Main\Tp.Integration.Plugin.Common\Storage\Persisters\ProfileStorageSqlPersister.cs:line 45 at Tp.Integration.Plugin.Common.Storage.Persisters.ProfileStoragePersistanceStrategies.NamedStoragePersistanceStrategy.Insert(ProfileStorage[] profileStorages) in c:.jenkins\workspace\BuildPackageOnly\Code\Main\Tp.Integration.Plugin.Common\Storage\Persisters\ProfileStoragePersistanceStrategies\NamedStoragePersistanceStrategy.cs:line 70 at Tp.Integration.Plugin.Common.Storage.Persisters.ProfileToStorageAdapter1.AddRange(IEnumerable1 items) in c:.jenkins\workspace\BuildPackageOnly\Code\Main\Tp.Integration.Plugin.Common\Storage\Persisters\ProfileToStorageAdapter.cs:line 104 at Tp.Integration.Plugin.Common.Storage.Persisters.ProfileToStorageAdapter`1.ReplaceWith(T[] value) in c:.jenkins\workspace\BuildPackageOnly\Code\Main\Tp.Integration.Plugin.Common\Storage\Persisters\ProfileToStorageAdapter.cs:line 53 at Tp.Git.RevisionStorage.GitRevisionStorageRepository.SaveRevisionInfo(RevisionInfo revision, String& key) in c:.jenkins\workspace\BuildPackageOnly\Code\Plugins\Tp.Git\src\Tp.Git\RevisionStorage\GitRevisionStorageRepository.cs:line 38 at Tp.SourceControl.Workflow.Workflow.CreateRevisionSaga.Handle(NewRevisionDetectedLocalMessage localMessage) in c:.jenkins\workspace\BuildPackageOnly\Code\Plugins\Tp.SourceControl\Workflow\Workflow\CreateRevisionSaga.cs:line 58

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants