Xero-NetStandard icon indicating copy to clipboard operation
Xero-NetStandard copied to clipboard

Error with GetOrganisationsAsync using LLC (S corporation) as Business structure

Open beeyee0401 opened this issue 8 months ago • 7 comments

SDK you're using (please complete the following information):

  • Version 9.2.0

Describe the bug Getting an API exception in IAccountingApiAsync.GetOrganisationsAsync Error converting value "SCORPORATIONLLC" to type 'Xero.NetStandard.OAuth2.Model.Accounting.Organisation+OrganisationTypeEnum'. Path 'Organisations[0].OrganisationType', line 13, position 43.","Data":{},"StackTrace":" at Xero.NetStandard.OAuth2.Client.CustomJsonCodec.d__7.MoveNext()\r\n---

To Reproduce Steps to reproduce the behavior:

  1. Set Business structure in Organization details to "LLC (S corporation)"
  2. Save
  3. Call GetOrganisationsAsync from the .NET SDK
  4. See error

Expected behavior Org is retrieved successfully

Additional context I know we're behind on our version, but it seems like this could still happen in current version unless there's different handling in the JSON deserialization

beeyee0401 avatar Mar 27 '26 21:03 beeyee0401

PETOSS-923

github-actions[bot] avatar Mar 27 '26 21:03 github-actions[bot]

Thanks for raising an issue, a ticket has been created to track your request

github-actions[bot] avatar Mar 27 '26 21:03 github-actions[bot]

We are experiencing the same issue. We have customers that can't connect to Xero. When can we expect a fix?

LucasRodriguez0302 avatar Apr 07 '26 01:04 LucasRodriguez0302

Please note that the same error occurs with value "PARTNERSHIPLLC"

MarcoTradify avatar Apr 07 '26 02:04 MarcoTradify

Same here, customers of that org. type can't connect to Xero.

qtahar avatar Apr 10 '26 13:04 qtahar

Hi guys, same here for IAccountingApiAsync.GetOrganisationsAsync (SDK ver 14.0.0), please see details below:

Xero.NetStandard.OAuth2.Client.ApiException Error converting value "ULTRA" to type 'Xero.NetStandard.OAuth2.Model.Accounting.Organisation+ClassEnum'. Path 'Organisations[0].Class', line 33, position 22.

johnymotorhead avatar Apr 14 '26 22:04 johnymotorhead

It appears the APIs are also broken for SINGLEMEMBERLLC

qtahar avatar Apr 16 '26 07:04 qtahar