Author Topic: -206 sql errors in system log  (Read 1328 times)

octater

  • Guest
-206 sql errors in system log
« on: May 24, 2021, 12:00:29 PM »
when querying CMOD using CMIS thru Content Navigator and odwek,we are seeing the following error in the system log:
DB Error: {DB2 FOR OS/390}{ODBC DRIVER}{DSN12010}   DSNT408I SQLCODE = -206, ERROR:  POLICYEFFDATE IS NOT VALID IN THE CONTEXT WHERE IT IS USED

The issue is that POLICYEFFDATE is not a column on the database, but a field in the folder that is mapped to database field POL_EFF_DT.(policyEffDate :: APA-LETTERS-AQS              : POL_EFF_DT)   

When I check apptune for DB2, the actual sql failing is using POLICYEFFDATE and not POL_EFF_DT, but the other fields in the query are the true column names and not folder fields.  It appears that somewhere folder field names are being mixed with table column names for sql.

Has anyone else seen anything like this?                                                 

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: -206 sql errors in system log
« Reply #1 on: May 24, 2021, 12:13:44 PM »
If you're running some custom line-of-business app on top of this stacj, double check your code to make sure you're not mixing up a field name somewhere, otherwise, I suspect this is a bug somewhere inbetween CMIS / ICN / ODWEK.

You didn't mention versions, which is very important in a situation like this -- can you provide us with the versions of ICN / ODWEK / CMOD / DB2?

This will help us to help you!  :)

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR