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": []

}

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!
  • We created a ticket in Support. They sent us back here. Anyone know what we can do with this issue?
  • Hello,

    Is this the issue fixed or still pending? I am getting the same error message.

    Thank you,

  • We are still running into this issue