<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tamim on Medium]]></title>
        <description><![CDATA[Stories by Tamim on Medium]]></description>
        <link>https://medium.com/@tamim_32410?source=rss-b57f5aaa060e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8YMNWML09xnn78db</url>
            <title>Stories by Tamim on Medium</title>
            <link>https://medium.com/@tamim_32410?source=rss-b57f5aaa060e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:21:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tamim_32410/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[12 Things to Know Before Your First Infor SyteLine Go-Live]]></title>
            <link>https://medium.com/@tamim_32410/12-things-to-know-before-your-first-infor-syteline-go-live-9ae38bdf20bf?source=rss-b57f5aaa060e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ae38bdf20bf</guid>
            <category><![CDATA[supply-chain-management]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[enterprise-software]]></category>
            <category><![CDATA[erp]]></category>
            <category><![CDATA[manufacturing]]></category>
            <dc:creator><![CDATA[Tamim]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 07:14:32 GMT</pubDate>
            <atom:updated>2026-10-28T07:14:32.019Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published on </em><a href="https://clearcutover.com/blog/12-things-before-first-syteline-go-live"><em>Clear Cutover</em></a><em>, an independent Infor SyteLine and CloudSuite Industrial resource.</em></p><p>A SyteLine (Infor CloudSuite Industrial) go-live is decided less by the software than by preparation: clean data, a deliberate cutover date, open work finished or carried over carefully, counted opening inventory, testing that includes things going wrong, and people on hand to help in the first weeks. Teams that treat go-live as a change in how the business runs do far better than teams that treat it as a software install.</p><p><strong>Applies to:</strong> Infor SyteLine / CloudSuite Industrial implementations and major version migrations.</p><ul><li><strong>Data first:</strong> Bad data goes live exactly as bad as it went in.</li><li><strong>Pick the date deliberately:</strong> Avoid year-end, physical counts, and peak shipping, and weigh period-start against mid-month.</li><li><strong>Shrink open work:</strong> Finish as many open jobs as possible in the old system and purge stale orders.</li><li><strong>Count inventory at cutover:</strong> Load counted balances, not inherited ones.</li><li><strong>Test the exceptions:</strong> People manage the happy path; they get stuck on the exceptions.</li><li><strong>Support people on the floor:</strong> Put helpers where the work happens during the first weeks.</li></ul><h3>1. Go-Live Is a Business Event, Not an IT Event</h3><p>If only IT is excited, there is a problem. Operations, purchasing, shipping, and accounting each need to own their part. Name one go-live lead with authority to make decisions, and one simple way for anyone to ask for help.</p><h3>2. Clean Data Before You Load It</h3><p>Duplicate parts, wrong units of measure, and out-of-date routings go live just as faithfully as the good records. Allow real time for cleanup, and involve the people who know the parts, not only the people who know the system.</p><h3>3. Choose the Cutover Date Deliberately</h3><p>Avoid year-end, physical inventory, and your busiest shipping weeks. Beyond that, there is a genuine trade-off:</p><ul><li><strong>Start of a fiscal period:</strong> Each month’s financials come from one system, which keeps reporting and reconciliation simple. But finance is closing the previous month in the old system just as everyone is learning the new one.</li><li><strong>Mid-period:</strong> Gives operations a couple of weeks to settle before the first close in SyteLine. But that month’s results are split across two systems and have to be combined.</li></ul><p>Agree the choice with finance early. The <a href="https://clearcutover.com/blog/month-end-close-in-syteline-checklist">month-end close checklist</a> shows what the first close in SyteLine will involve.</p><h3>4. Shrink Open WIP Before Cutover</h3><p>Moving hundreds of partly finished jobs between systems, with their costs and progress, is slow and error-prone. Where you can, stop releasing new jobs in the old system ahead of cutover, finish the open ones into inventory, and start new work in SyteLine.</p><p>Jobs that must carry over need an agreed method, such as loading the remaining work as new jobs and handling the costs already incurred through finance, and they should be tested in a conversion rehearsal.</p><h3>5. Purge Stale Purchase Orders and Customer Orders</h3><p>Open orders that should have been cancelled years ago do immediate damage. An old purchase order line that the vendor will never ship tells planning the material is coming. An old customer order line tells planning you are short. Review every open line before conversion: cancel the dead ones and confirm quantities and dates on the rest.</p><h3>6. Count Inventory at Cutover</h3><p>Opening balances set the tone for months. If they are wrong, every later discrepancy is harder to explain, which is at the heart of <a href="https://clearcutover.com/blog/why-syteline-inventory-does-not-match-shelf">why inventory doesn’t match the shelf</a>. Plan a count over the cutover, by location and lot where relevant, and load counted quantities rather than carrying over balances from the old system unchecked.</p><h3>7. Test Real Scenarios, Including Exceptions</h3><p>Run the full cycle with the people who will do it every day: enter an order, release a job, report labor, receive a purchase order, ship, invoice, and close. Then test what goes wrong: a partial shipment, a split operation, an order cancelled after material was issued, a scanner that will not read a label. Practise correcting mistakes too, using <a href="https://clearcutover.com/blog/made-a-mistake-in-syteline-fixing-errors-safely">how to fix errors safely in SyteLine</a>.</p><h3>8. Test Security With Real Logins</h3><p>Roles that are too broad let people do things they should not. Roles that are too tight stop a buyer from updating a vendor on day one. Have testers log in with the exact roles they will use in production, not an administrator account.</p><h3>9. Test Hardware, Labels, and Documents in the Real Environment</h3><p>Scanners drop off Wi-Fi in steel racking, label printers clip barcodes, and customers reject invoices missing their PO number. Walk the plant with real devices, print real travelers, labels, packing slips, and invoices, and keep someone available to adjust document layouts during the first days.</p><h3>10. Rehearse the Cutover and Agree What “Stop” Means</h3><p>Rehearse the sequence: freezes, final data loads, counts, checks, and sign-offs. The first rehearsal always uncovers missing steps. Agree beforehand which problems you will live with and which would pause or reverse the go-live, and who makes that call.</p><h3>11. Put Helpers Where the Work Happens</h3><p>During the first weeks, keep project team members and key users on the shop floor, at receiving, in shipping, and beside customer service, not in a meeting room. Train by role rather than by screen: people need to know their own day. <a href="https://clearcutover.com/blog/day-in-the-life-shop-floor-user-syteline">A day in the life of a shop floor user</a> is the kind of role view that helps, along with <a href="https://clearcutover.com/blog/syteline-screens-every-new-user-should-learn">the ten screens new users actually need</a>.</p><h3>12. Watch the Journals and Expect a Rough Start</h3><p>In SyteLine, operational transactions create entries in distribution journals before they reach the general ledger. During the first weeks, have finance review and post those journals daily, so missing accounts and setup problems are caught while they are small, not at month-end.</p><p>And expect friction. A successful first week is not error-free. It means shipments leave, critical material is received, and everyone knows what needs fixing tomorrow. Output often dips while people build new habits, so plan staffing and customer commitments for that.</p><h3>A Composite Example</h3><p>This is a composite of a pattern that comes up often, not a single client.</p><p>A ductwork manufacturer goes live on January 2, planning to carry over four hundred open jobs. On Monday, operators cannot scan smudged travelers, planners cannot issue coil because of negative starting balances, and the controller is buried in the prior year-end.</p><p>By Wednesday the plant changes course. Open legacy jobs are finished on paper and closed out separately, only new orders get SyteLine jobs, and experienced planners are stationed at receiving and the busiest work center. Orders are flowing again within days. Fewer carried-over jobs, a counted opening balance, and a date away from year-end would have avoided most of it.</p><h3>Go-Live Readiness Checklist</h3><ul><li>Go-live lead and help channel named</li><li>Data reviewed by the people who know it</li><li>Cutover date agreed with finance, away from year-end and peak periods</li><li>Open WIP reduced, with a tested method for anything carried over</li><li>Stale purchase order and customer order lines cancelled</li><li>Inventory count planned for cutover</li><li>Real-scenario and exception testing signed off by users</li><li>Testers used their real security roles</li><li>Devices, labels, and documents tested on site</li><li>Cutover rehearsed and stop criteria agreed</li><li>Floor support scheduled for the first weeks</li><li>Daily journal review assigned in finance</li></ul><h3>Frequently Asked Questions</h3><h3>How long do problems usually last after go-live?</h3><p>It depends on scope, data quality, and training. Plan for several weeks of extra support and closer monitoring, and ask your implementation partner for an expectation based on your project.</p><h3>Should we run the old and new systems in parallel?</h3><p>Full parallel running, entering every transaction twice, is rarely practical in manufacturing because it doubles the workload and the two systems quickly disagree. A rehearsed cutover with a clear rollback plan is usually more reliable.</p><h3>What should we do if an inventory balance is wrong on day one?</h3><p>Keep production moving, count the location, correct the balance with a documented adjustment and reason code, and note the cause so the same error is not repeated.</p><h3>How long should we keep the old system available?</h3><p>Keep read-only access, or a reliable archive of its data, for as long as your record-retention, tax, warranty, and audit obligations require. Confirm that period with finance before switching it off.</p><h3>About Clear Cutover</h3><p>Al Hasib Tamim is an independent Infor SyteLine (CloudSuite Industrial) contractor who spent three years in-house clearing report, data, and support backlogs, and leading the data workstream for a 1M+ row ERP cutover without production stoppage. Explore fixed-price backlog sprints at <a href="https://clearcutover.com/syteline">Clear Cutover SyteLine Services</a> or read the original complete guide at <a href="https://clearcutover.com/blog/12-things-before-first-syteline-go-live">Clear Cutover Guides</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ae38bdf20bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Fix Epicor Kinetic BAQ Timeouts: PartTran, TranGLC & Query Tuning]]></title>
            <link>https://medium.com/@tamim_32410/how-to-fix-epicor-kinetic-baq-timeouts-parttran-tranglc-query-tuning-73230235c46d?source=rss-b57f5aaa060e------2</link>
            <guid isPermaLink="false">https://medium.com/p/73230235c46d</guid>
            <category><![CDATA[kinetic]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[erp-software]]></category>
            <category><![CDATA[baq]]></category>
            <dc:creator><![CDATA[Tamim]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 18:09:18 GMT</pubDate>
            <atom:updated>2026-10-26T09:43:20.133Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published on </em><a href="https://clearcutover.com/blog/kinetic-baq-timeout-parttran-tranglc"><em>Clear Cutover</em></a><em>, where I fix Epicor Kinetic BAQ and SSRS report tickets at a fixed price.</em></p><p>Most Epicor Kinetic BAQ and SSRS report timeouts should be investigated as a SQL performance problem before blindly increasing timeout settings. Common culprits include reading millions of unindexed rows, joining tables at the wrong level of detail, implicit data-type conversions on generic keys, repeated subqueries, and expensive report datasets.</p><p>Here is a practical, step-by-step diagnostic guide for Epicor DBAs, developers, and Kinetic analysts.</p><h3>How the Pieces Fit Together</h3><ul><li><strong>Erp.PartTran</strong>: Inventory transactions and adjustments; potential bottleneck: Large scans when filters do not align with available indexes or lack selectivity</li><li><strong>Erp.TranGLC</strong>: General-ledger transaction links; potential bottleneck: Broad joins across transaction types, incomplete keys, implicit conversions, or row multiplication</li><li><strong>BAQ calculated fields</strong>: Derive values for returned records; potential bottleneck: Correlated subqueries repeating scans across thousands of outer rows</li><li><strong>SSRS datasets &amp; subreports</strong>: Presentation, grouping, and subreports; potential bottleneck: Transferring large raw datasets across the network or firing subreports per row</li></ul><h3>Step 1: Isolate the Expensive Table or Join</h3><p>When a BAQ times out, do not guess which join is responsible. Isolate the execution:</p><ol><li><strong>Test in the BAQ Designer first:</strong> Run the query with Analyze / Test. Does the timeout occur immediately at 30 seconds (standard command timeout) or after several minutes?</li><li><strong>Comment out </strong><strong>TranGLC:</strong> Does the query drop from 90 seconds down to 2 seconds? If yes, the issue is generic key mapping or missing RelatedToFile discriminators.</li><li><strong>Filter to a single </strong><strong>PartNum:</strong> Does the query run instantly for one part but time out across all parts? If yes, you have an unindexed date scan on PartTran.</li></ol><h3>Step 2: Check PartTran Filters &amp; Index Alignment</h3><p>PartTran is often the largest single table in an Epicor database, frequently holding tens of millions of rows.</p><h3>The Date-Filter Trap</h3><p>A common pattern in inventory reporting is filtering only by date:</p><pre>WHERE pt.TranDate &gt;= &#39;2026-01-01&#39;</pre><p>In many standard Epicor index configurations, composite indexes on PartTran begin with Company and PartNum before TranDate. A filter on TranDate alone cannot perform an efficient index seek across all parts; the engine must scan the table or a wide index subtree.</p><h3>Practical Fixes</h3><ol><li><strong>Narrow the scope before joining:</strong> Combine date boundaries with specific TranType filters (e.g., STK-MTL, PUR-STK, MFG-STK) or specific warehouse/plant constraints.</li><li><strong>Avoid wrapping indexed columns in functions:</strong> Writing YEAR(pt.TranDate) = 2026 breaks SARGability and forces a full table scan. Always use range predicates:</li></ol><pre>pt.TranDate &gt;= &#39;2026-01-01&#39; AND pt.TranDate &lt; &#39;2027-01-01&#39;</pre><h3>Step 3: Make TranGLC Joins Selective &amp; Type-Safe</h3><p>Erp.TranGLC is a polymorphic bridge table connecting general ledger distributions to invoices, receipts, jobs, and inventory transactions. Because it serves many tables, it presents two major performance traps:</p><h3>1. Always Include RelatedToFile</h3><p>Never join to TranGLC on transaction keys alone. If you do not specify RelatedToFile = &#39;InvcDtl&#39; (or &#39;PartTran&#39;), SQL Server must evaluate keys across millions of unrelated GL distributions from every module.</p><h3>2. Avoid Implicit Conversions on Join Keys</h3><p>In TranGLC, Key1, Key2, and Key3 are stored as <strong>nvarchar</strong>. However, the source keys in business tables are often integers (such as InvoiceNum, InvoiceLine, PackNum):</p><pre>-- Illustrative type-safe join pattern:<br>ON gl.Company = d.Company<br>AND gl.RelatedToFile = &#39;InvcDtl&#39;<br>AND gl.Key1 = CONVERT(nvarchar(50), d.InvoiceNum)<br>AND gl.Key2 = CONVERT(nvarchar(50), d.InvoiceLine)</pre><p><em>If data types do not match, SQL Server will convert the column on every row, disabling index seeks.</em></p><h3>Step 4: Replace Repeated Scalar Lookups</h3><p>A frequent cause of BAQ timeouts is retrieving the “latest transaction date” or “last cost” using a calculated field containing a subquery:</p><pre>-- The slow scalar approach (runs once per row in the outer query!):<br>SELECT TOP (1) pt.TranDate<br>FROM Erp.PartTran AS pt<br>WHERE pt.Company = p.Company<br>  AND pt.PartNum = p.PartNum<br>ORDER BY pt.TranDate DESC, pt.TranNum DESC;</pre><p>If your outer query returns 50,000 parts, this subquery runs <strong>50,000 times</strong>.</p><h3>The High-Performance Fix: Common Table Expressions &amp; Window Functions</h3><p>Pre-aggregate or rank the data once in an inner SubQuery using ROW_NUMBER():</p><pre>WITH RankedPartTran AS<br>(<br>    SELECT<br>        pt.Company,<br>        pt.PartNum,<br>        pt.TranDate,<br>        pt.TranNum,<br>        ROW_NUMBER() OVER<br>        (<br>            PARTITION BY pt.Company, pt.PartNum<br>            ORDER BY pt.TranDate DESC, pt.TranNum DESC<br>        ) AS RowIdent<br>    FROM Erp.PartTran AS pt<br>    WHERE pt.Company = &#39;EPIC01&#39;<br>)<br>SELECT<br>    p.PartNum,<br>    rpt.TranDate AS LatestTranDate<br>FROM Erp.Part AS p<br>LEFT JOIN RankedPartTran AS rpt<br>    ON rpt.Company = p.Company<br>   AND rpt.PartNum = p.PartNum<br>   AND rpt.RowIdent = 1<br>WHERE p.Company = &#39;EPIC01&#39;;</pre><p><em>This scans </em><em>PartTran exactly once instead of 50,000 times.</em></p><h3>Step 5: Join on Company and the Complete Relationship Key</h3><p>Epicor is a multi-company application. Omitting Company from any join condition can cause:</p><ol><li><strong>Accidental Cartesian products</strong> across companies.</li><li>Inability of SQL Server to utilize compound primary keys where Company is the leading column.</li></ol><h3>Step 6: Tune SSRS Datasets and Subreports</h3><p>If the BAQ runs fast in the designer but the SSRS report times out in the System Monitor:</p><ul><li><strong>Avoid SSRS Subreports inside Tablix rows:</strong> A subreport embedded in a row executes a separate query against the report server for every single record rendered.</li><li><strong>Filter in SQL, not in SSRS:</strong> Do not pull 100,000 rows into the RDL dataset and filter them with an SSRS expression. Push the predicate into the BAQ or RDD so SQL Server only streams what is actually printed.</li></ul><h3>The QueryTimeout = 0 Trap</h3><p>When a BAQ or report times out, the tempting quick fix is setting QueryTimeout = 0 (or 600 seconds) in the BAQ execution settings or SSRS report properties.</p><p><strong>Why this is dangerous:</strong></p><ul><li>0 means infinite timeout. A poorly constructed Cartesian join or non-SARGable scan will sit on your SQL Server holding locks and consuming CPU/memory workers until the SQL instance restarts.</li><li>Always fix the underlying index alignment or subquery structure first.</li></ul><h3>Troubleshooting Summary</h3><ul><li><strong>Times out consistently at 30s</strong>: Default command timeout reached; action item: Check execution plan; isolate if PartTran or TranGLC is causing table scans</li><li><strong>Fast for 1 part, times out for all parts</strong>: Broad PartTran scan without leading index key; action item: Add mandatory filters or date/plant boundaries; avoid YEAR(Date) functions</li><li><strong>Slows dramatically after adding TranGLC</strong>: Missing RelatedToFile or data-type mismatch; action item: Add explicit RelatedToFile = ‘…’ filter and CONVERT() integer keys to nvarchar</li><li><strong>Report hangs in ACTIVE state</strong>: SSRS subreport row multiplication or network buffer; action item: Flatten subreports into single dataset; verify report server execution logs</li></ul><h3>About the Author</h3><p><strong>Al Hasib Tamim</strong> is an independent Technical ERP Analyst and contractor at <a href="https://clearcutover.com/"><strong>Clear Cutover</strong></a>, specializing in <a href="https://clearcutover.com/syteline">Infor SyteLine</a> data migrations and white-label <a href="https://clearcutover.com/epicor-kinetic">Epicor Kinetic</a> report, BAQ, and DMT subcontracting.</p><p>Explore the open-source diagnostic toolkit on GitHub: <a href="https://github.com/tamimhasib76/syteline-kinetic-erp-diagnostics">tamimhasib76/syteline-kinetic-erp-diagnostics</a>.</p><p><em>Original article published on </em><a href="https://clearcutover.com/blog/kinetic-baq-timeout-parttran-tranglc"><em>Clear Cutover</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73230235c46d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SyteLine SQL tables cheat sheet: _mst and site_ref]]></title>
            <link>https://medium.com/@tamim_32410/syteline-sql-tables-cheat-sheet-mst-and-site-ref-d5728c6cbe92?source=rss-b57f5aaa060e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5728c6cbe92</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[enterprise-software]]></category>
            <category><![CDATA[data-architecture]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Tamim]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 15:06:23 GMT</pubDate>
            <atom:updated>2026-10-25T15:06:23.247Z</atom:updated>
            <content:encoded><![CDATA[<p>Short answer</p><p>SyteLine stores its data in SQL Server tables with an _mst suffix, such as item_mst, co_mst and coitem_mst. Every row carries a site_ref column that says which site owns it. The same names without the suffix ( item, co) are views filtered to the site your session is in, which is why they can come back empty in SQL Server Management Studio. Tables ending in _mst_all hold data replicated from other sites in a multi-site setup. To write reliable queries, use the _mst tables, filter on site_ref, and join on both the business key and site_ref.</p><h3>The three naming patterns</h3><p>The base table. Every row has a site_ref.</p><p>Reporting and analysis queries, filtering on site_ref yourself</p><p>name (no suffix)</p><p>A view over _mst, filtered to the current session&#39;s site</p><p>Inside SyteLine code, where the site context is already set</p><p>name_mst_all</p><p>Data replicated across sites in a multi-site setup</p><p>Cross-site reporting, when replication is configured</p><p><strong>Why does </strong><strong>SELECT * FROM item return nothing in SSMS?</strong> Your SSMS session has no SyteLine site context, so the site-filtered view has nothing to match. Either query item_mst with WHERE site_ref = &#39;YOURSITE&#39;, or set the site context for your session with the SetSiteSp procedure. Check its parameters in your own database first.</p><h3>Columns you’ll see on almost every table</h3><ul><li>site_ref: the owning site. Always filter on it, and always include it in joins.</li><li>RowPointer: a unique identifier for each row. Notes and other attachments link back to records through it.</li><li>CreatedBy, UpdatedBy, CreateDate, RecordDate: audit columns. RecordDate is the last-modified date.</li><li>NoteExistsFlag: tells you whether the record has notes attached.</li></ul><h3>The core tables by area</h3><h3>Sales and customers</h3><p>A common trap: the customer’s <strong>name</strong> isn’t in customer_mst. It&#39;s in custaddr_mst, in the row with cust_seq = 0.</p><h3>Purchasing and vendors</h3><h3>Items and inventory</h3><h3>Production</h3><h3>Finance</h3><h3>Finding the table behind any form</h3><p>You don’t need to guess. Open the form in Design Mode and note the <strong>IDO</strong> its main collection uses. Then open the <strong>IDOs</strong> form, find that IDO, and look at its tables. That shows you exactly which _mst tables, and which joins, feed the form. This is the fastest way to answer &quot;which table is this field in?&quot;</p><h3>Three starter queries</h3><p>These are read-only examples written for this article. Run them against a <strong>test</strong> copy first, and replace &#39;MAIN&#39; with your site name.</p><p><strong>Open customer order lines with the customer name</strong></p><pre>SELECT co.co_num, ca.name AS customer_name, ci.co_line, ci.item, ci.qty_ordered, ci.qty_shipped, ci.due_date FROM co_mst AS co JOIN coitem_mst AS ci ON ci.co_num = co.co_num AND ci.site_ref = co.site_ref JOIN custaddr_mst AS ca ON ca.cust_num = co.cust_num AND ca.cust_seq = 0 AND ca.site_ref = co.site_ref WHERE co.site_ref = &#39;MAIN&#39; AND ci.stat = &#39;O&#39; -- open (ordered) lines ORDER BY ci.due_date;</pre><p><strong>On-hand quantity by warehouse</strong></p><pre>SELECT iw.item, i.description, iw.whse, iw.qty_on_hand FROM itemwhse_mst AS iw JOIN item_mst AS i ON i.item = iw.item AND i.site_ref = iw.site_ref WHERE iw.site_ref = &#39;MAIN&#39; AND iw.qty_on_hand &lt;&gt; 0 ORDER BY iw.item, iw.whse;</pre><p><strong>Open purchase order lines with the vendor name</strong></p><pre>SELECT po.po_num, va.name AS vendor_name, pi.po_line, pi.item, pi.qty_ordered, pi.qty_received, pi.due_date FROM po_mst AS po JOIN poitem_mst AS pi ON pi.po_num = po.po_num AND pi.site_ref = po.site_ref JOIN vendaddr_mst AS va ON va.vend_num = po.vend_num AND va.site_ref = po.site_ref WHERE po.site_ref = &#39;MAIN&#39; AND pi.stat = &#39;O&#39; ORDER BY pi.due_date;</pre><h3>Rules that keep you out of trouble</h3><ul><li><strong>Read, don’t write.</strong> Never UPDATE or INSERT into _mst tables directly. SyteLine&#39;s business logic lives in its IDOs, stored procedures and triggers, so a direct write skips all of it. That&#39;s how balances drift and orders end up in states the application can&#39;t fix. Make changes through the application, a utility, or an IDO call.</li><li><strong>Use a read-only login</strong> for reporting tools.</li><li><strong>Always join on </strong><strong>site_ref</strong> as well as the key. Leaving it out works fine in a single-site database, then silently doubles your rows the day a second site is added.</li><li><strong>Check status codes against your own data</strong> before relying on them in filters.</li></ul><h3>A note on multi-tenant cloud</h3><p>In multi-tenant CloudSuite Industrial you have no direct SQL access. The same data is reached through IDOs, which means DataViews, the IDO Runtime, and the REST API. The table knowledge above still helps there, because IDO properties map closely to these columns.</p><h3>FAQ</h3><h3>What does _mst mean in SyteLine table names?</h3><p>_mst marks the base table that holds the data for every site, with a site_ref column showing which site owns each row.</p><h3>Why does my SyteLine view return no rows in SQL Server Management Studio?</h3><p>Views without the _mst suffix filter to the current session&#39;s site, and an SSMS session has none. Query the _mst table with a site_ref filter, or set the site context first.</p><h3>Where is the customer name stored in SyteLine?</h3><p>In custaddr_mst, in the row for that customer with cust_seq = 0.</p><h3>Can I update SyteLine tables directly with SQL?</h3><p>You shouldn’t. Direct writes bypass SyteLine’s business logic and can corrupt related records. Use the application, a utility, or an IDO method.</p><p><em>Originally published at </em><a href="https://clearcutover.com/blog/syteline-sql-tables-cheat-sheet"><em>https://clearcutover.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5728c6cbe92" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>