# Cant clone Menu

**URL:** <https://forum.sambapos.com/t/cant-clone-menu/18779>\
**Category:** V5 Issue\
**Created:** [November 16, 2018, 1:02pm UTC](https://forum.sambapos.com/t/cant-clone-menu/18779 "2018-11-16T13:02:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay007](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jay007/32/15479_2.png) [@jay007](https://forum.sambapos.com/u/jay007)\
**Post date:** [November 16, 2018, 1:02pm UTC](https://forum.sambapos.com/t/cant-clone-menu/18779/1 "2018-11-16T13:02:03Z")

</div>

5.2.14  
I am trying to clone a menu but am getting an exception error and Samba Closes down.

 ![1sanba](https://forum.sambapos.com/uploads/default/original/3X/b/8/b8a5614785c114f159a7ddc478762d8bd8e2fccf.jpeg)

* * *

```
[General Info]

Application: SambaPOS
Version: 5.2.14
Region: en
DB: SQ
Machine: ADMINISTRATOR
User: OKPOS
Date: 16/11/2018
Time: 12:23

User Explanation:

OKPOS said ""
-----------------------------

[Exception Info 1]

Top-level Exception
Type: System.Reflection.TargetInvocationException
Message: Property accessor 'WrappedCaption' on object 'Samba.Domain.Models.Menus.ScreenMenuItem' threw the following exception:'Object reference not set to an instance of an object.'
Source: System
Stack Trace: at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component)
   at Omu.ValueInjecter.ConventionInjection.Inject(Object source, Object target)
   at Omu.ValueInjecter.ValueInjection.Map(Object source, Object target)
   at Omu.ValueInjecter.StaticValueInjecter.InjectFrom[T](Object target, Object[] source)
   at Samba.Infrastructure.Data.Injection.EntityInjection.SetValue(ConventionInfo c)
   at Omu.ValueInjecter.ConventionInjection.Inject(Object source, Object target)
   at Omu.ValueInjecter.ValueInjection.Map(Object source, Object target)
   at Omu.ValueInjecter.StaticValueInjecter.InjectFrom[T](Object target, Object[] source)
   at Samba.Infrastructure.Data.Injection.EntityInjection.SetValue(ConventionInfo c)
   at Omu.ValueInjecter.ConventionInjection.Inject(Object source, Object target)
   at Omu.ValueInjecter.ValueInjection.Map(Object source, Object target)
   at Omu.ValueInjecter.StaticValueInjecter.InjectFrom[T](Object target, Object[] source)
   at Samba.Infrastructure.Data.Serializer.ObjectCloner.EntityClone[T](T item)
   at Samba.Presentation.Common.ModelBase.EntityCollectionViewModelBase`2.OnDuplicateItem(Object obj)
   at Microsoft.Practices.Prism.Commands.DelegateCommand`1.<>c __DisplayClass6.<.ctor>b__ 2(Object o)
   at Microsoft.Practices.Prism.Commands.DelegateCommandBase.Execute(Object parameter)
   at Microsoft.Practices.Prism.Commands.DelegateCommandBase.System.Windows.Input.ICommand.Execute(Object parameter)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Inner Exception 1
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Samba.Infrastructure
Stack Trace: at Samba.Infrastructure.Helpers.Utility.Get2Lines(String input)
   at Samba.Domain.Models.Menus.ScreenMenuItem.get_WrappedCaption()

-----------------------------

[Assembly Info]

mscorlib, Version=4.0.0.0
Samba.Services, Version=1.0.0.0
Samba.Domain, Version=1.0.0.0
Samba.Infrastructure.Data, Version=1.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Presentation.Services, Version=1.0.0.0
System.Core, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
DevExpress.Xpf.LayoutControl.v16.2, Version=16.2.13.0
System.Xml, Version=4.0.0.0
DevExpress.Xpf.Grid.v16.2, Version=16.2.13.0
System, Version=4.0.0.0
DevExpress.Xpf.Grid.v16.2.Core, Version=16.2.13.0
System.Xaml, Version=4.0.0.0
PresentationFramework, Version=4.0.0.0
Samba.Infrastructure, Version=1.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
System.Runtime.Serialization, Version=4.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
DevExpress.Xpf.Core.v16.2, Version=16.2.13.0
System.Windows.Forms, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
Samba.Persistance, Version=1.0.0.0
Stateless, Version=1.0.0.0
PropertyTools, Version=2012.4.14.1
Samba.Localization, Version=1.0.0.0
ReachFramework, Version=4.0.0.0
EntityFramework, Version=6.0.0.0
FluentValidation, Version=3.4.0.0
Microsoft.CSharp, Version=4.0.0.0
Omu.ValueInjecter, Version=2.3.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
DevExpress.Data.v16.2, Version=16.2.13.0
NCalc, Version=1.3.8.0
WindowsInput, Version=1.0.4.0

-----------------------------

[System Info]

Operating System
-Microsoft Windows Embedded Standard
--CodeSet = 1252
--CSDVersion = Service Pack 1
--CurrentTimeZone = 0
--FreePhysicalMemory = 1748516
--OSArchitecture = 32-bit
--OSLanguage = 1033
--ServicePackMajorVersion = 1
--ServicePackMinorVersion = 0
--Version = 6.1.7601

Machine
-ADMINISTRATOR
--Manufacturer = O.E.M
--Model = EIBD-NCE
--TotalPhysicalMemory = 3109019648
--UserName = administrator\OKPOS

-----------------------------
```

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [November 16, 2018, 1:44pm UTC](https://forum.sambapos.com/t/cant-clone-menu/18779/2 "2018-11-16T13:44:10Z")

</div>

Just tried, get similar here.

---

<div class="post-metadata">

**Author:** ![markjw](https://forum.sambapos.com/user_avatar/forum.sambapos.com/markjw/32/9942_2.png) [@markjw](https://forum.sambapos.com/u/markjw)\
**Post date:** [November 16, 2018, 2:56pm UTC](https://forum.sambapos.com/t/cant-clone-menu/18779/3 "2018-11-16T14:56:26Z")

</div>

This is fixed in latest beta 5.2.15.

> [@SambaPOS 5.2.15 Beta Release](https://forum.sambapos.com/t/sambapos-5-2-15-beta-release/18431):
>
> [arrow_down](https://forum.sambapos.com/images/emoji/twitter/arrow_down.png?v=6) Download: [https://sambapos.com/?wpfb\_dl=201](https://sambapos.com/?wpfb_dl=201)[warning](https://forum.sambapos.com/images/emoji/twitter/warning.png?v=6) Don’t forget to create a backup before installing new releases. You’ll need a working backup if you need to rollback to previous version. Don’t install beta releases on production environments. What’s new in 5.2.15 Clone menu problem solved ([SambaPOS 5.2.14 Release](https://forum.sambapos.com/t/sambapos-5-2-14-release/18392/17)) Group Selector for adjust order prices added Recipe’s portion id converted to a navigation property Editing Management Grids getPrintingContent function added…
