How-to: Solve Toolkit error 7331

Discussion in 'C-Bus Toolkit and C-Gate Software' started by daniel, May 2, 2013.

  1. daniel

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    770
    Likes Received:
    21
    Location:
    Adelaide
    Problem
    When you browse to a network in Toolkit you receive an error 7331 message:

    Okay, except... the "Repair Projects" feature is disabled in Toolkit 1.12.x!

    Cause
    This seems to affect people that have upgraded projects from much older versions of Toolkit. We're not sure what causes the duplicate groups, but we understand it can be annoying.

    Solution
    We have an open ticket (#23401) to bring "Repair Projects" back. Until then see below for the workaround.

    Removing Duplicate Groups From Your Project File

    These instructions will modify your project file to remove duplicate group addresses within each application, keeping the first instance of each group address.

    NOTE: Be warned that you may lose your preferred tagname and you should review your data afterwards.

    Example:
    &lt;Group>&lt;Address>42&lt;/Address>&lt;TagName>Group 42&lt;/TagName>&lt;/Group> <-- will be kept
    &lt;Group>&lt;Address>42&lt;/Address>&lt;TagName>Kitchen&lt;/TagName>&lt;/Group> <-- will be removed

    In the steps below, wherever you see &lt;project>, substitute your project name.

    Steps:
    1. Download the attached file tidyduplicategroups.xslt.zip, unzip it and place it in your C-Gate /transform directory.
    2. <b>IMPORTANT</b>: Back up &lt;project>.xml file found in C-Gate's /tag directory to somewhere else!
    3. Shut down Toolkit and restart C-Gate to ensure nothing is accessing the project file.
    4. Start > Programs > Clipsal > C-Gate > Connect to C-Gate (or run 'telnet localhost 20023') to create a command connection
    5. Type the C-Gate command exactly as follows (substituting your project name):
    TRANSFORM PROJECT &lt;project> transform/tidyduplicategroups.xslt
    6. it may take a few seconds but you should see a "200 OK." response.
    7. In the /tag directory, &lt;project>.xml should now have the duplicate groups removed. &lt;project>.xml.old should be your original file. You are strongly encouraged to compare the two files to verify the duplicate groups are removed and no other data is lost.
    8. Run Toolkit and browse to the network that had duplicate groups. The error 7331 should not appear this time.
     
    Last edited by a moderator: Oct 23, 2013
    daniel, May 2, 2013
    #1
  2. daniel

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    770
    Likes Received:
    21
    Location:
    Adelaide
    The "Repair Project" feature has been re-instated in C-Bus Toolkit 1.12.7 and this workaround is not needed any more.

    This thread is now unstickied but will be kept for historical interest.
     
    daniel, Oct 23, 2013
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.