<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Could not retrieve last order detail - Error]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10692&amp;type=atom" />
	<updated>2025-11-13T04:24:19Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10692</id>
		<entry>
			<title type="html"><![CDATA[Could not retrieve last order detail - Error]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43783#p43783" />
			<content type="html"><![CDATA[<p>Hello,<br />This morning I suddenly discovered that I can no longer create any invoices in FrontAccounting. The invoice lines are missing and, when selecting a customer – some can be selected, but actively used customers cannot.<br />I turned on Debug mode and I get the following error message:</p><p>ANDMEBAASI VIGA: Could not retrieve last order detail<br />error code : 1104<br />error message : The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay<br />sql that failed was : SELECT stk_code FROM 0_sales_order_details d LEFT JOIN 0_sales_orders o on d.order_no=o.order_no WHERE debtor_no=&#039;676&#039; ORDER BY d.id DESC LIMIT 1</p><p>How can this be resolved?</p><br /><p>EDIT: As I understand it, the problem is that the database is too large and there are too many rows. Indeed, I have been actively using FrontAccounting since 2009. The database size is over 200 MB. I would like to delete some older financial years, but for some reason this is not possible. I also don’t get any error messages, even when debug mode is enabled.<br />Is it somehow possible to delete old entries directly via phpMyAdmin using an SQL command? I would gladly remove several years and make the database smaller.</p>]]></content>
			<author>
				<name><![CDATA[spott]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=383</uri>
			</author>
			<updated>2025-11-13T04:24:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43783#p43783</id>
		</entry>
</feed>
