Our issue was logged with Microsoft and here was their response:
Microsoft Update:
I understand that your customer has upgraded to GP2015 and they have Analytical Accounting installed.
They are getting the error message below when they enter the account code and amount and then click tab to next line. Issue is happening for all users even sa user.
‘[Microsoft][SQL Server Native Client 11.0][SQL Server]Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <=, >, >= or when the subquery is used as an expression.’
---------------------
SCOPE:
---------------------
The scope of this case will be considered resolved when you no long receive the error message below when entering an account in the transaction entry window
‘[Microsoft][SQL Server Native Client 11.0][SQL Server]Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <=, >, >= or when the subquery is used as an expression.’
A scope focuses on a single support issue and the reasonable effort needed to resolve it. A single support issue is a problem that cannot be broken down into subordinate issues. If a problem consists of subordinate issues, each shall be considered a separate incident. Questions outside of this scope will need to have separate cases opened.
---------------------
Environment:
---------------------
Build/Detailed Version: GP 2015 R2
Database: SQL Server
---------------------
ASSESSMENT:
---------------------
I had a case recently where users were experiencing the same error and it was due to blank DOCNUMBR’s in the AAG20000 table. Please run the following query to check for Blank DOCNUMBR:
SELECT aaSubLedgerHdrID FROM AAG20000
WHERE DOCNUMBR = ''
AND DOCTYPE <> 0
AND SERIES <> 0
The DOCNUMBR value should never be blank. Under the circumstance that nothing is in the process of posting, there should not be any blank DOCNUMBR values as this would be an invalid/orphaned record. With that in mind, I would like you to run the above statement against the company database to confirm my suspicion. If there are any results, I would recommend the following:
DELETE AAG20000 WHERE DOCNUMBR = ''
-----------
I hope the above is useful and helps you narrow down. They also said:
If there are no results from the select above, we will need to capture a SQL trace of the error. This will provide more information than the Log.
Since we had results and resolved our issue, we did not progress with the trace.