Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenPlant | AutoPLANT
  • Product Communities
OpenPlant | AutoPLANT
OpenPlant | AutoPLANT Wiki How to Fix Issue of Missing Tables upon Unpackage SQL Mode Project to Access Mode
    • Sign In
    • -OpenPlant | AutoPLANT Wiki
      • -OpenPlant
        • +CONNECT Services - OpenPlant
        • +Example Configuration - CONNECT Edition
        • +Installations - OpenPlant CONNECT Edition Applications
        • +OpenPlant Download Links & Videos
        • OpenPlant Product Compatibility
        • +OpenPlant Modeler CONNECT
        • +OpenPlant PID CONNECT
        • +OpenPlant Isometrics Manager CONNECT
        • +OpenPlant Orthographics Manager CONNECT
        • +OpenPlant Support Engineering CONNECT
        • +OpenPlant Project Administrator CONNECT
        • +OpenPlant CONNECT Edition-PlantSight Integration
        • +OpenPlant Modeler v8i
        • +OpenPlant Isometrics Manager v8i
        • +OpenPlant Project Administrator v8i
        • -OpenPlant PID v8i
          • +Application Solutions - OPPID
          • +Class Editor - OpenPlant PID
          • +Customization - OpenPlant PID
          • -Database - Plant Project
            • How to Create a new SQL Server Project and Synchronize OpenPlant PID Projects to it?
            • How do I turn on Number Auto Incrementation of Components on placement?
            • How to Associate an OpenPlant PID Drawing with Another Project
            • How to Change OPPID and Plant Project's Names
            • How to Configure Particular Project to Work in Offline Mode By Default
            • How to Create Custom Border and Map Custom Property with Database
            • How to Get Related Valve Tag in Instrument List in Data Manager
            • How to Map Custom Properties with Database
            • How to Map Input/Output Signal of Instrument in OpenPlant PID
            • How to Select Field Value from External Database PickList
            • How to Setup a Batch Routine to Sync all Drawings in my Project to the Database at one time
            • How To Show Modified Tag Format in Data Manager
            • Importing Data into the Plant Project Database from an Excel Spreadsheet
            • Mapping Plant Project Extended Data Fields to OpenPlant PowerPID
            • OPPID - How to use the Class Editor Mapping Extension for the Plant Project Database
            • OPPID- How to add custom properties to specific piece of equipment or sub class and link to a database
            • Plant Project Database - Class Mapping
            • Plant Project Database - Operations with Schema Mapping and Mapping Add-in panel
            • Plant Project Database - Oracle Install notes
            • Plant Project Database - Relationship Mapping
            • Plant Project Database Tag Format - Tag Codes
            • Setting OpenPlant PowerPID Project with Plant Database Project
            • To Import Modified Tags from Excel in Data Manager
            • Error: "Connection Test Failed" While Mapping SQL Database to Plant Project
            • Calculated EC Property Shows Failure Value in Data Manager
            • "{SERVICE_IS_RELATED_TO_EQUIPMENT(VG.0000003279)} belongs to the ECSchema {ECSchema: PlantProjectSchema.01.04} which is not supported in this connection" Error on Synchronizing from Database to Drawing
            • "Project ID 'XXXX' not found in AT_PROJ.DB3"
            • How to Fix Folder ID Error Upon Performing Follow Page Connector and Update in OpenPlant PID SS10
            • How to Fix Issue of Missing Tables upon Unpackage SQL Mode Project to Access Mode
            • How to Move a Project Database from One Directory to Another For OPPID
            • How to Work with Follow Page Connector and Update for a ProjectWise Managed Env in OpenPlant PID SS10
            • Troubleshooting Synchronization issues using Component Selection Tool
          • How to Cascade Associated Item's Value from Associated Class to Fitting Class in OpenPlant PID V8i
          • How to cascade Associated Items value from Pipeline to Reducer using Notifier in OpenPlant PID V8i
          • How to Change the Existing Cell Component Graphics in OpenPlant PID V8i
          • How to Fix Modified Tag Value Upon Second Sync in OpenPlant PID V8i
          • How to Hide the Actuator Prompt for Control Valve in OpenPlant PID V8i
          • How to include custom schema in OpenPlant PID under component manager
          • How to Point Custom WorkSpace Location in OpenPlant PID SS10
          • How to set the Fail Mode List for control valve Placement in OpenPlant PID V8i
          • +Properties - OpenPlant PID
          • +Release Notes - OpenPlant PID
          • +Training - OpenPlant PID
          • +White Papers/Guidelines - OPPID
        • +OpenPlant Orthographics Manager v8i
        • +OpenPlant Support Engineering v8i
        • +OpenPlant ModelServer v8i
        • +OpenPlant Reporting v8i
        • How to Connect with Bentley Technical Support Team using Microsoft Teams
        • How to Connect with Bentley Technical Support Team using Microsoft Teams via Browser
        • How to get list of installed applications/programs on Windows Machine using Command Prompt.
        • How to get list of Windows Updates installed on the machine using Command Prompt.
        • How to Package WorkSpace to be Shareable to Users for OpenPlant Projects
        • How to find iModel.dgn file of another domain in PlantSight
      • +Bentley AutoPLANT
      • +Bentley Navigator
      • +Bentley PlantSpace
      • +Plant Project Tools
      • +Bentley Raceway and Cable Management
      • i-model Composition Service for S3D
      • Working from home with OpenPlant
      • Working from home with Bentley Raceway and Cable Management
      • Working from home with AutoPLANT Modeler
      • Your Feedback is important to us!

     
     Questions about this article, topic, or product? Click here. 

    How to Fix Issue of Missing Tables upon Unpackage SQL Mode Project to Access Mode

    Applies To 
    Product(s): OpenPlant PID SS10
    Version(s):

    08.11.12.03

    Environment:  Windows 10 (64-bit)
    Area:  Project Packager
    Subarea:  Database
    Original Author: Deepak Singh, Bentley Product advantage Group

    Background

    In this wiki article, we will explore the solution to fix the missing tables like EQUIP, INSTR when a SQL based packaged project is unpackaged into Access mode using Project Packager tool. Such issues can be seen when the SQL database column contains incorrect length value for the defined datatype.

    Steps to Accomplish

    1. Using SQLMS (SQL Server Management Studio), create a blank database.
    2. From Project Packager, unpackage the packaged project into SQL based project.
    3. From SQLMS, check if all the tables are available to SQL database.
    4. Navigate to the concerned table, in this case dbo.EQUIP table. Right click and select Design.



    5. From Table Design, scroll to the list of columns and inspect the datatype and its length for each column. Notice for any odd length values.
    6. In this example, LOOP_TITLE column has datatype as varchar, but the defined length value is 256.



    7. For varchar datatype, maximum length can be from 0 to 255 byte. But in this example, it is defined as incorrect length value. Due to this concern, whenever the project is unpackaged into access format, it skips the entire table.
    8. To fix this concern, we need to correct the varchar length and it should be defined as 255. In this example, we have three tables where some columns have defined length as 256 for varchar datatype.
    9. To modify the length, we need to define ALTER query and fix it. The general SQL query should be

      SQL Query: ALTER TABLE {table name} ALTER COLUMN {column name} VARCHAR(255)

    10. In this example, dbo.EQUIP, dbo.INSTR and dbo.INSTYPE tables have incorrect column length for LOOP_TITLE, LOOP_TITLE and INSTRUMENT_NAME respectively.
    11. From SQL query, define query as

      ALTER TABLE dbo.equip ALTER COLUMN LOOP_TITLE VARCHAR(255)
      ALTER TABLE dbo.instr ALTER COLUMN LOOP_TITLE VARCHAR(255)
      ALTER TABLE dbo.instype ALTER COLUMN INSTRUMENT_NAME VARCHAR(255)



    12. Click on Execute to run the query.
    13. Once query executed, refresh the SQL database. Cross-validate the column length and it should show as 255.



    14. Using Project Packager, package the SQL project database into Access type.
    15. Unpackage the packaged project and check for tables. It should show the tables for EQUIP, INSTR and INSTRUMENT_NAME.



    See Also

    OpenPlant PID v8i
    OpenPlant PID provides a fully configurable user interface designed to make your job easier by automating traditionally time-intensive tasks.OpenPlant PID provides companies with an indispensable tool…
    Last edited over 2 years ago in OpenPlant | AutoPLANT > OpenPlant | AutoPLANT Wiki

    • OpenPlant PID
    • Missing Tables after Unpackage
    • OpenPlant PID SS10
    • Missing Tables Project Packager
    • project packager
    • Missing Table in Access Project Package
    • Share
    • History
    • More
    • Cancel
    • Deepak Singh Created by Deepak Singh
    • When: Mon, Feb 21 2022 6:40 AM
    • Revisions: 1
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies