Network Well Definition
the network well definition links wells to the network the sourceid must match a sourceid in the well docid\ p xhbe4jqkjqemay7aol5 table — records referencing an unknown well are rejected the unique constraint on network well definitions is sourcenetworkid + sourceid (and since sourceid must match a well sourceid, it is globally unique by proxy) re posting the same network and well upserts the existing record variable data type unit of measure is nullable? default value description sourcenetworkid string no source id of the network header docid\ irxj rg5leh701vw2okjl the well belongs to sourceid string no source id for the well definition must match the sourceid of a record in the well docid\ p xhbe4jqkjqemay7aol5 table date datetimeoffset no date at which the well becomes part of the network datetime offset (with timezone) in iso 8601 format example 2022 09 27t16 28 37 +0000 downstreamsourceid string no source id of the downstream node most commonly a network pipe definition docid\ nm2btvsv7haiitak2o9yw sourceid upstreamsourceid string yes if there is gas lift injection in the well, this connects the well to the upstream injection network enabled bool no whether the well should participate in the network (false is the equivalent of a mask in gap) data integrity checks condition response any non nullable field is null or empty record rejected sourcenetworkid does not match a network header record rejected sourceid does not exist in the well table record rejected common error messages api scenario error response add / upsert network well unknown sourcenetworkid network was not found for source id xxx add / upsert network well unknown well sourceid well with sourceid of xxx was not found

