Publication IDs range from 1 to the PublicationCount value, inclusively.
Note
Publication IDs and counts may change during a schema upgrade. To correctly identify a publication, access it by name or
refresh the cached IDs and counts after a schema upgrade.