cancel
Showing results for 
Search instead for 
Did you mean: 

B1If add UDO register using Service Layer

rafael_ogeda
Participant
0 Kudos

Hi

I´m using an UDO called B1IF_CONTROL, that uses a UDT with same name.

First I tried insert data into this UDO using B1Service. This worked for while, but started giving the exception "com.sap.smb.sbo.wrapper.com.ComFailException: Invoke of: GetDataInterfaceFromXMLString Source: SapBobsCom.GeneralService.90.0 Description: Unknown error -1005 ! -The di call #1 did fail.". The same error occurs when using serviceid="GeneralService(B1IF_CONTROL)" or serviceid="GeneralService,B1IF_CONTROL".

Next I tried to insert data into this UDO using SLObject, and I got the exception "{ "error" : { "code" : -3000, "message" : { "lang" : "en-us", "value" : "The logged-on user does not have permission to use this object." } } }". All other SLObject in package are working fine (BusinessPartners, Orders, Down Payments, Invoices, Incoming Payments) and only the operation with this UDO is giving this exception...

Any idea about this exception "The logged-on user does not have permission to use this object." when calling Service Layer for this UDO? The user B1i has full authorization definied in SAP B1...

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

Hi Rafael Hernandes Ogeda,

For error: Unknown error -1005 !

a. If you are using 9.1 PL10 or below,UDO Code and the UDO Name of the UDO should be the same.

b. UDO names including spaces and brackets cannot be handled. You will receive an error "Unknown error -1005 !65171". (This applies to all SAP Business One Versions)

For error: The logged-on user does not have permission to use this object.

This issue has been fixed in SAP Business One Version 9.3H PL08 for Service Layer. Refer to SAP Note 2718049 for the same.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

Answers (1)

Answers (1)

rafael_ogeda
Participant
0 Kudos

Hi Ankit, how are you?

You're the boss! Thanks so much!

- error using GeneralService for UDO: perfect, solved after change UDO Name = UDO Unique ID

- error using ServiceLayer for UDO: we are using SAP B1 9.3H PL07... so, we need to wait an update at environment to solve this.

Kind regards

Rafael Hernandes Ogeda

B1If developer - Brazil