-
Notifications
You must be signed in to change notification settings - Fork 208
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
xero.exceptions.XeroBadRequest: PostDataInvalidException: The string 'False' is not a valid Boolean value. #142
Comments
Possibly these two fields need to be included in BOOLEAN_FIELDS |
If I understand, I agree and think that there are several other fields that should be added to the Boolean Field list. If I do a simple "item = xero.items.get(productcode), then "item['Name']='New product name'", then xero.items.save(item), I get this same error message. Since Xero gave me "True" as a boolean, I shouldn't have to alter any other values in posting this back. item = {u'ItemID': u'b5442fbe-e515-4913-aee4-e496a2e3bx33', u'Code': u'Prod2', u'Description': u'Demo Product Two', u'SalesDetails': {}, u'UpdatedDateUTC': datetime.datetime(2016, 8, 18, 18, 31, 6, 110000), u'IsPurchased': True, u'IsTrackedAsInventory': False, u'IsSold': True, u'PurchaseDetails': {}, u'ValidationErrors': []} pyxero 0.8.0 in python 2.7.5 |
Add IsReconciled, EnablePaymentsToAccount and ShowInExpenseClaims to BOOLEAN_FIELDS. This fixes issue freakboy3742#142
There are still some boolean Item fields which are missing from BOOLEAN_FIELDS tuple which cause this issue to occur. pyxero 0.9 in python 3.6.3 |
Pull request #205 created. |
Add IsReconciled, EnablePaymentsToAccount and ShowInExpenseClaims to BOOLEAN_FIELDS. This fixes issue freakboy3742#142
results in
xero.exceptions.XeroBadRequest: PostDataInvalidException: The string 'False' is not a valid Boolean value.
pyxero 0.8.0 in python 3.5.1
The text was updated successfully, but these errors were encountered: