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

Exporting to INP error

Hello,

Every time I try and export my scenario to an inp I get the error "Object reference not set to an instance of an object." I downloaded the latest version of watergems today and tried again - same error. It only exports my junctions. Any help would be appreciated.

Thanks

  • Taylor,

    Unfortunately we're not able to reproduce this issue with that version, either before or after applying the latest related cumulative patch set. Most likely there is something different between your workflow or computer and ours. Please provide the following information to help troubleshoot:

    1) Are you certain that you sent us the correct model file? Maybe try re-sending, this time using the File > Save to Package option (sending us the resulting ZIP file) Please also identify the scenario you have active when exporting.

    2) In case one of the supporting files is somehow interfering, please try copying only the .WTG and .WTG.SQLITE files to a new folder on your local hard drive (such as your Desktop or My Documents), re-open it and try exporting again (with the ID option).

    3) Try opening WaterGEMS by right clicking on the shortcut and choosing "run as administrator", then try exporting again.

    4) Try choosing a different location to save the exported INP file, and choose a simple name to see if it makes a difference. For example "test.inp" on your desktop.


    Regards,

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

  • 1) I am certain but can definitely resend. Scenario - Alternate 2, MDD

    2) Tried this, same error. Also sent it over to a coworker, he got the same error when he tried to export.

    3) Unfortunately my firm does not let me run it as an administrator.

    4)  Tried to save it to desktop and named it test.inp...same error.

    I told our client I would send them the inp weeks ago...if it does work on yall's end is there a possibility that y'all could send me the inp for the Alternate 2 MDD scenario?

    Thanks for your help!

  • Hi Taylor - the scenario name was the key. In the model you had sent, the active scenario was set to "Existing System" which does not exhibit the problem. When I switch to the one you just mentioned "MDD" within the "EST Rehab- Alternate 2" scenario, I get the same error when trying to export to EPANET.

    The problem appears to be due to hydropneumatic tank HT-1, which is present in the scenario in question but inactive in the one you had set current when you sent the model. From my testing, it appears that this happens in any model that has a hydropneumatic tank. I will report this to our development team but in the meantime, you may need to approximate this element as a different element. Hydropneumatic tanks are not an available element type in EPANET itself so some assumptions must be made on export, and equivalent results cannot be expected in EPANET. If you are sending the INP file to someone who does not have WaterGEMS, be sure to mention this limitation and the following related article: What are the limitations of importing/exporting EPANET files?

    As a workaround to be able to export the model, try morphing the hydropneumatic tank as a regular tank, and configure the diameter and elevations to be roughly equivalent (see "constant area approximation" mentioned here). 


    Regards,

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

    Answer Verified By: Taylor Townes 

  • Fantastic, thank you so much!