Perl script error: Can't locate object method "getError"

Posted on 2011-04-22
Last Modified: 2012-06-21
I have two servers running a script. one server works fine and the other gets an error. The perl directories on both servers are identical.

here is the error:
Can't locate object method "getError" via package "Sms::DbUtils" at
 line 286.

here is that part of teh code:
sub retrieveConfiguration_new
      my ($db,$t_config,$system_id,$configName,$logFileName) = @_;
      my ($data_type, $value1, $value2);
      my $sql = "SELECT data_type, value1, value2 FROM $t_config WHERE system_id = '$system_id' AND name = '$configName' AND enabled = '1'";      
      my %row = $db->getRow($sql);
      $dbError = $db->getError();                <-- this is line 286
      if ($dbError!~/^\s*$/)
Question by:satmetrix_it

    Accepted Solution

    I was able to figure it out. I was missing an environment variable.

    perllib value=./perlmod;../perlmod

    Author Closing Comment

    This was teh fix.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Introduction This article is designed to assist GIS (Geographic Information System) and GPS (Global Positioning System) developers using ESRI ArcGIS and other spatial information management systems.   For the uninitiated the concept of projectio…
    Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  ( Here (http…
    This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
    This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now