Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise Design Integration Wiki Sequence number / serial number is not increasing in document code
    • Sign In
    • ProjectWise Design Integration Wiki
    • ProjectWise Software Download
    • +ProjectWise Learning
    • +Projectwise Licensing
    • ProjectWise Programming and PowerShell
    • +Projectwise Documentation
    • -ProjectWise Explorer Client
      • +ProjectWise Client
      • +Featured Articles - Projectwise Explorer
      • +Audit Trail - ProjectWise Explorer Client
      • +Bentley IMS Login
      • +BS1192 Rules Engine - ProjectWise Explorer Client
      • +Check In Dialog - ProjectWise Explorer Client
      • -Document Code - ProjectWise Explorer Client
        • How to combine two select queries
        • Incorrect / wrong serial number is generated in document code
        • Last Error 58129: Can not create the document. Document Code serial number is invalid.
        • User is trying to format a number for hi... (Solution 500000101441)
        • Sequence number / serial number is not increasing in document code
        • Sequence number is not increasing in document code / document code case sensitive
      • +Document Creation - ProjectWise Explorer Client
      • +Documentation & Help - ProjectWise Explorer Client
      • +Environments and Attributes - PWE
      • +Export / Import Tool - ProjectWise Explorer Client
      • +Folders / Subfolders - ProjectWise Explorer Client
      • +GUI - ProjectWise Explorer Client
      • +Installation - ProjectWise Explorer Client
      • +Integration - General
      • +Integration - AutoCAD - ProjectWise Explorer Client
      • +Integration - Civil 3D - ProjectWise Explorer Client
      • +Integration - DGN Platform - ProjectWise Explorer Client
      • +Integration - MicroStation - ProjectWise Explorer Client
      • +Integration - Office - ProjectWise Explorer Client
      • +Integration - Revit - ProjectWise Explorer Client
      • +Logs Troubleshooting- ProjectWise Explorer Client
      • +Messaging Service - ProjectWise Explorer Client
      • +MISC - ProjectWise Explorer Client
      • +Open / Save / Copy / Move - ProjectWise Explorer Client
      • +Photo Preview - ProjectWise Explorer Client
      • +ProjectWise Managed Workspaces
      • +Project - ProjectWise Explorer Client
      • +Search - ProjectWise Explorer Client
      • +Security and Permissions - ProjectWise Explorer Client
      • +User Tools - ProjectWise Explorer Client
      • +Views - ProjectWise Explorer Client
      • +Workflows & States - ProjectWise Explorer Client
      • +Network Configuration - Client
    • +ProjectWise Administrator
    • +ProjectWise Integration Server
    • +ProjectWise Caching Server
    • +ProjectWise Gateway Server
    • +ProjectWise User Synchronization Service
    • +ProjectWise Orchestration Framework
    • +ProjectWise Connected Services
    • +Working from Home with ProjectWise
    • +ProjectWise Glossary
    • ProjectWise Hosting - Manage Services
    • +ProjectWise Logging and Tools

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

    Sequence number / serial number is not increasing in document code

      Product(s): ProjectWise Explorer Client
    Version(s): 10.00.02.96
    Environment: SQL database, Windows Server 2012
    Area: Document Code
    Original Author: Arturas Zidonis, Bentley Technical Support Group

    Problem Description

    Creating new document and generating Serial number in Document Code it doesn’t increase the number and always generates serial number 0001 even if the document with this sequence number was created just now.

    Of cause trying to proceed and create document with ‘0001’ sequence number it gives an error message Last Error [58132] Can not create document. Code is already in use.

    The cause of this issue can be that one of the attributes length, that are in a document code, is too short. E.g. we have attribute ‘ASSET_CODE’ that length is only two symbols. That means in a database it will save only two symbols.

    However, I can have a pick list ‘CAR | CNS | DEV | MAR’ with the values that have more symbols and in that case it will save only two symbols to the database for this attribute even though we might think it’s saved the value that we see.

    When document code is generated we see that it have all three symbols CAR - ‘123-B-CAR-2DM-F-0001’. However next time when we will try to create new document and generate sequence number it will compare ASSET_CODE attribute ‘CAR’ with the one that is saved in a database ‘CA’. As it won’t match it will generate ‘0001’ as for a new doc code.

     

    Solution:

    Option 1. Change your pick list values or values in a look up tables so it had not more symbols that is defined in the database. (You can find what is the length of your attribute by exporting environment from ProjectWise Administrator to .aam file format and open that file with the Notepad application)

    Option 2. Increase the length of the attribute in a database.

    • Projectwise Explorer
    • serial number
    • sequence number
    • Document Code
    • Share
    • History
    • More
    • Cancel
    • Arturas Zidonis Created by Bentley Colleague Arturas Zidonis
    • When: Wed, Jul 26 2017 8:29 AM
    • Dana Guthrie Last revision by Bentley Colleague Dana Guthrie
    • When: Mon, Sep 26 2022 2:00 PM
    • Revisions: 5
    • 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