Skip to Content

SAP Business One Service Layer Login failed - Hana

Hi,

B1 version: 9.2 PL06 Hotfix 1.

Hana version: 1.00.122.04

I am trying to access Business one for hana service layer using a REST client addon in chrome.

Send this HTTP request for login:
POST https://<Server Name/IP>:<Port>/b1s/v1/Login
{"CompanyDB": "SBODEMOAU", "UserName": "manager", "Password": "1234"}

But I got this in return:

{
"error": {
"code": -10,
"message": {
"lang": "en-us",
"value": "Fail to authenticate service user."
}
}
}

User 'manager' has professional user license. I can log in SBODEMOAU using B1 Client with the credential for my HTTPS post. What else do I need to make it work?

Many thanks

Calvin

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Mar 30, 2018 at 11:10 AM

    Hello, did you solve this problem ?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 25, 2018 at 02:05 PM

    Hello, I'm getting the same error response.

    Did any solve the problem?

    Thank you.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 09, 2019 at 09:06 AM

    Please proof:

    • Are permissions set correctly for folder /usr/sap/SAPBusinessOne/ServiceLayer and subfolders
    • linux user b1service0 should be owner of /usr/sap/SAPBusinessOne/ServiceLayer and subfolders
    • Does b1s.conf exist in folder /usr/sap/SAPBusinessOne/ServiceLayer/conf and is it setup correctly?
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 25, 2019 at 08:39 PM

    Have a look in SAP Note 2523023 - How to Fix SAP Business One Job Service Registration Failure

    Basically you have to get / reset the correct b1s.conf values for ServiceUser,ComponentID,ServiceToken by running a Java tool

    Hope it helps,

    Maik

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.