MYOBCommunity
Partner Zone
|
|
Partner Zone

Where is the "EventId" that must be limited to 8 characters when inserting an Item Bill through the SDK?

2 REPLIES
Partner Phil_Jeffrey_KC
3 Posts
Partner
Australia
Phil_Jeffrey_KC

3Posts

0Kudos

0Solutions

Re: Where is the "EventId" that must be limited to 8 characters when inserting an Item Bill through the SDK?

Yep, getting the same issue in the API as well.

Contributing Partner Goldie
6 Posts
Contributing Partner
Goldie
Contributing Partner

6Posts

0Kudos

0Solutions

Re: Where is the "EventId" that must be limited to 8 characters when inserting an Item Bill through the SDK?

I getting the same issue using the API.  Do you kow where it is coming from?

Partner dazzle
5 Posts
Partner
dazzle
Partner

5Posts

1Kudos

0Solutions

Where is the "EventId" that must be limited to 8 characters when inserting an Item Bill through the SDK?

I'm insering a number of Item Bills using the SDK and most of them work, However a number come back with:

 

Encountered a validation error (https://ar1.api.myob.com/accountright/{GUID deleted}/Purchase/Bill/Item/?returnBody=true)

 

There are always 2 "StringLengthExceeded" errors and always with AdditionalDetails "EventId" and "InventoryEventId" with the same Message: "Maximum allowed characters for [AdditionalDetails] is 8".

 

I'm buggered if I can see anywhere in the ItemBill object anything that looks like "EventId" and "InventoryEventId" so these look like private fields/properties.

 

What's going on?

 

This is an example of the data in one of the purchases:

 

AppliedToDate: 0
BalanceDueAmount: 0
BillDeliveryStatus: Nothing {0}
BillType: Service {0}
Category: Nothing
Comment (MYOB.AccountRight.SDK.Contracts.Version2.Purchase.Bill): """""" & vbCrLf & """Shane"""
Comment: """""" & vbCrLf & """Shane"""
Created: Nothing
[Date] (MYOB.AccountRight.SDK.Contracts.Version2.Purchase.Bill): #7/9/2018 12:00:00 AM#
[Date]: #7/9/2018 12:00:00 AM#
ETag: Nothing
Freight: Nothing
FreightTaxCode: {MYOB.AccountRight.SDK.Contracts.Version2.GeneralLedger.TaxCodeLink}
InsertNewJobs: True
IsReportable: Nothing
IsTaxInclusive: False
JournalMemo: Nothing
LastModified: Nothing
LastPaymentDate: Nothing
Lines (MYOB.AccountRight.SDK.Contracts.Version2.Purchase.BillWithLines(Of MYOB.AccountRight.SDK.Contracts.Version2.Purchase.ItemBillLine)): Count = 2
Lines: Count = 2
Link: {MYOB.AccountRight.SDK.Contracts.Version2.Purchase.BillLink}
Number (MYOB.AccountRight.SDK.Contracts.Version2.Purchase.Bill): "311SB0198"
Number: "311SB0198"
ODataFilter: "(SupplierInvoiceNumber eq '53652555/001' and Date eq datetime'2018-07-09' and Supplier/UID eq guid'8c62b7d8-d517-4341-9543-345471eb074b')"
[Order]: Nothing
PromisedDate: Nothing
RowVersion: Nothing
ShipToAddress (MYOB.AccountRight.SDK.Contracts.Version2.Purchase.Bill): "MORRELL PLUMBING" & vbCr & "KNOX GRAMMER 7 WOODVILLE ST" & vbCr & "WAHROONGA"
ShipToAddress: "MORRELL PLUMBING" & vbCr & "KNOX GRAMMER 7 WOODVILLE ST" & vbCr & "WAHROONGA"
ShippingMethod: "To be checked"
Status: Unknown {0}
Subtotal (MYOB.AccountRight.SDK.Contracts.Version2.Purchase.Bill): 250.37
Subtotal: 250.37
Supplier (MYOB.AccountRight.SDK.Contracts.Version2.Purchase.Bill): {MYOB.AccountRight.SDK.Contracts.Version2.Contact.SupplierLink}
Supplier: {MYOB.AccountRight.SDK.Contracts.Version2.Contact.SupplierLink}
SupplierInvoiceNumber (MYOB.AccountRight.SDK.Contracts.Version2.Purchase.Bill): "53652555/001"
SupplierInvoiceNumber: "53652555/001"
Terms: Nothing
TotalAmount (MYOB.AccountRight.SDK.Contracts.Version2.Purchase.Bill): 275.41
TotalAmount: 275.41
TotalTax (MYOB.AccountRight.SDK.Contracts.Version2.Purchase.Bill): 25.04
TotalTax: 25.04
UID: {00000000-0000-0000-0000-000000000000}
URI: Nothing

Didn't find your answer here?
Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post