TM Master Common Errors

Error when TM Master upgraded to higher version

Error when TM Master upgraded to higher version

 

System.ArgumentException: These columns don't currently have unique values.
   at System.Data.ConstraintCollection.AddUniqueConstraint(UniqueConstraint constraint)
   at System.Data.ConstraintCollection.Add(Constraint constraint, Boolean addUniqueWhenAddingForeign)
   at System.Data.DataTable.set_PrimaryKey(DataColumn[] value)
   at TmMv2.Version20662.UpdateConsumablesUserRights()
   at TmMv2.Version20662.UpdateDbData()
   at TmMv2.DbVersionCheck.UpdateDbData(Int32 currDataVersion)
   at TmMv2.TmMv2Startup.StartNext(Boolean SkipUserCheck)
   at TmMv2.TmMv2Startup.Start(Boolean SkipUserCheck)
   at TmMv2.My.MyApplication.MyApplication_Startup(Object sender, StartupEventArgs e)

 

  • When upgrade the TM master from lower version (2.661) to higher version (2.665) mostly this error message will prompt while launch the TM Master for login.

 

  • IT will require to check in the ‘tmsystem’ table in the SQL, whether the ‘DataVersion’ column has been upgraded to higher version (2.665)

 

 

Run this query in SQL to check : - select * from tmsystem;

 

  • Here ‘DataVersion’ column has not been upgrade as per ‘DBVersion’ column, which should be same to run the TM master with upgraded version.

 

Run the below SQL query to make the DataVersion same as DBVersion :-

                                update tmsystem set dataversion = 20665;

 

  • Once the query executed successfully, TM Master will allow to login with upgraded version (2.665)

A screenshot of a computer

Description automatically generated

 


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article