2 Replies Latest reply on Sep 18, 2019 2:42 AM by Vishnu Parihar

    TPL working partially

    Vishnu Parihar
      Share This:

      Greeting !

       

      I am working on a custom TPL and trying to read the data from Unix box present in a directory in abc.rtx file.

      TPL is working almost 90%. This is not working for a particular attribute. Example given below:

       

          if Room <> "" then

                Room := text.upper(Room);

                //log.debug ("Unix_SoftData: Room = %Room%");

                     if Room <> "" and Room matches 'VIRTUAL' then

                          log.debug("Unix_SoftData: Enter valid Room, Room found as %Room%");

                          Room := "Not valid Room";

                     else

                          Room := Room;

                          log.debug ("Unix_SoftData: Room = %Room%");

                     end if;

               else

                     Room := "Unknown";

                     list.append(missingValuesList,"Room");

                     log.debug ("Unix_SoftData: Room not found");

           end if;

       

      Above mentioned code in not working.

       

       

      But if could see the code mentioned below....working fine, I am not able to troubleshoot it.

       

          if RackLocation <> "" then

                RackLocation := text.upper(RackLocation);

                //log.debug ("Unix_SoftData: RackLocation = %RackLocation%");

                     if RackLocation <> "" and RackLocation matches 'VIRTUAL' then

                          log.debug("Unix_SoftData: Enter valid RackLocation, RackLocation found as %RackLocation%");

                          RackLocation := "Not valid RackLocation";

                     else

                          RackLocation := RackLocation;

                          log.debug ("Unix_SoftData: RackLocation = %RackLocation%");

                     end if;

               else

                RackLocation := "Unknown";

                list.append(missingValuesList,"RackLocation");

                log.debug ("Unix_SoftData: RackLocation not found");

           end if;

       

      For the hint I also mentioned the snap of data present in Unix file abc.rxt. -

       

       

      Output of TPL:

          5815ms: Unix_SoftData: Room not found

           5815ms: Unix_SoftData: Enter valid RackLocation, RackLocation found as Virtual

       

      why Room is not reading data from file ?