This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Modelbuilder deleting existing data in SewerGEMS already imported

Hi, I am in the process of modeling a city sewer system and I am importing multiple shapefiles via Modelbuilder to build the system. It was working well at first but as I continued to import new data a good portion of the existing data was modified or deleted, even if it was not connected/included within the shapefile being imported. How can I fix this so my existing data does not delete?

  • Hi Taylor,

    I'll add one more thing in case it applies.  You can import multiple shapefiles in one ModelBuilder connection.  The shapefiles need to be in the same folder.  When you Browse out and choose you datasource (in the first ModelBuilder step), hold down the [Ctrl] and click to select multiple shapefiles.

    Regards,

    Rob.

  • Hi Taylor, ModelBuilder works by connecting information in the external file to information in the model based on the "key field", which is typically the element label. There is a step in the ModelBuilder process where you specify what to use for this key field for both sides. So, my guess is that some of the existing data in your model has the same label (if that is what you are using as the key field) as some of the items in your Shapefile. This issue is described in more detail in the following article from our Wiki: Unexpected pipe connectivity after ModelBuilder import

    I would suggest checking the Field Mapping step in your ModelBuilder connection, review what you have chosen for the key field for each layer, and review the information in the key field on both sides for uniqueness. You will need to make sure that there are unique values in the key field used for your Shapefile, to ensure that subsequent sync-ins (imports) do not modify existing data that happened to have a matching label.


    Regards,

    Jesse Dringoli
    Technical Support Manager, OpenFlows
    Bentley Communities Site Administrator
    Bentley Systems, Inc.