My Oracle Support Banner

EGL9.2: Spreadsheet Journal Import(JRNL1_WS) Journals Could Not Be Imported In MS SQL Server, Encountered 'Incorrect syntax near the keyword 'AND' ' Error (Doc ID 2355343.1)

Last updated on FEBRUARY 06, 2019

Applies to:

PeopleSoft Enterprise FIN General Ledger - Version 9.2 to 9.2 [Release 9]
Microsoft SQLServer - Version 2005 to 2014
Information in this document applies to any platform.

Symptoms

Issue:
-------
Spreadsheet Journal Import (JRNL1_WS) with 'edit Journal(s)' checkbox selected, Journals could not be imported in MS SQL server.


Steps to Replicate:
---------------------

1. Save all JRNL1_WS, JRNLMCRO_WS, GLLOG on the same folder
2. Enter journal data in spreadsheet
3. Select the 'Edit Journal(s)' check box on the set up page
4. Click on the button to import journal.

Please see replication screenshots for more details.

Error:
------
Imported 0 Journals - SystemID (Unit, JournalID, Date)Reference, Description:

In IB trace file, observed below error:

[Microsoft][SQL Server Native Client 11.0][SQL Server]An expression of non-boolean type specified in a context where a condition is expected, near ','.
[Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near the keyword 'AND'.

Failed SQL stmt: UPDATE PS_JRNL_HDR_STG SET JRNL_HDR_STATUS='E' WHERE (JOURNAL_ID, JOURNAL_DATE, BUSINESS_UNIT_IU,SEQNO)IN( SELECT A.JOURNAL_ID , A.JOURNAL_DATE , A.BUSINESS_UNIT_IU , A.SEQNO FROM PS_JRNL_HDR_STG A WHERE A.JOURNAL_ID=PS_JRNL_HDR_STG.JOURNAL_ID AND A.JOURNAL_DATE=PS_JRNL_HDR_STG.JOURNAL_DATE AND A.BUSINESS_UNIT_IU=PS_JRNL_HDR_STG.BUSINESS_UNIT_IU AND A.SEQNO=PS_JRNL_HDR_STG.SEQNO AND A.JRNL_HDR_STATUS='E' AND A.PROCESS_INSTANCE=PS_JRNL_HDR_STG.PROCESS_INSTANCE) AND PROCESS_INSTANCE=xxxx

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.