4 Replies Latest reply on Oct 12, 2017 2:48 AM by jyi

    Changing PI tag names without losing data

    andymai

      Hello everyone,

       

      I need to rename some PI tags without losing historical data. Is it possible to change the tag names directly (using PI SMT or PI Builder, Edit only). Another option is to create new tags, backfill data from the existing tags to the new ones, and then remove the old tags. How will the new tag names affect my analysis and event frame (and attributes), if I do and don't rerun and backfill the analysis?

       

      Anyone has done that before, can you please share your experience? Thank you!!!

       

      Andy M

        • Re: Changing PI tag names without losing data
          tramachandran

          You can rename PI Points directly without losing any historical data (Every point has an associated Point ID, which is a unique number that identifies the point internally. PointID is never reused, even when a point is deleted).

          Changing point names: To change a point name, use the Point Builder tool in System Management Tools ( Points > Point Builder ), PI Builder, or the piconfig utility. With PI Builder and piconfig, use the NewTag attribute in the PIPoint table.

          Note: Many client applications, such as PI ProcessBook, automatically update point names. However, you might have to update some programs that retrieve data, such as PI DataLink spreadsheets.

          Refer to KB01027 for impact on the client applications.

          PI AF knows both tag and PointID. But since the AF configuration is a string, import will provide the string with the original tag, and subsequent export will break the link because the original tag is not found due to the rename. Therefore, updating PI Point Data References in AF (either through PI System Explorer or PI AF Builder in Excel) to reflect the new tagname should be part of the tag renaming process. Otherwise, custom code is required to update the configuration string where tag has been changed to avoid accidental breakage, for example, import and re-export of the strings.

          1 of 1 people found this helpful
          • Re: Changing PI tag names without losing data
            gmichaud-verreault

            If performing the name change using PI Builder (Excel), you will want to set the new name in the newname column. Otherwise, you would end up creating a new PI Point.

            --

            Gabriel

            1 of 1 people found this helpful