Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Incomplete
    • Affects Version/s: SVN trunk
    • Fix Version/s: SVN trunk
    • Component/s: commonext/setup
    • Labels:
      None

      Description

      this is seed only install
      used the ant to create a login
      then created a party for the login and linked them through the webtools.
      while creating the party I also create a postal and email contactmech.
      this created contactMechId 10001 and 10002
      then I went to setup to create the organization.
      on the save I got a error message:
      Error: ERROR: Could not complete the Create Contact Mechanism file:/applications/party/script/org/ofbiz/party/contact/ContactMechServices.xml#createContactMech process [problem creating the newValue value: Error while inserting: [GenericEntity:ContactMech][contactMechId,10002(java.lang.String)][contactMechTypeId,POSTAL_ADDRESS(java.lang.String)]
      cut

      (SQL Exception while executing the following:INSERT INTO public.CONTACT_MECH (CONTACT_MECH_ID, CONTACT_MECH_TYPE_ID, INFO_STRING, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?) (ERROR: duplicate key value violates unique constraint "pk_contact_mech"))] calling service createPartyPostalAddress in createOrganization

      have not dug into it yet.
      no one responded to email so put it here

        Issue Links

          Activity

          This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

          • Request to https://fisheye6.atlassian.com/ failed: Error in remote call to 'FishEye 0 (https://fisheye6.atlassian.com/)' (https://fisheye6.atlassian.com) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=OFBIZ-3908, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Failed to parse FishEye response: Error on line 10 of document : An invalid XML character (Unicode: 0x1a) was found in the element content of the document. Nested exception: An invalid XML character (Unicode: 0x1a) was found in the element content of the document.
          Jacopo Cappellato made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Incomplete [ 4 ]
          Gavin made changes -
          Link This issue depends upon OFBIZ-3935 [ OFBIZ-3935 ]
          Gavin made changes -
          Link This issue depends on OFBIZ-3935 [ OFBIZ-3935 ]
          Hide
          BJ Freeman added a comment -

          as soon a my current backlog is cleared up (ha ha ha) I will turn my attention to it

          Show
          BJ Freeman added a comment - as soon a my current backlog is cleared up (ha ha ha) I will turn my attention to it
          Hide
          Jacques Le Roux added a comment -

          Yes, sounds like a good idea

          Show
          Jacques Le Roux added a comment - Yes, sounds like a good idea
          Hide
          BJ Freeman added a comment -

          the simplest would be to assign numbers below 10000 range.
          what do you think

          Show
          BJ Freeman added a comment - the simplest would be to assign numbers below 10000 range. what do you think
          Hide
          Jacques Le Roux added a comment -

          When this will be done/fixed, please remove the patch applied from OFBIZ-3935

          Show
          Jacques Le Roux added a comment - When this will be done/fixed, please remove the patch applied from OFBIZ-3935
          Jacques Le Roux made changes -
          Link This issue depends on OFBIZ-3935 [ OFBIZ-3935 ]
          Hide
          Jacques Le Roux added a comment -

          OK, I think I have to see more to have an opinion

          Thanks for the explanation

          Show
          Jacques Le Roux added a comment - OK, I think I have to see more to have an opinion Thanks for the explanation
          Hide
          BJ Freeman added a comment -

          concept is the ant should be mostly technical stuff and a Setup should be mostly user stuff.
          I am not sure what you mean mixing Ant and Setup.

          My goal is to move way from loading ext data for setting up a Business as a norm.
          but have interactive screens that this data is entered.

          I am thinking in terms of a multi-tenat type operation, where once the base system is setup, someone would purchase from the Host a package in the ecommerce that would setup their db and seed data on the fly. then send them to a Setup pages to do the setup for their company.

          However for the first setup of the host and in this instance of adding Admin if someone wants to extend Ant to add a partyid and Partypreference and the associated roles and security so that MyPortal and Themes works That would seem correct to use Ant

          Show
          BJ Freeman added a comment - concept is the ant should be mostly technical stuff and a Setup should be mostly user stuff. I am not sure what you mean mixing Ant and Setup. My goal is to move way from loading ext data for setting up a Business as a norm. but have interactive screens that this data is entered. I am thinking in terms of a multi-tenat type operation, where once the base system is setup, someone would purchase from the Host a package in the ecommerce that would setup their db and seed data on the fly. then send them to a Setup pages to do the setup for their company. However for the first setup of the host and in this instance of adding Admin if someone wants to extend Ant to add a partyid and Partypreference and the associated roles and security so that MyPortal and Themes works That would seem correct to use Ant
          Hide
          Jacques Le Roux added a comment -

          Hi BJ,

          Is it safe to mix ant and the Setup UI? I'd have thought that users using UI are not seasoned and would not use ant. Maybe I miss something though, do you need to use ant before, and is that the reason? Anyway should we not try to separate things and have it all in Setup (ie add there if it's missing)

          Thanks

          Show
          Jacques Le Roux added a comment - Hi BJ, Is it safe to mix ant and the Setup UI? I'd have thought that users using UI are not seasoned and would not use ant. Maybe I miss something though, do you need to use ant before, and is that the reason? Anyway should we not try to separate things and have it all in Setup (ie add there if it's missing) Thanks
          Hide
          BJ Freeman added a comment -

          hopefully will be part of setup

          Show
          BJ Freeman added a comment - hopefully will be part of setup
          BJ Freeman made changes -
          Field Original Value New Value
          Link This issue is related to OFBIZ-635 [ OFBIZ-635 ]
          Hide
          BJ Freeman added a comment -

          my proposed way to fix this is add and SECA triggered by the login that checks for a party of that is linked to the login. this will work since all future logins will have a party created first.
          if no partyID found then is sent to the setup for a new person for the login then goes directly to the organization setup.

          Show
          BJ Freeman added a comment - my proposed way to fix this is add and SECA triggered by the login that checks for a party of that is linked to the login. this will work since all future logins will have a party created first. if no partyID found then is sent to the setup for a new person for the login then goes directly to the organization setup.
          BJ Freeman created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              BJ Freeman
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development