Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

-147 Get CurrentUserInfo failed on SAP connection using DI API

NicoleL
Explorer
0 Kudos
3,764

On SAP Connection using DI API I'm receiving error: "-147 Get CurrentUserInfo failed".

diCompany.DbServerType = (BoDataServerTypes)Glo.DbServerType;
diCompany.Server = Glo.Server;
diCompany.DbUserName = Glo.DbUserName;
diCompany.DbPassword = Glo.DbPassword;
diCompany.CompanyDB = Glo.CompanyDB;
diCompany.UserName = Glo.UserName;
diCompany.Password = Glo.Password;
Glo.retCode = diCompany.Connect();

Can't find any information regarding this error on connection. Please assist?

16 REPLIES 16

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos
3,701

Hi NicoleL,

Can you include SLDServer property in the DI code and check the connection again after setting the correct value for this property?

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

0 Kudos
3,619

Hi ANKIT_CHAUHAN

Added the below code:
diCompany.SLDServer = Glo.SLDServer;
diCompany.LicenseServer = Glo.LicenseServer;

Still receiving the "-147 Get CurrentUserInfo failed" error on SAP10 connection. 

Just to give more information, the client upgraded from SAP9 to SAP10. SAP9 the service ran 100%, but not on SAP10. 

We also have created multiple SAP10 services where it connects to SAP10 perfectly. Do you think it can be SAP user of installation failure? 

Kind regards,
Nicole Lombard.

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos
3,582

Dear NicoleL,

Kindly confirm have you enabled SSO (any IAM related service in SLD) ?

Also, C:\Program Files\sap\SAP Business One DI API\Conf\b1-local-machine.xml does it point to the right SLD Address?

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

0 Kudos
3,551

Good afternoon ANKIT_CHAUHAN,

Our support team just confirmed that everything is 100%, the DNS resolves the address perfectly.

Kind regards,
Nicole.

0 Kudos
3,429

Hello Nicole,

I am struggling with a similar problem when running Boyum in SAP B1 PL 2305. several times a day we get an error: -147 Get CurrentUserInfo failed

Can I ask you to let me know what finally fixed the problem with this error in your case? Editing b1-local-machine.xml or maybe something else?

Best regards,
Luke

0 Kudos
3,420

Hi @LuckyLuke ,

I will make a post as soon as we are also able to solve the issue explained. We are currently running SP2305.

Our support team validated all the configuration of SAP, still no issue found. Our next option is to perhaps upgrade client to latest version. 

Kind regards, 
Nicole.


0 Kudos
3,347

Hello @NicoleL!

I'm experiencing the same issue that was mentioned. I developed an Add-On for SAP 10 SP 2311 and I'm facing these problem, because after 30 minutes using DI API, the attribute "Company.Connected" returns me the 147 error.

 

I didn't find any SAP Note that mentioned what I can do to solve.

 

If you have solved, please let us know!

 

Thank you!

 

 

 

tungnguyenthanh
Explorer
0 Kudos
2,949

Hello,

We got same issues on SP2402 HF1. Do you have the solutions?

NicoleL
Explorer
0 Kudos
2,711

Good afternoon @ANKIT_CHAUHAN,

Any feedback on the above?

Please note that we are having the same issue on another client (SP 2402).

Kind regards,
Nicole.

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos
2,708

Dear NicoleL,

We have managed to reproduce this issue.

Kindly refer to SAP Note 3476649 for the same.

Hope it helps!

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

0 Kudos
2,597

Hello @ANKIT_CHAUHAN  ,I tried the workaround fom the SAP Note 3476649 however the issue still persists on one SAP Client. On other SAP Clients the AddOn doesn't have the problem

SAP B1 Version: SP2402 HF1

SSO is not active and there are no active Identity Providers

Other steps were uninstalling DI API and re installing it and completly uninstall Client and other components and reinstall it.

EDIT: In my case where the error message occured 1 minute after application start the problem was a very strict antivirus which blocked the application. After making an exception, it worked.

 

Kind Regards

0 Kudos
2,288

Hi @ANKIT_CHAUHAN ,

Any feedback please?

Kind regards,
Nicole.

NicoleL
Explorer
0 Kudos
2,660

Hi @ANKIT_CHAUHAN 

When will this issue be solved as it causes allot of issues when working with services that connect to SAP Business One version 10 every 10 minutes?

As of this moment we must create windows task schedules to restart the applications as we can't do this manually for each clients development.

Kind regards,
Nicole.

0 Kudos
2,656

Hi @ANKIT_CHAUHAN 

Another issue we are getting on SAP connection is: -146 - Tenant is not exist

This is when one service connects to multiple companies/DBs, only from a certain SAP version was this an issue, will this be fixed of is this new validation?

Kind regards,
Nicole.

NicoleL
Explorer
0 Kudos
2,057

Hi @ANKIT_CHAUHAN

When will this issue be solved as it causes allot of issues when working with services that connect to SAP Business One version 10 every 10 minutes?

As of this moment we must create windows task schedules to restart the applications as we can't do this manually for each clients development.

Another issue we are getting on SAP connection is: -146 - Tenant is not exist

This is when one service connects to multiple companies/DBs, only from a certain SAP version was this an issue, will this be fixed of is this new validation?

Kind regards,
Nicole.

Edacurso
Newcomer
0 Kudos
1,369

Hi, im having this same issue in an instalation of SAP v10 FP 2405 with the Boyum B1UP addon.
Is there some update on how to solve it?

Thanks