Post Invoice "Object reference not set to an instance of an object."
We are probably on our 25th client using the integration but this one we are getting :
{
"Error": "Failed to save invoice",
"Details": [
"Object reference not set to an instance of an object."
],
"ErrorPath": null
}
I have tried with and without the custom fields, I have tried with and without the transaction codes.
I did notice on the front end UI
this amount field that is required

As well as an interfund dropdown value also required.
I entered this same invoice via the UI front end without issue, but I know a lot of actions take place behind the scenes, but when pull the invoice entered out via the get call nothing looks different minus the fields populated when say the vendorid is passed.
Payload
{
"vendor_id": 5981,
"invoice_number": "I200750159",
"approval_status": "Approved",
"invoice_date": "2021-05-26T00:00:00",
"due_date": "2021-06-25T00:00:00",
"amount": 1742.55,
"description": "GCN fulfillment, May 2021",
"post_status": "NotYetPosted",
"post_date": "2021-05-27T00:00:00",
"distribute_discounts": false,
"payment_details": {
"create_separate_payment": false,
"hold_payment": true,
"payment_method": "EFT",
"paid_from":"RBC Chequing",
"remit_to": {
"address_id": 48481
}
},
"Distributions": [
{
"amount": 101.16,
"description": "",
"account_number": "01-2000-14-00-00",
"type_code": "Credit",
"distribution_splits": [
{
"ui_project_id": "",
"amount": 101.16,
"account_class":"Unrestricted Net Assets",
"transaction_code_values": []
}
]
},
{
"amount": 101.16,
"description": "",
"account_number": "01-1202-14-00-00",
"type_code": "Debit",
"distribution_splits": [
{
"ui_project_id": "",
"amount": 101.16,
"account_class":"Unrestricted Net Assets",
"transaction_code_values": [
{
"name": "Donor -Constituents requiring reporting from RE",
"value": ""
}
]
}
]
},
{
"amount": 38.55,
"description": "",
"account_number": "01-2000-14-00-00",
"type_code": "Credit",
"distribution_splits": [
{
"ui_project_id": "",
"amount": 38.55,
"account_class":"Unrestricted Net Assets",
"transaction_code_values": []
}
]
},
{
"amount": 1602.84,
"description": "",
"account_number": "01-5101-14-02-22",
"type_code": "Debit",
"distribution_splits": [
{
"ui_project_id": "90140",
"amount": 1602.84,
"account_class":"Unrestricted Net Assets",
"transaction_code_values": [
{
"name": "Donor -Constituents requiring reporting from RE",
"value": ""
}
]
}
]
},
{
"amount": 1602.84,
"description": "",
"account_number": "01-2000-14-00-00",
"type_code": "Credit",
"distribution_splits": [
{
"ui_project_id": "",
"amount": 1602.84,
"account_class":"Unrestricted Net Assets",
"transaction_code_values": []
}
]
},
{
"amount": 38.55,
"description": "",
"account_number": "01-1201-14-00-00",
"type_code": "Debit",
"distribution_splits": [
{
"ui_project_id": "",
"amount": 38.55,
"account_class":"Unrestricted Net Assets",
"transaction_code_values": [
{
"name": "Donor -Constituents requiring reporting from RE",
"value": ""
}
]
}
]
}
],
"custom_fields": [
{
"field_name": "Activity Type",
"value": "",
"is_required": false,
"date": "2021-05-27T00:00:00"
},
{
"field_name": "Program Agreement Number",
"value": "",
"is_required": false,
"date": "2021-05-27T00:00:00"
},
{
"field_name": "Program Classification",
"value": "",
"is_required": false,
"date": "2021-05-27T00:00:00"
},
{
"field_name": "Program -External",
"value": "None",
"comments": "GCN fulfillment May 2021",
"is_required": false,
"date": "2021-05-27T00:00:00"
}
],
"form_1099_box_numbers": []
}
{
"Error": "Failed to save invoice",
"Details": [
"Object reference not set to an instance of an object."
],
"ErrorPath": null
}
I have tried with and without the custom fields, I have tried with and without the transaction codes.
I did notice on the front end UI
this amount field that is required

