Database error (operation=GET-LE, error=105)

SUGGESTED

Dear Gurus,

I am using SAGE 300 Premium 2018.
I installed and loaded SAMSYS, SAMINC and SAMLTD.

I am at the General Ledger Module --> G/L Transactions, trying to browse Journal Entries.

Whenever I scroll to the end of the entries, I will get this error: 

Description: Journal Header.    Database error (operation=GET-LE, error=105).    [Microsoft][SQL Server Native Client 11.0][SQL Server]Unclosed quotation mark after the character string 'ÞÞÞÞ?)) order by "BATCHID" desc,"BTCHENTRY" desc'.  Please refer this error to your database administrator or see your database documentation for further assistance.

This happens on both SAMINC and SAMLTD.
If I browse through a client database, there are no errors.

Kindly assist how do I resolve this error.
Thank you for your kind assistance.

Top Replies

  • HI H 

    Well done. After reading all the above updates, it looks as if the original data when you installed and loaded SAMSYS, SAMINC and SAMLTD were corrupt or not compatible to the new environment.

Parents Reply Children
  • 0 in reply to h@AIT

    Hi could you send me your ODBC details by running the following Powershell script?

    Get-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\ODBC Data Sources\' |
    ForEach-Object {
    $dsnName = $_.PSChildName
    $driverName = $_.Driver
    
    $driverPath = $_.'Driver32'
    
    $attributeValues = Get-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\$dsnName\"
    
    Write-Host "DSN Name: $dsnName"
    Write-Host "Driver: $driverName"
    Write-Host "Driver Path: $driverPath"
    Write-Host "Attributes:"
    
    $attributeValues | Get-Member -MemberType NoteProperty | ForEach-Object {
    $attributeName = $_.Name
    $attributeValue = $attributeValues.$attributeName
    Write-Host "- ${attributeName}: ${attributeValue}"
    }
    
    Write-Host "----------------------"
    }

  • 0 in reply to Accsys Consulting AU

    Hi Shane,
    Here's the info requested.
    I didn't use ODBC since the SAGE setup is via direct SQL as per Tim's sample.

    ___________________________________________

    DSN Name: ODBC Data Sources
    Driver:
    Driver Path:
    Attributes:
    - PSChildName: ODBC Data Sources
    - PSDrive: HKLM
    - PSParentPath: Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI
    - PSPath: Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\ODBC Data Sources\
    - PSProvider: Microsoft.PowerShell.Core\Registry
    - WIN7SP12018: SQL Server Native Client 11.0
    - Xtreme Sample Database 11.5: Microsoft Access Driver (*.mdb)
    ----------------------

  • 0 in reply to h@AIT

    Just a note when you use the "Server" option in Database Setup it still uses ODBC, it just uses a Native Client that allows you to connect to all databases though a single DSN.  If you select "Data Source" you have to create individual ODBC DSN's for every database.  So don't ever delete your DSN connection thinking you don't need it BlushThumbsup