Skip to main content
Answer

ServiceGateSoapClient through Publish Package To multiple tenants on Live site

  • November 1, 2022
  • 3 replies
  • 233 views

Forum|alt.badge.img

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)

Best answer by Shawn Burt

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.

3 replies

Shawn Burt
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • Answer
  • November 1, 2022

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.


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • November 1, 2022

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


Forum|alt.badge.img

thank you ..