As well as an interfund dropdown value also required.
I entered this same invoice via the UI front end without issue, but I know a lot of actions take place behind the scenes, but when pull the invoice entered out via the get call nothing looks different minus the fields populated when say the vendorid is passed.
Payload
{
"vendor_id": 5981,
"invoice_number": "I200750159",
"approval_status": "Approved",
"invoice_date": "2021-05-26T00:00:00",
"due_date": "2021-06-25T00:00:00",
"amount": 1742.55,
"description": "GCN fulfillment, May 2021",
"post_status": "NotYetPosted",
"post_date": "2021-05-27T00:00:00",
"distribute_discounts": false,
"payment_details": {
"create_separate_payment": false,
"hold_payment": true,
"payment_method": "EFT",
"paid_from":"RBC Chequing",
"remit_to": {
"address_id": 48481
}
},
"Distributions": [
{
"amount": 101.16,
"description": "",
"account_number": "01-2000-14-00-00",
"type_code": "Credit",
"distribution_splits": [
{
"ui_project_id": "",
"amount": 101.16,
"account_class":"Unrestricted Net Assets",
"transaction_code_values": []
}
]
},
{
"amount": 101.16,
"description": "",
"account_number": "01-1202-14-00-00",
"type_code": "Debit",
"distribution_splits": [
{
"ui_project_id": "",
"amount": 101.16,
"account_class":"Unrestricted Net Assets",
"transaction_code_values": [
{
"name": "Donor -Constituents requiring reporting from RE",
"value": ""
}
]
}
]
},
{
"amount": 38.55,
"description": "",
"account_number": "01-2000-14-00-00",
"type_code": "Credit",
"distribution_splits": [
{
"ui_project_id": "",
"amount": 38.55,
"account_class":"Unrestricted Net Assets",
"transaction_code_values": []
}
]
},
{
"amount": 1602.84,
"description": "",
"account_number": "01-5101-14-02-22",
"type_code": "Debit",
"distribution_splits": [
{
"ui_project_id": "90140",
"amount": 1602.84,
"account_class":"Unrestricted Net Assets",
"transaction_code_values": [
{
"name": "Donor -Constituents requiring reporting from RE",
"value": ""
}
]
}
]
},
{
"amount": 1602.84,
"description": "",
"account_number": "01-2000-14-00-00",
"type_code": "Credit",
"distribution_splits": [
{
"ui_project_id": "",
"amount": 1602.84,
"account_class":"Unrestricted Net Assets",
"transaction_code_values": []
}
]
},
{
"amount": 38.55,
"description": "",
"account_number": "01-1201-14-00-00",
"type_code": "Debit",
"distribution_splits": [
{
"ui_project_id": "",
"amount": 38.55,
"account_class":"Unrestricted Net Assets",
"transaction_code_values": [
{
"name": "Donor -Constituents requiring reporting from RE",
"value": ""
}
]
}
]
}
],
"custom_fields": [
{
"field_name": "Activity Type",
"value": "",
"is_required": false,
"date": "2021-05-27T00:00:00"
},
{
"field_name": "Program Agreement Number",
"value": "",
"is_required": false,
"date": "2021-05-27T00:00:00"
},
{
"field_name": "Program Classification",
"value": "",
"is_required": false,
"date": "2021-05-27T00:00:00"
},
{
"field_name": "Program -External",
"value": "None",
"comments": "GCN fulfillment May 2021",
"is_required": false,
"date": "2021-05-27T00:00:00"
}
],
"form_1099_box_numbers": []
}
0
Comments
-
Hi Frank,
This looks like a bug, so would you mind contacting Blackbaud Support to file a ticket so this issue can get routed to the appropriate team?
Thanks!0 -
We created a ticket in Support. They sent us back here. Anyone know what we can do with this issue?0
-
Hello,
Is this the issue fixed or still pending? I am getting the same error message.
Thank you,
0 -
We are still running into this issue
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 209 bbcon®
- 1.4K Blackbaud Altru®
- 395 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 359 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 563 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.7K SKY Developer
- 243 ResearchPoint™
- 118 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
- 779 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)
