AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AugSQL
AugSQL
ErrorCode: 406
 
Notifications
Clear all

Bug - Open ErrorCode: 406

 
Votes Received: 0

AugSQL
Last Post by Tim Rodman 1 year ago
1 Posts
1 Users
0 Reactions
62 Views
RSS
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
Topic starter
June 15, 2024 11:57 am
(@timrodman)
Famed Member
Joined: 10 years ago

So far, this is the only bug that we've run into with AugSQL and, at this point, we haven't been able to reproduce it in a local environment. We've only heard of it happening in a couple of Acumatica SaaS environments.

 

Here's an example from an actual AugSQL User.

 

They can successfully run the following SQL Code without any problems:

SELECT *
FROM CustomerClass

 

But, when they try to add a WHERE clause like this:

SELECT *
FROM CustomerClass
WHERE CompanyID=2

 

They get this error message

ErrorCode: 406.

image

 

For this particular AugSQL User, they get the error message in Acumatica Version 24.105.0036, but they don't get the error (running the same SQL code) in Acumatica Version 23.207.0025.

 

But we couldn't reproduce the error in a local Acumatica 24.105.0036 environment.

So, we're not sure at this point if it's an Acumatica Version problem or a SQL Version problem.

 

If you get the ErrorCode: 406. error, please reply to this Discussion Topic with both the Acumatica Version that you're running (ie. 24.105.0036) and the SQL Version that you're running. You can find the SQL Version that you're running by running the following SQL command:

SELECT @@Version 'SQL Version'
image

You can simply copy and paste the gigantic string that you see and reply to this Discussion Topic with it. It will be something like this:

Microsoft SQL Server 2019 (RTM-GDR) (KB5040986) - 15.0.2116.2 (X64) Jul 2 2024 17:41:57 Copyright (C) 2019 Microsoft Corporation Developer Edition (64-bit) on Windows 10 Pro 10.0 <X64> (Build 19045: )

 

The good news is that:

1. So far, this is the only AugSQL bug that we've run into.

2. There is a workaround!

 

The workaround is to add the TOP command. If you want to return all records, just pick a really big number that will be larger than the number of records returned.

Something like this:

SELECT TOP(999999) *
FROM CustomerClass
WHERE CompanyID=2
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,521 Topics
  • 10.9 K Posts
  • 12 Online
  • 2,321 Members
Our newest member: Courtney Wilder
Latest Post: Can UDFs be populated using an Import Scenario?
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×