# \[Resolved\] Custom Reports Module: Deleting Custom Reports

**URL:** <https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260>\
**Category:** V4 Issue\
**Created:** [August 22, 2014, 5:30pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260 "2014-08-22T17:30:09Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [August 22, 2014, 5:30pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/1 "2014-08-22T17:30:09Z")

</div>

**EDIT: When Version 5 releases this will no longer be an issue therefore I am marking it as resolved.**

So there is currently not a delete button to delete a custom report, you have to edit the report and clear out any data you entered and then save it… I found 1 bug and it is now crashing every time I try to open the module. I cleared a report out to delete it, I had the Append to End of Day report set at 100… I deleted the zeros but accidentally left the 1 and now Samba crashes every time I try to load the reports. I cannot view any of them.

I would suggest a delete report button and maybe separate the add report and put both buttons in plain view. Also it crashing samba because it finds a 1 in the Append to End of Day option should probably be looked at.

```
-----------------------------
[General Info]

Application: SambaPOS
Version: 4.1.50-TEST
Region: en
DB: SQ
Machine: ****
User: ****
Date: 8/22/2014
Time: 5:30 PM

User Explanation:

**** said ""
-----------------------------

[Exception Info 1]

Top-level Exception
Type: System.Windows.Markup.XamlParseException
Message: 'Could not register named object. Name cannot be an empty string.' Line number '1' and line position '447'.
Source: PresentationFramework
Stack Trace: at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, Boolean skipJournaledProperties, Uri baseUri)
   at System.Windows.Markup.XamlReader.Load(XamlReader xamlReader, ParserContext parserContext)
   at System.Windows.Markup.XamlReader.Load(XmlReader reader, ParserContext parserContext, XamlParseMode parseMode)
   at System.Windows.Markup.XamlReader.Load(Stream stream, ParserContext parserContext)
   at System.Windows.Markup.XamlReader.Load(Stream stream)
   at Samba.Presentation.Common.Reports.AbstractReport.<>c __DisplayClass8.<RefreshReport>b__ 4()
   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)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   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)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at Samba.Presentation.App.Main()

Inner Exception 1
Type: System.ArgumentException
Message: Name cannot be an empty string.
Source: System.Xaml
Stack Trace: at System.Xaml.NameScope.RegisterName(String name, Object scopedElement)
   at System.Xaml.XamlObjectWriter.RegisterName(ObjectWriterContext ctx, String name, Object inst, XamlType xamlType, INameScope nameScope, INameScope parentNameScope, Boolean isRoot)

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

[Assembly Info]

Samba.Services, Version=1.0.0.0
mscorlib, Version=4.0.0.0
System, Version=4.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
Samba.Infrastructure, Version=1.0.0.0
Samba.Infrastructure.Data, Version=1.0.0.0
PresentationFramework, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
Samba.Presentation.Services, Version=1.0.0.0
FluentValidation, Version=3.4.0.0
Samba.Domain, Version=1.0.0.0
DevExpress.Xpf.Grid.v14.1, Version=14.1.5.0
DevExpress.Xpf.Grid.v14.1.Core, Version=14.1.5.0
PresentationCore, Version=4.0.0.0
Stateless, Version=1.0.0.0
System.Core, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
System.Windows.Forms, Version=4.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Localization, Version=1.0.0.0
Microsoft.CSharp, Version=4.0.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
Samba.Persistance, Version=1.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
DevExpress.Xpf.Core.v14.1, Version=14.1.5.0
PropertyTools, Version=2012.4.14.1

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

[System Info]

Operating System
-Microsoft Windows 8.1 Pro
--CodeSet = 1252
--CSDVersion = 
--CurrentTimeZone = -300
--FreePhysicalMemory = 9224176
--OSArchitecture = 64-bit
--OSLanguage = 1033
--ServicePackMajorVersion = 0
--ServicePackMinorVersion = 0
--Version = 6.3.9600

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

---

<div class="post-metadata">

**Author:** ![Ali](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@Ali](https://forum.sambapos.com/u/Ali)\
**Post date:** [May 22, 2015, 9:04pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/2 "2015-05-22T21:04:37Z")

</div>

@Jesse Sorry To Disturb U Bro…  
But I Have Read Your Thread **Custom Reports Module: Deleting Custom Reports**  
i just wanna Ask You That How Can I Delete The Sales Report From Samba… Because i have installed software in PC and made testing entries from Samba… But now i want to delete the sales record… i did’nt find any option to delete the reports in the software… please tell me how can i delete the previous record…  
I Asked this question in this post because i have read the post i mention above… but it was not possible to answer there… thats why i ask here ???

---

<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:** [May 22, 2015, 9:07pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/3 "2015-05-22T21:07:41Z")

</div>

Do you mean clear the transactions table?  
There is either the database tools module which has defult task of clear transactions or you can use an sql script that’s posted elsewhere on forum.

---

<div class="post-metadata">

**Author:** ![Ali](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@Ali](https://forum.sambapos.com/u/Ali)\
**Post date:** [May 22, 2015, 9:11pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/4 "2015-05-22T21:11:22Z")

</div>

@JTRTech  
Bro I Just Want To Clear The Reports Of sales???  
I Mean I Have Made testing entries in samba pos 4… But Now My Boss Want To Delete  
These Previous Reports … That Was I Asking How Can I Delete The Reports??? ☹

---

<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:** [May 22, 2015, 9:15pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/5 "2015-05-22T21:15:21Z")

</div>

Hello @Ali,

Just to clarify you made some reports and now you want to delete the entire report? You don’t want to just clear the data you want to delete the entire thing?

Maybe you missed it when I said:

> [@Jesse](#):
>
> you have to edit the report and clear out any data you entered and then save it.

If all you want is to clear the sales and not delete the entire report then I am afraid you misunderstood this thread and @JTRTech is correct you just need to clear transaction data.

---

<div class="post-metadata">

**Author:** ![Ali](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@Ali](https://forum.sambapos.com/u/Ali)\
**Post date:** [May 22, 2015, 9:22pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/7 "2015-05-22T21:22:43Z")

</div>

HEllo @Jesse…  
Bro I Just Want That No Previous sales will be shown in the sales reports???  
can you please post the image from where i can delete the sales report???  
i just want to delete the sales reports… not the entire thing buddy 😃

---

<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:** [May 22, 2015, 9:23pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/8 "2015-05-22T21:23:36Z")

</div>

> [@Ali](#):
>
> But now i want to delete the sales record…

Suggests you looking to clear the sales records, you terminology is a little confusing.

---

<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:** [May 22, 2015, 9:26pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/9 "2015-05-22T21:26:09Z")

</div>

Search for database tools module, that have a clear transactions script.  
Or there is an sql script if your comfortable using sql management tools.

---

<div class="post-metadata">

**Author:** ![Ali](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@Ali](https://forum.sambapos.com/u/Ali)\
**Post date:** [May 22, 2015, 9:29pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/10 "2015-05-22T21:29:47Z")

</div>

![](https://forum.sambapos.com/uploads/default/original/3X/c/3/c36a9801cde39e139ce60f5ce7977fc963a9d057.png) 

@JTRTech & @Jesse My Brothers I Want To Delete the record from here???  
now can u both please tell me how can i delete the records ☹

---

<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:** [May 22, 2015, 9:32pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/11 "2015-05-22T21:32:11Z")

</div>

Listen to what I’m saying mate 😄  
The report calls data from the sales/transactions table in the database.

To clear this table do what I said and look at database tools module. It’s a download in the samba market.

It will make samba ‘fresh’ without clearing your settings - rules etc.

There is a script for direct use in sql but from yours posts I imagine you would be better off with the tools module.

---

<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:** [May 22, 2015, 9:39pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/12 "2015-05-22T21:39:57Z")

</div>

We have told you already. You have to clear transaction data. You cant just clear a report… This means it will clear all transactions. Next time if you want to run test transactions on a production system purchase the Database Tools Module and use Training Mode so it wont affect your live system.

---

<div class="post-metadata">

**Author:** ![RickH](https://forum.sambapos.com/user_avatar/forum.sambapos.com/rickh/32/51960_2.png) [@RickH](https://forum.sambapos.com/u/RickH)\
**Post date:** [May 22, 2015, 9:41pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/13 "2015-05-22T21:41:26Z")

</div>

does he mean he wants to delete the actual report or the data in the report?

With him circling the report name ive read it as he wants to remove that particular report?

---

<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:** [May 22, 2015, 9:42pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/14 "2015-05-22T21:42:43Z")

</div>

He is wanting to delete only the test transactions he ran. You cant delete specific transactions.

PS. it is possible if you know SQL and know what rows and which tables to clear… I will not explain how to do this because like I said you either know how or you dont its not something you should do if you dont.

---

<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:** [May 22, 2015, 9:43pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/15 "2015-05-22T21:43:01Z")

</div>

He said he has tested with sales and need to delete the sales from what I’ve read.

From terminology and vaigeness database tools module if the only way I would suggest lol 🙂

---

<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:** [May 22, 2015, 9:53pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/17 "2015-05-22T21:53:07Z")

</div>

> [@Jesse](#):
>
> Database Tools Module and use Training Mode so it wont affect your live system.

But don’t forget not to setup/make rules etc in training mode as will be cleared when turned off LOL

(At least I have heard so, didn’t make that mistake myself hehe)

---

<div class="post-metadata">

**Author:** ![Ali](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@Ali](https://forum.sambapos.com/u/Ali)\
**Post date:** [May 22, 2015, 9:55pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/18 "2015-05-22T21:55:21Z")

</div>

Thanks All  
I Am uninstalling the samba and install it again 😕

---

<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:** [May 22, 2015, 9:56pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/19 "2015-05-22T21:56:13Z")

</div>

That won’t solve it! … Setting will still be in database!  
Just listen to what’s been said!

---

<div class="post-metadata">

**Author:** ![Ali](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@Ali](https://forum.sambapos.com/u/Ali)\
**Post date:** [May 22, 2015, 9:57pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/20 "2015-05-22T21:57:10Z")

</div>

what do you mean @JTRTech ???

---

<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:** [May 22, 2015, 9:58pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/21 "2015-05-22T21:58:04Z")

</div>

The settings and data aren’t stored in samba itself, it’s in the database.  
The samba software is an interface for the database.  
Just use the database tools module to clear the transaction data and all your settings will remain but the test sales will be cleared.

---

<div class="post-metadata">

**Author:** ![Ali](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@Ali](https://forum.sambapos.com/u/Ali)\
**Post date:** [May 22, 2015, 9:59pm UTC](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260/22 "2015-05-22T21:59:24Z")

</div>

It Means That After uninstalling the samba if i again install the samba in the same system then the reports will shown again 😮 Hmm ???

[Next page](https://forum.sambapos.com/t/resolved-custom-reports-module-deleting-custom-reports/2260.md?page=2)
