Number (auto-increment) does not work after deployment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vincent
    Senior Member
    • May 2017
    • 176

    Number (auto-increment) does not work after deployment

    I have create an entity A in the development env and there is a Number (auto-increment) field, Num, in it.

    And then it is deployed to production env but i found that that number field does not work in production env (it is always "None")

    Deployment:
    Copy all A.* in custom\Espo\Custom folder (and it sub-folders) of development to same folders in production env.


  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    1) did you rebuild the system?
    2) the value is set after record is created (only for new records) and can't be set for existing records

    Comment

    • Vincent
      Senior Member
      • May 2017
      • 176

      #3
      1. i have rebuilt the system.
      2. Num field in new record shows None

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        go to the Entity Manager > your entity > Fields > Num > change Next Number and set needed again.
        For example, it has to be 1 and now is 1.
        Set 2 -> Save -> set 1 again -> save
        Last edited by tanya; 05-16-2018, 12:20 PM.

        Comment

        • Vincent
          Senior Member
          • May 2017
          • 176

          #5
          Thank you.

          Comment

          Working...