Solved

Multi-tenant OData URL with ampersand in the name

  • 22 July 2022
  • 4 replies
  • 313 views

I am working with a customer who has multiple tenants. We are doing projects using ODatav4 to pull data to a third party tool. This is working fine for all of the tenants except one. As far as I can tell, the only difference is that this tenant has an ampersand in the name. So the name is, say, “AB&C Corp”. We know to replace the space with “%20” but we cannot seem to get the URL correct for the ampersand. 

The thing is, we get no error message via Postman or other tools, it says the status is “200 OK”… but no data is returned at all.

I have tried several versions of the URL:

https://xxx.acumatica.com/odatav4/AB&C%20Corp/$metadata
https://xxx.acumatica.com/odatav4/AB%26C%20Corp/$metadata 

https://xxx.acumatica.com/odatav4/ABC%20Corp/$metadata 

 

None succeed. That third version gives a 404 Not Found response. The other two come back with the OK response.

Like I said, we have lots of tenants and they are all working properly. I suppose it could be a setting somewhere that got overlooked but I haven’t found it. Which is why I am focused on the ampersand. Is that possibly the problem and is there a workaround for it?

icon

Best answer by Samuel Olivier Lavigueur 22 July 2022, 21:10

View original

4 replies

Userlevel 3
Badge +2

This is a know issue that was addressed in 21R119, 21r207 and 22r1Beta.

The ‘&’ symbol was added to the list of forbidden characters for the tenant name.

Here is the current list "<,>,*,%,&,:,\,?".

This is due to infrastructural restriction.

Thank you. I am new to Acumatica so I don’t know the version numbering real well. The customer is on 21R1. I am assuming the fix was a hotfix?

Acumatica Cloud ERP 2021 R1
Build 21.110.0032

Userlevel 3
Badge +2

You can use the installer and use the option “Perform Application Maintenance”

select the site in question

click the Tenant Maintenance option

On the Tenant Setup screen activate the “Advanced Option” check box and rename the tenant

Complete the process by clicking next

Be aware that this will put the site offline for the duration of the change (not too long from the test I did)

Thank you. That’s what we just did. I was coming here to confirm that this did resolve the issue when we removed the ampersand. Thanks for your help, I really appreciate it.

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