Using REST Api

Hello,
I was trying to use the REST api calls specifically to add a ShipTo to an existing customer but I keep getting the following error.

stdClass Object
(
    [returnObj] => stdClass Object
        (
            [BOUpdError] => Array
                (
                    [0] => stdClass Object
                        (
                            [TableName] => NAMember
                            [ErrorLevel] => Error
                            [ErrorType] => Exception
                            [ErrorText] => Unable to create new row in the ERP.NAMember
                            [ErrorSysRowID] => 00000000-0000-0000-0000-000000000000
                            [SysRowID] => bd6c3ce1-fbf5-4a8e-b200-7500c88e5ec9
                            [RowMod] => 
                        )

                )

            [ExtensionTables] => Array
                (
                )

        )

NVM, I figure it out.

Thanks,
Javier

Hanging Hang Out GIF by BBC America

1 Like

You left us hanging @dreamweaverx3 . What was the solution?

Woah oh oh DREEEEEAAAAAAMMMM WEEVAH! I believe you can get me through the niiiiiiiiiiiiiiIIIIIIIIght.

I was using RPC calls as a last result. In my moments of desperation I went back to using OData methods.
The one I used was /{currentCompany}/Erp.BO.CustomerSvc/ShipToes.

I got an customer not available error for a few attempts even though I know the customer exists.
Finally total shot in the dark, I added the "Company":string into my input object. It worked.

I figured since we do not have another company and there is no clear documentation that states it is required. I would be okay leaving it out. Wrong. That field is required, I assume it helps the system lookup the customer record more accurately.

2 Likes

Thanks for taking the time to respond.

1 Like