Forum Discussion

Chethan's avatar
Chethan
Contributing User
6 years ago

Getting BusinessEvent_DateOccurred_BeforeConversionMonth error while creating a Item Sale Invoice

Hi,

I am getting "BusinessEvent_DateOccurred_BeforeConversionMonth" error while creating a Item Sale Invoice, below is the request that is being sent

 

Request:

{"Number":"DT0004","Date":"2019-03-08 06:31:14","Customer":{"UID":"537xxxf9-xxxx-x000-xxx7-b9b3xxxxx2xx"},"Lines":[{"Type":"Transaction","Description":"One Time Charge","ShipQuantity":"1","DiscountPercent":0,"Total":100,"Item":{"UID":"69xxxx95-9xxx-xxxf-8xxx-c84xxxxxf77"},"TaxCode":{"UID":"1xxxxd7b-5xxx-xxxa-bxxx-aa372dxxxx23"}}],"IsTaxInclusive":true,"Subtotal":100,"TotalTax":9.09,"TotalAmount":"100","JournalMemo":"Auth Code: 014820\nTrace ID: 0008100009300275\n"}

 

 

Response:

stdClass Object
(
[Errors] => Array
(
[0] => stdClass Object
(
[Name] => ValidationError
[Message] => BusinessEvent_DateOccurred_BeforeConversionMonth
[AdditionalDetails] => DateOccurred:(SaleEvent)
[ErrorCode] => 4223
[Severity] => Error
[LearnMore] =>
)

[1] => stdClass Object
(
[Name] => ValidationError
[Message] => BusinessEvent_DateOccurred_BeforeConversionMonth
[AdditionalDetails] => InventoryDateOccurred:(SaleEvent)
[ErrorCode] => 4223
[Severity] => Error
[LearnMore] =>
)

)

[Information] => Warning, error messages have not been finalised in this release and may change
)

 

 

Can you please let me know where am I doing wrong, how to fix this issue

 

Thanks

  • Hi Chethan,

     

    Thanks for reaching out to us. The "BusinessEvent_DateOccurred_BeforeConversionMonth" error will occur if the date for your Item Invoice is set before the Conversion Month that has been set up in the company file you are trying to access. The Conversion Month can be found by going to Setup > Company Information. This cannot be changed meaning you will need to setup a new company file if you want a different Conversion Month.

     

    Hope this helps! 

     

    Thanks,
    Jacob
    MYOB API Team

    Are you a developer? Check out http://developer.myob.com
    Looking for an Add-on? Check out http://myob.com/addons/
    MYOB API Support Centre - https://apisupport.myob.com

1 Reply

Replies have been turned off for this discussion
  • Jacob_S's avatar
    Jacob_S
    Former Staff

    Hi Chethan,

     

    Thanks for reaching out to us. The "BusinessEvent_DateOccurred_BeforeConversionMonth" error will occur if the date for your Item Invoice is set before the Conversion Month that has been set up in the company file you are trying to access. The Conversion Month can be found by going to Setup > Company Information. This cannot be changed meaning you will need to setup a new company file if you want a different Conversion Month.

     

    Hope this helps! 

     

    Thanks,
    Jacob
    MYOB API Team

    Are you a developer? Check out http://developer.myob.com
    Looking for an Add-on? Check out http://myob.com/addons/
    MYOB API Support Centre - https://apisupport.myob.com