Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if rec['RECORDID'] == subrecordDict['RECORDID']: TypeError: string indices must be integers #3

Open
GoogleCodeExporter opened this issue Mar 18, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

I'm trying different finds using pyfilemaker where the only difference in
the find is value of the field I'm looking for. But some of them return
results just find and others return the following error:

Traceback (most recent call last):
  File "<pyshell#37>", line 1, in <module>
    record = fm.doFind({u'productid':9310,})
  File "build\bdist.win32\egg\PyFileMaker\FMServer.py", line 315, in doFind
    return self._doAction( '-find' )
  File "build\bdist.win32\egg\PyFileMaker\FMServer.py", line 533, in _doAction
    result = FMResultset.FMResultset( result )
  File "build\bdist.win32\egg\PyFileMaker\FMResultset.py", line 37, in __init__
    self.doParseResultset()
  File "build\bdist.win32\egg\PyFileMaker\FMResultset.py", line 118, in
doParseResultset
    if rec['RECORDID'] == subrecordDict['RECORDID']:
TypeError: string indices must be integers

The commands I'm running are:

record = fm.doFind({u'productid':9792,}) <-- works
record = fm.doFind({u'productid':9310,}) <-- doesn't

Obviously this won't be very useful without the actual xml response but I'd
prefer to email the files to the project leaders rather than post them
publically.

Original issue reported on code.google.com by AndrewOf...@gmail.com on 9 Sep 2008 at 11:53

@SnapshotCiTy
Copy link

is this workaround part of the 'official' code now - or should we patch it on each installation (i'm installing using pip)

Does it mean that any layout containing portals would / could return results that would cause errors?

How do you access the list of records that are inside a portal? It seems to only return one value per field / per portal.

I now that's 3 questions in one comment - but any help is appreciated ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants