Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Import CSV to Database error

Hi,

I've used Import CSV to database smart services and configured the parameters. But when I debug, it throws "java.lang.ClassCastException: org.apache.naming.NamingContext cannot be cast to javax.sql.DataSource" error.

Can someone pls help me the step by step guide how to configure the below 2 smart services. I assume, I am missing some configs.

1. Import CSV to Database

2. Import Excel to Database

 

Reg/Mp

  Discussion posts and replies are publicly visible

Parents
  • HI ,
    Please validate the below configurations,

    Excel to database :
    Document-> Your excel document
    columns to read in a row -> exact count of columns you want to read from the file
    data source name -> Your data source name in your data store
    new column (optional)->Can be used to add more data that i snot contained in the file. For Example Batch ID can help in extracting all rows inserted part of file import.mention it as text array i.e. {"Batch ID", "Date of import"}
    new column value (optional)-> Value for new column. i.e.{ri!batchID,today()}

    you have to ensure your column names matches the file header names.

    If you still face issues please share a sample file , table structure and you rconfiguration so that can help you better to resolve this!!

    Thanks,
    Thoufiq.
  • 0
    Certified Associate Developer
    in reply to mohamedt808

    Hi Thoufiq,

    I am getting ???Incorrect syntax near ','.??? error. There is no comma delimiter in my excel file. I have exact same column names defined in CDT and SQL table. Any idea?

Reply Children
No Data