Results 1 to 5 of 5

Thread: ODBC Export Error

  1. #1
    I could stop if I wanted to Chirag Mistry's Avatar
    Join Date
    2004-06
    Location
    Atlanta
    Posts
    254
    Login to Give a bone
    0

    Default ODBC Export Error

    We regularly create Room Data Sheets for projects and I had tested a pilot using Revit + Access mentioned here (http://forums.augi.com/showthread.php?t=47623)
    I am currently developing the template for this and suddenly while trying to export to access am getting the error "ODBC failed - Too many fields".
    I read little bit about it online - an access table cannot have more than 255 fields, but the problem with exporting to ODBC from revit is that it likes to export everything and you cannot control the fields.

    Any suggestions ?
    Thanks

  2. #2
    AUGI Addict hand471037's Avatar
    Join Date
    2003-05
    Location
    Oakland, California
    Posts
    1,934
    Login to Give a bone
    0

    Default Re: ODBC Export Error

    Quote Originally Posted by Chirag Mistry View Post
    Any suggestions ?
    Is there an inbetween step you could make? Exporting to SQL, or Excel even, and then having your already-built Access database pull just what it needs from that?

    Can Access pull data from text CSV files?

    Another option would be to look into the API, and just directly export the data you're after rather than using ODBC.

  3. #3
    Certifiable AUGI Addict dhurtubise's Avatar
    Join Date
    2005-07
    Location
    Somewhere in the BIM world
    Posts
    3,792
    Login to Give a bone
    0

    Default Re: ODBC Export Error

    Did you tried your export with a smaller project first ?

  4. #4
    Member
    Join Date
    2006-01
    Location
    Philly, PA, USA
    Posts
    26
    Login to Give a bone
    0

    Default Re: ODBC Export Error

    I've been doing the same thing for RDS reports from Revit and have run into the same ODBC Export error - too many fields. In the short term, I have found that if I delete some tables from the Access database, the export goes off without a hitch. It appears to happen when I hit a certain number of shared parameters that I've added to the project to export to the Access file. I know for a fact that none of my tables are >255 fields, so it must be some other limit I'm hitting. Please post back if you find the solution and I'll do the same.

    I've experimented with exporting to SQL Express (the free version), and it does not have the same restriction on number of fields that Access does. You can then use linked tables in Access to connect to SQL Server. One caution - SQL Server has slightly different field name requirements than Access does, so you may end up needing to adjust your queries and reports if you go that way. Also, that does add another step in the process and another server to worry about. I do like the idea of using the API to read the data directly out of the Revit file, especially if it could potentially be a two-way street. My programming is pretty rusty, though; and exporting to Access has been pretty easy so far.
    Last edited by ITABWODI; 2007-10-18 at 09:49 PM.

  5. #5
    All AUGI, all the time cphubb's Avatar
    Join Date
    2003-11
    Location
    Seattle
    Posts
    691
    Login to Give a bone
    0

    Default Re: ODBC Export Error

    The advantage to SQL 2000 or 2005 is to add a trigger to the db and create a unique id for all tables being exported. That way you can export all your Revit projects into a single database and use Access to query adding that unique id and get project specific information. Works great and reduces the step of creating a new ODBC file for each project.

Similar Threads

  1. odbc export to mysql database - error
    By andreseifert in forum Revit Architecture - General
    Replies: 0
    Last Post: 2010-01-31, 09:28 AM
  2. Revit 2010, Windows XP, ODBC Export error
    By LouisJ in forum Revit Architecture - General
    Replies: 1
    Last Post: 2009-07-08, 05:42 PM
  3. ODBC Export
    By Phil Palmer in forum Revit Architecture - Wish List
    Replies: 3
    Last Post: 2006-04-06, 08:49 PM
  4. ODBC Export
    By Steve Jager in forum Revit Architecture - Wish List
    Replies: 4
    Last Post: 2005-06-10, 08:36 PM
  5. ODBC Export
    By sjsl in forum Revit Architecture - Wish List
    Replies: 3
    Last Post: 2005-05-26, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •