Solved

ServiceGateSoapClient through Publish Package To multiple tenants on Live site

  • 1 November 2022
  • 3 replies
  • 122 views

How to publish a customized project to multiple tenants in a live site.

ServiceGateSoapClient serviceGate = new ServiceGateSoapClient(ServiceGateSoapClient.EndpointConfiguration.ServiceGateSoap, endpoint);

var result = serviceGate.LoginAsync(new LoginRequest(UserName, Password)).Result;

When I login I got that error in result variable.


PX.Data.PXUndefinedCompanyException: A proper company ID cannot be determined for the request.
at PX.Data.PXDatabaseProviderBase.GetCurrentCompany()
at PX.Data.PXDatabaseProviderBase.getCompanyID(String tableName, companySetting& setting)
at PX.Data.PXDatabaseProviderBase.getRestriction(String table, String alias, Boolean mainRestriction, Boolean isRightJoin, Nullable`1 effectiveCid)
at PX.Data.PXDatabaseProviderBase.appendWhereClauseToSelect(String tableName, PXDataField[] pars, StringBuilder bld)
at PX.Data.PXDatabaseProviderBase.SelectSingle(Type table, IEnumerable`1 joins, PXDataField[] pars)
at PX.Data.PXDatabase.SelectSingle[Table](PXDataField[] pars)
at PX.Data.PXDatabaseMembershipProvider.ValidateUserPassword(String username, String password, Boolean onlyAllowed)
at PX.Data.PXDatabaseMembershipProvider.ValidateUser(String username, String password, Boolean throwException)
at PX.Data.PXActiveDirectorySyncMembershipProvider.ValidateUser(String username, String password, String& providerLogin)
at PX.Api.WebServiceBase.Login(String name, String password)

icon

Best answer by Shawn Burt 1 November 2022, 15:41

View original

3 replies

Userlevel 5
Badge +1

the cred you use has to have access to all tenants and have the same password on all tenant. without that you can’t publish to all tenants manually or via the service gate.

Userlevel 7
Badge +5

As far as I remember you need the username in the following format username@CompanyID

 

However, another question is ‘Have you tried new REST API for publishing customizations?’

https://help-2022r2.acumatica.com/(W(1))/Help?ScreenId=ShowWiki&pageid=7eddb850-0096-41c3-8ea7-14becf6401ff

thank you ..

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved