Value was either too large or too small for an Int32 in List Account Codes endpoint
Hi,
For one of the our customer we are trying to call below endpoint
And the endpoint returns the following error response
{
"Error": "failed to get account codes",
"Details": [
"Value was either too large or too small for an Int32."
],
"ErrorPath": null
}
We kindly request your immediate assistance in diagnosing and resolving this issue.
Comments
-
@Nikunj Prajapati
I have no problem making this call, which basically is just a list all account code API endpoint.You are going to have to provide a little more details on how you are making the call.
For us, account code is 4 digits only, the “value” returned is INT32, which can hold up to 9-10 digits of integer, so unless your client configured account codes to have more digits, which is hard to imagine being the case.
0 -
@Alex Wong yes so in our case the customer has set 13 character long account code.
0 -
@Nikunj Prajapati
I see. Then your customer's problem cannot be resolved easily. They will likely need to open a Blackbaud support case.@Erik Leaver @Ben Wong looking at the FE database schema, it appears that SKY API made a mistake here.

while GL7ACCOUNTCODESID is an INTEGER data type, this is not the account code value. ACCOUNTCODE is, which is defined as a VARCHAR(30). Meaning up to 30 characters, which definitrely is too big for a INT32 data type used to store the value

this “value” probably should be defined as string data type, but i'm not sure how you can fix this without causing a regression for all others who have used FE SKY API expecting a INT32 from value.
0 -
@Alex Wong @Nikunj Prajapati INTeresting…that does appear to be an oversight. I'll ask the FE team to confirm. In the meantime, it's best to get a support case created so that this issue can be tracked in our systems. Thanks for the catch!
0 -
@Alex Wong @Nikunj Prajapati The FE team confirmed that this is a bug and they plan to address this soon. No specific date but it should be within a month or so. Thanks for helping us find the bug!
1 -
@Alex Wong @Nikunj Prajapati This issue should now be resolved. We've made the following update to this endpoint:
- A new property,
account_code_value, has been introduced as a replacement forvalue. - To avoid potential datatype or length-related issues, please use
account_code_valueinstead ofvalue. - The
valueproperty will remain available but is now considered deprecated. While it won't cause errors, it will return0if the account code length exceeds the supported limit.
Thanks for the feedback. Should you encounter any issues or require further assistance, please let us know.
1 - A new property,
Categories
- All Categories
- 6 Blackbaud Community Help
- 206 bbcon®
- 1.4K Blackbaud Altru®
- 394 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 357 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 561 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.6K SKY Developer
- 242 ResearchPoint™
- 117 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 777 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)

