Menu

#12 conv2QualifierStruct: LoadQualifier failed!

v1.0_(example)
closed
Ergorion
None
1
2020-07-11
2019-01-10
elubrtowone
No

Hi, respectable developer. The following question is met by me and another guy on the stackoverflow. I don't have much details but only:

conv2QualifierStruct: LoadQualifier failed!

above is the error text it gave. It happens once a while. For more please refer to the question:
pyars issue when get data from remedy database
. It is guessed that this is caused by unstable connection to the db of ARS.
If anyone is out of this problem, please give some help, which is tryly appreciated.

Discussion

  • Ergorion

    Ergorion - 2019-01-13

    Unfortunately, you give little details for the call itself. e.g. It is unclear, how schema, query and fields are set. In addition, the erARS class does not contain a _db_login method. If you are using this method to just login to the database, then it is obvious that GetListEntryWithFields will fail, because it needs a connection to the Action Request System server. But you write, that sometimes it works, sometimes it does not.

    Please provide more details so that I can try to answer your question. Axel

     
  • Ergorion

    Ergorion - 2019-01-13

    The last response was my answer to the question on stack overflow that you quoted.
    Still, I cannot help you with this little information...

    Axel

     
  • elubrtowone

    elubrtowone - 2019-01-14

    Very much appreciate your response here. I will give my code in part as below:

    First, the below two lines of code try to log into the server and use a method to retrieve the Issues.

    remedy = myRemedy.Remedy(configure['auth']['username'], configure['auth']['password'], server=configure['auth']['server'], logger=logger, constraint=configure['constraint'])
    found = remedy.getIssuesFromSupervisorFullName(configure['supervisor'])
    

    Then it goes to the method it calls, which has only one line, returning the result given by another method.

    def getIssuesFromSupervisorFullName(self, supervisorFullName):
        return self._api.getEntriesFromQuery('Specific Text for Issue Tracking', self.cons(self.getDirectReportEmployeesQuery(supervisorFullName, 'Assigned-to')))
    

    Below gives another mehtod it uses:

    def getEntriesFromQuery(self, schemaName, query, fieldIds=None, sortList=None):
        schema = self.getSchema(schemaName)
        if not fieldIds:
            fieldIds = filter(lambda x: x not in self.FIELD_ID_WORKAROUND_SCHEMA.get(schemaName, self.DICT_NONE) and x not in self.FIELD_ID_WORKAROUND, schema.fieldIdList)
        entryList = self.GetListEntryWithFields(schema.name, str(query), fieldIds, sortList)
        return [Entry(schema=schema, id_=entry[0], data=entry[1]) for entry in entryList[0]]
    
    def getDirectReportEmployeesQuery(self, supervisorFullName, field):
        entryList = self._api.getEntriesFromQuery('Specific Text for Tracking', self.queryEqual('Direct Manager', supervisorFullName))
        return '(' + ' OR '.join([self.queryEqual(field, name) for name in [entry['Full Name'] for entry in entryList] + [supervisorFullName, ]]) + ')'
    

    Then as I said, the error itself only occurs from time to time, so I will give the error info later.

     

    Last edit: elubrtowone 2019-01-14
  • Anonymous

    Anonymous - 2019-05-27

    I also hit this issue sometimes and i am sure my usage has no issue.

    backtrace:
    (entries, num) = ars.GetListEntryWithFields(schema, query, fields, None)
    File "c:\users\admini~1\appdata\local\temp\easy_install-x_sfek\pyars-1.8.2-py2.7-win32.egg.tmp\pyars\erars.py", line 3546, in GetListEntryWithFields
    File "c:\users\admini~1\appdata\local\temp\easy_install-x_sfek\pyars-1.8.2-py2.7-win32.egg.tmp\pyars\erars.py", line 470, in conv2QualifierStruct
    pyars.erars.ARError: An WARNING (0) occured: None

     
  • Ergorion

    Ergorion - 2019-05-30

    I haven 't used pyARS in a while. If I remember correctly, the server sometimes -- surpsisingly -- raised this warning.

    Can't you catch the exception, and simply retry the call?

    Hope this helps...

     
  • Ergorion

    Ergorion - 2020-07-11
    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB