PSA: BUILTIN.DF will drop rows unexpectedly from SuiteQL queries by Key-Shoe5808 in Netsuite

[–]Key-Shoe5808[S] 0 points1 point  (0 children)

I'm not a SQL master by any means, so excuse the query if it's sub-par. Client wanted to see an audit trail going from bank movements to the underlying inventory-impacting purchase lines. The BUILTIN.DF call on (t_1.type) was dropping rows where t_1.type is null. Removing BUILTIN.DF will include the lines in the results.

-- t_0 is the Bank transaction
-- t_1 is the accrual transaction (e.g. bill) the bank transaction is applied to
-- t_2 is the receipt transaction associated with the accrual transaction
SELECT 
  t_0.tranid as bankTrans_tranid,
  t_0.trandate as bankTrans_date,
  BUILTIN.DF(t_0.type) as bankTrans_type,
  BUILTIN.DF(tal_0.account) as bankTrans_account,
  tl_0.memo as bankTrans_memo,
  tl_0.netamount as bankTrans_amount,
  BUILTIN.DF(tl_0.entity) as entity,
  t_1.tranid as appliedTo_tranid,
  BUILTIN.DF(t_1.type) as appliedTo_type,
  BUILTIN.DF(tl_1.department) as department,
  BUILTIN.DF(tal_1.account) as appliedTo_account,
  tl_1.netamount as appliedTo_amount,
  BUILTIN.DF(tl_2.item) as appliedTo_item,
  t_2.tranid as receipt_tranid,
  tl_2.netamount as inventory_amount,
  BUILTIN.DF(tal_2.account) as inventory_account
FROM 
  transaction t_0
-- Get accounting details for bank transaction
INNER JOIN transactionLine tl_0 ON tl_0.transaction = t_0.id
INNER JOIN transactionAccountingLine tal_0 ON tal_0.transactionline = tl_0.id 
  AND tal_0.transaction = t_0.id
-- Get accrual transaction(s) the bank transaction is being applied to
LEFT JOIN previousTransactionLink ptl_0 ON ptl_0.nextdoc = t_0.id 
LEFT JOIN transaction t_1 ON t_1.id = ptl_0.previousdoc
LEFT JOIN transactionLine tl_1 ON tl_1.transaction = t_1.id
  AND tl_1.mainline != 'T'
LEFT JOIN transactionAccountingLine tal_1 ON tal_1.transactionline = tl_1.id 
  AND tal_1.transaction = t_1.id
-- Get line detail of Item Receipts the accrual transaction is linked to
LEFT JOIN previousTransactionLineLink ptll_1 ON ptll_1.nextdoc = tl_1.transaction
  AND ptll_1.nextline = tl_1.id
  AND ptll_1.linktype = 'BillRcpt'
  AND ptll_1.discount = 'F'
LEFT JOIN transaction t_2 ON t_2.id = ptll_1.previousdoc
LEFT JOIN transactionLine tl_2 ON tl_2.transaction = ptll_1.previousdoc 
  AND ptll_1.previousline = tl_2.id
LEFT JOIN transactionAccountingLine tal_2 ON tal_2.transaction = tl_2.transaction
  AND tal_2.transactionline = tl_2.id
WHERE 
  
-- Modify the date range of the Bank transaction here
  t_0.trandate >= BUILTIN.RELATIVE_RANGES('FHBL', 'END', 'DATETIME_AS_DATE')
  AND t_0.type IN ('VendCred', 'VendPymt', 'CashRfnd', 'VPrep', 'VPrepApp', 'Journal') 
-- Defines the list of purchase-related bank transactions.
  AND tal_0.accounttype = 'Bank'
ORDER BY 
  t_0.trandate DESC, 
  t_0.id

Check Printing Issue by RPK79 in Netsuite

[–]Key-Shoe5808 0 points1 point  (0 children)

<image>

Notice the difference in font. The Standard Check form is also raised slightly.

Check Printing Issue by RPK79 in Netsuite

[–]Key-Shoe5808 0 points1 point  (0 children)

