IBM Support

IT37080: .NET CORE: USING IFXDATAADAPTER WITH DATE TYPE THROWS "UNABLE TOCAST OBJECT TO TYPE 'INFORMIX.NET.CORE.IFXDATETIME...'"

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When selecting a date type using IfxDataAdapter, the following
    exception like the following will be thrown when using the
    Informix .NET Core provider:
    
    Unable to cast object of type 'Informix.Net.Core.IfxDateTime' to
    type 'System.IConvertible'.Couldn't store <1998-05-20> in
    order_date Column.  Expected type is DateTime.
    
    The same code works fine with the regular Informix .NET
    provider.
    
    The workaround is to use an IfxDataReader instead.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of Informix Client SDK prior to 4.50.FC7.              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Informix Client SDK 4.50.FC7 (when available).    *
    ****************************************************************
    

Problem conclusion

  • Fixed in Informix Client SDK 4.50.FC7.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT37080

  • Reported component name

    IBM CSDK

  • Reported component ID

    5724C2381

  • Reported release

    450

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-06-01

  • Closed date

    2021-08-26

  • Last modified date

    2021-08-26

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    IBM CSDK

  • Fixed component ID

    5724C2381

Applicable component levels

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSVT2J","label":"Informix Tools"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"450"}]

Document Information

Modified date:
27 August 2021