# Hello I am getting this error with the new time clock

**URL:** <https://forum.sambapos.com/t/hello-i-am-getting-this-error-with-the-new-time-clock/27707>\
**Category:** V5 Issue\
**Created:** [November 27, 2023, 12:54am UTC](https://forum.sambapos.com/t/hello-i-am-getting-this-error-with-the-new-time-clock/27707 "2023-11-27T00:54:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkjoker](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/d/7c8e57/32.png) [@darkjoker](https://forum.sambapos.com/u/darkjoker)\
**Post date:** [November 27, 2023, 12:54am UTC](https://forum.sambapos.com/t/hello-i-am-getting-this-error-with-the-new-time-clock/27707/1 "2023-11-27T00:54:32Z")

</div>

Hi i updated to latest version but now i get an error when i go in to time clock\>assignments “exception has been thrown by the target of an invocation” can anyone help me out? Thank you

## `11/27/2023 1:45 AM

[General Info]

Application: SambaPOS  
Version: 5.7.4  
Region: en  
DB: SQ  
Machine: DESKTOP-U9DO9SV  
User: HP  
Date: 11/27/2023  
Time: 12:45 AM

User Explanation:

## HP said “”

[Exception Info 1]

Top-level Exception  
Type: Microsoft.Practices.Prism.Regions.ViewRegistrationException  
Message: An exception has occurred while trying to add a view to region ‘MainRegion’.  
- The most likely causing exception was was: ‘System.InvalidOperationException: View already exists in region.  
at Microsoft.Practices.Prism.Regions.Region.InnerAdd(Object view, String viewName, IRegionManager scopedRegionManager)  
at Microsoft.Practices.Prism.Regions.Region.Add(Object view, String viewName, Boolean createRegionManagerScope)  
at Microsoft.Practices.Prism.Regions.Region.Add(Object view)  
at Microsoft.Practices.Prism.Regions.Behaviors.AutoPopulateRegionBehavior.AddViewIntoRegion(Object viewToAdd)  
at Microsoft.Practices.Prism.Regions.Behaviors.AutoPopulateRegionBehavior.OnViewRegistered(Object sender, ViewRegisteredEventArgs e)’.  
But also check the InnerExceptions for more detail or call .GetRootException().  
Source: Microsoft.Practices.Prism  
Stack Trace: at Microsoft.Practices.Prism.Regions.RegionViewRegistry.OnContentRegistered(ViewRegisteredEventArgs e)  
at Microsoft.Practices.Prism.Regions.RegionViewRegistry.RegisterViewWithRegion(String regionName, Func`1 getContentDelegate) at Microsoft.Practices.Prism.Regions.RegionViewRegistry.RegisterViewWithRegion(String regionName, Type viewType) at Microsoft.Practices.Prism.Regions.RegionManagerExtensions.RegisterViewWithRegion(IRegionManager regionManager, String regionName, Type viewType) at Samba.Presentation.ClientLibrary.Modules.TimeClockModule.TimeClockModule.OnInitialization() at Samba.Presentation.Common.StagedSequenceService`1.ProcessSequence(ILogService logService)

Inner Exception 1  
Type: System.InvalidOperationException  
Message: View already exists in region.  
Source: Microsoft.Practices.Prism  
Stack Trace: at Microsoft.Practices.Prism.Regions.Region.InnerAdd(Object view, String viewName, IRegionManager scopedRegionManager)  
at Microsoft.Practices.Prism.Regions.Region.Add(Object view, String viewName, Boolean createRegionManagerScope)  
at Microsoft.Practices.Prism.Regions.Region.Add(Object view)  
at Microsoft.Practices.Prism.Regions.Behaviors.AutoPopulateRegionBehavior.AddViewIntoRegion(Object viewToAdd)  
at Microsoft.Practices.Prism.Regions.Behaviors.AutoPopulateRegionBehavior.OnViewRegistered(Object sender, ViewRegisteredEventArgs e)

* * *

[Assembly Info]

mscorlib, Version=4.0.0.0  
PresentationFramework, Version=4.0.0.0  
PresentationCore, Version=4.0.0.0  
System, Version=4.0.0.0  
WindowsBase, Version=4.0.0.0  
Samba.Services, Version=5.7.8728.22107  
System.ComponentModel.Composition, Version=4.0.0.0  
System.Configuration, Version=4.0.0.0  
DevExpress.Xpf.Core.v17.2, Version=17.2.13.0  
System.Xaml, Version=4.0.0.0  
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0  
Samba.Presentation.Services, Version=5.7.8728.22111  
Samba.Presentation.Common, Version=5.7.8728.22113  
System.Drawing, Version=4.0.0.0  
Samba.Domain, Version=5.7.8728.22106  
Microsoft.Practices.Prism, Version=4.0.0.0  
Samba.Infrastructure, Version=5.7.8728.22103  
System.Core, Version=4.0.0.0  
DevExpress.Data.v17.2, Version=17.2.13.0  
Microsoft.Practices.ServiceLocation, Version=1.0.0.0  
Samba.Localization, Version=5.3.8728.22104  
Samba.Persistance, Version=5.7.8728.22106  
FastButton, Version=1.0.0.0

* * *

[System Info]

Operating System  
-Microsoft Windows 10 Professionnel  
–CodeSet = 1252  
–CSDVersion =  
–CurrentTimeZone = 60  
–FreePhysicalMemory = 2070452  
–OSArchitecture = 64 bits  
–OSLanguage = 1036  
–ServicePackMajorVersion = 0  
–ServicePackMinorVersion = 0  
–Version = 10.0.18362

Machine  
-DESKTOP-U9DO9SV  
–Manufacturer = Dell Inc.  
–Model = OptiPlex 3020  
–TotalPhysicalMemory = 4209664000  
–UserName = DESKTOP-U9DO9SV\HP

* * *

######################### E N D #########################`

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [November 27, 2023, 4:58am UTC](https://forum.sambapos.com/t/hello-i-am-getting-this-error-with-the-new-time-clock/27707/2 "2023-11-27T04:58:58Z")

</div>

@VehbiEmiroglu can you look at this? We sometimes get errors on existing databases with the new fields in time clock.

---

<div class="post-metadata">

**Author:** ![Lloyd\_Tailor](https://forum.sambapos.com/user_avatar/forum.sambapos.com/lloyd_tailor/32/62751_2.png) [@Lloyd\_Tailor](https://forum.sambapos.com/u/Lloyd_Tailor)\
**Post date:** [November 28, 2023, 5:05pm UTC](https://forum.sambapos.com/t/hello-i-am-getting-this-error-with-the-new-time-clock/27707/3 "2023-11-28T17:05:23Z")

</div>

GETTING SAME ERROR under time clock\>assignments “exception has been thrown by the target of an invocation

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [November 28, 2023, 8:42pm UTC](https://forum.sambapos.com/t/hello-i-am-getting-this-error-with-the-new-time-clock/27707/4 "2023-11-28T20:42:04Z")

</div>

We will correct this with next update.