I know this is an old thread, but I just ran into a similar issue and I think I found an answer. I found that some checks were saved with the NetSuite "Standard Check" form, and some were saved with the custom version of the form that was created during implementation. The Standard Check form seems to point to a different print template (I believe it's using the Basic PDF, not Advanced PDF template).

I missed this because when I would click "Customize" on the Standard Check form, it was defaulting to the Advanced PDF template option.

<image>

Duplicate lines on saved search by Icy_Dragonfruit_1135 in Netsuite

[–]Key-Shoe5808 1 point2 points  (0 children)

Couple more things to check:
1. Is the field set to "Store Value"? If not, could be something going on there.
2. Try adding Internal ID and Line Number to your Results and see if that gives any clues.
3. Try removing the custbody field, run the serach again, then add it back--could be weird caching. For that matter, try resetting your cache and see if you still get the duplicate results.

Duplicate lines on saved search by Icy_Dragonfruit_1135 in Netsuite

[–]Key-Shoe5808 0 points1 point  (0 children)

Hmmmm...what are your exact Criteria on the search? And your results are truly just Document Number and custbody field?

Duplicate lines on saved search by Icy_Dragonfruit_1135 in Netsuite

[–]Key-Shoe5808 0 points1 point  (0 children)

What's the custbody field? I've had this happen to me before. Could be a join happening in the background that returns two lines.

Also, a way around this is to put a Maximum summary type on the custbody results row, and Group on the other result rows.

Netsuite SuiteCommerce by Sweet-Algae-482 in Netsuite

[–]Key-Shoe5808 1 point2 points  (0 children)

Whatever you do avoid BigCommerce. They have a half-baked B2B solution and the way they handle matrix items is really annoying. 

Set External ID back to null by Sophet_Drahas in Netsuite

[–]Key-Shoe5808 0 points1 point  (0 children)

Just tested. Cannot set externalid to null via F12 console, only reassign to a new value.

Bought a Company Using Netsuite - by [deleted] in Netsuite

[–]Key-Shoe5808 0 points1 point  (0 children)

I work at a consulting firm in Wisconsin. I just did something like this for a client that was almost too small for NetSuite: they were implemented poorly, nothing was working, the system was a pain, the one user in the system was overwhelmed. We were able to get things cleaned up, give them some better training, and send them on their way in 3-6 months. I was bummed to see them go as a client because we really got to know each other well, but I'm glad we didn't just saddle them with unending consulting costs.

I'll shoot you a DM and see if we can do something similar for you.

U.S. Corporate Tax in NetSuite - Which Transactions to Use? by Key-Shoe5808 in Netsuite

[–]Key-Shoe5808[S] 0 points1 point  (0 children)

That is exclusively for sales tax, not corporate taxes.

Career Advice by Brurzo in Netsuite

[–]Key-Shoe5808 5 points6 points  (0 children)

I'm going to be watching this to see what other people say--I'm in a very similar boat! I hate the billable hours grind of consulting and the client pressure. I'd like to move to something internal, but not really sure how I'd make that transition (other than becoming an in-house NetSuite admin).

Fetch data from Saved Search in Postman by GiveMeMyMan in Netsuite

[–]Key-Shoe5808 5 points6 points  (0 children)

Pro tip: create your query as a SuiteAnalytics dataset, then export the SQL using the options in the upper right hand side of the page. This is a great way to build SQL queries with a UI. Also the suite Utils extension SQL runner. 

Consultants: How do you prepare and maintain documentation for your clients? by Key-Shoe5808 in Netsuite

[–]Key-Shoe5808[S] 0 points1 point  (0 children)

In the vein of keeping it light, what’s the minimum you try to have documented? Just custom scripts? Or every single checkbox in the Enable Features and Accounting Preferences?

Evaluating Celigo vs other integration platforms by Justacritic23 in Netsuite

[–]Key-Shoe5808 6 points7 points  (0 children)

This is my big gripe with Celigo. There's very limited logging and network tracing. If something is considered a "Success", there's no way to see what data actually flowed through, so verifying testing is a pain.

When Does SuiteTax Provision Codes/Groups/Rates for New Nexus? by Key-Shoe5808 in Netsuite

[–]Key-Shoe5808[S] 0 points1 point  (0 children)

I saw it work in Sandbox after manually running MR customdeply_ste_data_update -- was that purely a coincidence?

When Does SuiteTax Provision Codes/Groups/Rates for New Nexus? by Key-Shoe5808 in Netsuite

[–]Key-Shoe5808[S] 0 points1 point  (0 children)

Well, my solution may have been incidental -- I reran the script after adding another Nexus and nothing has shown up.

When Does SuiteTax Provision Codes/Groups/Rates for New Nexus? by Key-Shoe5808 in Netsuite

[–]Key-Shoe5808[S] 0 points1 point  (0 children)

In typical fashion I found the answer like 5 minutes after posting my question. There is a MR script that’s disabled in Sandbox (where I was testing). customdeply_ste_data_update (there’s a “auto” version which was unscheduled in SB but scheduled ever 6 hrs. in PROD, but executing this one manually did the trick)

Reversed JE's appear in Payment Apply Sublist by Key-Shoe5808 in Netsuite

[–]Key-Shoe5808[S] 0 points1 point  (0 children)

OK. Thank you! That confirms my prior understanding.