uncategorized
amal at July 18th, 2017 03:48 — #1
Hi Liam,
After long time again i am facing some issue related to "duplicate company name". I have updated the contact in our interface but your API giving me below error but unable to find duplicate "Company Name" in your interface .
Reason: company name must be unique [ Company Name: Composite CrossFit ]
Below the contact url of OPC:
https://app.onepagecrm.com/show_contact/56c4861e00d4af2a6c0002aa
Please provide me proper solution so that we can fetch the updated contact to your interface.
just i found another issue with "IRun" company. unable to update contact and giving same error but i found
associated company name unique for this url: https://app.onepagecrm.com/show_contact/580df82900d4af07b9b61dea
Email: mark@irunshop.com
same issue with : company Name: "The Heartbeat Clinic" : https://app.onepagecrm.com/show_contact/5886931000d4af984a407a48 [ again unable to find duplicate company name ]
Thanks
Amal
amal at July 19th, 2017 02:50 — #2
Hi Liam,
Please confirm me regarding above issue. Again we found same issue with company name.
I searched with "Scripps Health" its return single result in one page crm interface but again your API give me same response:
[errors] => stdClass Object
(
[company_name] => Name must be unique
)
)
yopu can see the unique company name (Scripps Health) associated with this customer https://app.onepagecrm.com/show_contact/58948fa700d4af9779ffafa2Email: ahern.thomas@scrippshealth.org
Thanks
Amal
liam at July 19th, 2017 11:10 — #3
Hello Amal,
Could you give me an example of the API call which is returning the error? I need the url, post data and exact error returned from it please.
Kind regards,
Liam
amal at July 21st, 2017 05:32 — #4
Plz find the example: Also we have changed the company name "Scripps Health" to "Scripps Clinic" but still API return same error
stdClass Object
(
[status] => 400
[message] => Invalid request data
[error_name] => invalid_request_data
[error_message] => A validation error has occurred
[errors] => stdClass Object
(
[company_name] => Name must be unique
)
)
Below the contact array and email already exist in OPC. and found above error ..
Array
(
[first_name] => Dr. Thomas
[last_name] => Ahern
[address_list] => Array
(
[0] => Array
(
[address] => 9898 Genesee Ave.
AMP 305
[city] => La Jolla
[state] => CA
[zip_code] => 92037
[country_code] => US
)
)
[company_name] => Scripps Clinic
[status_id] => 5537558b1787fa4eb9000007
[status] => prospect
[owner_id] => 5886597d00d4aff20a42e738
[owner] => Stacey G.
[custom_fields] => Array
(
[0] => Array
(
[id] => 554311e81787fa06c1000044
[value] => MED
)
[1] => Array
(
[id] => 55492f901787fa47ad000017
[value] => Commercial
)
[2] => Array
(
[id] => 554848b61787fa6329000047
[value] => Vitassium-CLINIC
)
[3] => Array
(
[id] => 554a58541787fa01da000017
[value] => Stacey G.
)
[4] => Array
(
[id] => 554a586f1787fa01f4000024
[value] => Yes
)
[5] => Array
(
[id] => 554a58a51787fa0246000028
[value] => ahern.thomas@scrippshealth.org
)
[6] => Array
(
[id] => 557a82081787fa369f0001d1
[value] =>
)
[7] => Array
(
[id] => 554c436a1787fa2e46000071
[value] =>
)
[8] => Array
(
[id] => 5580ef5c1787fa34890001fb
[value] => Scripps Clinic
)
[9] => Array
(
[id] => 554ef5851787fa701f000062
[value] => 858-824-5003
)
[10] => Array
(
[id] => 554c437b1787fa2e46000075
[value] => Dr. Thomas Ahern
9898 Genesee Ave.
AMP 305
La Jolla, CA 92037
United States
)
[11] => Array
(
[id] => 55c1337969702d354a001449
[value] => ahern.thomas@scrippshealth.org
)
[12] => Array
(
[id] => 55c133b169702d354a001467
[value] => 858-824-5003
)
)
)
amal at July 21st, 2017 05:40 — #5
Other issue with Email: ap465@cumc.columbia.edu
Company Name: Pediatric Cardiology Associates
It seems your system check compnay name after explode string with space. but still this company name unique for our system. Plz check and rectify asap.
Array
(
[first_name] => Dr. Allison
[last_name] => Levey
[address_list] => Array
(
[0] => Array
(
[address] => 1500 Post Road
[city] => Darien
[state] => CT
[zip_code] => 06820
[country_code] => US
)
)
[company_name] => Pediatric Cardiology Associates
[status_id] => 5537558b1787fa4eb9000007
[status] => prospect
[owner_id] => 5886597d00d4aff20a42e738
[owner] => Stacey G.
[custom_fields] => Array
(
[0] => Array
(
[id] => 554311e81787fa06c1000044
[value] => MED
)
[1] => Array
(
[id] => 55492f901787fa47ad000017
[value] => Commercial
)
[2] => Array
(
[id] => 554848b61787fa6329000047
[value] => Vitassium-CLINIC
)
[3] => Array
(
[id] => 554a58541787fa01da000017
[value] => Stacey G.
)
[4] => Array
(
[id] => 554a586f1787fa01f4000024
[value] => Yes
)
[5] => Array
(
[id] => 554a58a51787fa0246000028
[value] => ap465@cumc.columbia.edu
)
[6] => Array
(
[id] => 557a82081787fa369f0001d1
[value] =>
)
[7] => Array
(
[id] => 554c436a1787fa2e46000071
[value] =>
)
[8] => Array
(
[id] => 5580ef5c1787fa34890001fb
[value] => Pediatric Cardiology Associates
)
[9] => Array
(
[id] => 554ef5851787fa701f000062
[value] => 917-439-9675
)
[10] => Array
(
[id] => 554c437b1787fa2e46000075
[value] => Dr. Allison Levey
1500 Post Road
Darien, CT 06820
United States
)
[11] => Array
(
[id] => 55c1337969702d354a001449
[value] => ap465@cumc.columbia.edu
)
[12] => Array
(
[id] => 55c133b169702d354a001467
[value] => 917-439-9675
)
)
)
amal at July 25th, 2017 02:10 — #6
Hi Liam,
Any update on above issue?
if we changed the name and use "PUT" method then it return with error
stdClass Object
(
[status] => 400
[message] => Invalid request data
[error_name] => invalid_request_data
[error_message] => A validation error has occurred
[errors] => stdClass Object
(
[company_name] => Name must be unique
)
)
Please fix this issue asap.
Thanks
Amal
danianlevan at July 27th, 2017 04:00 — #7
I trying to fix you issue...
pawelsmolinski at July 28th, 2017 04:13 — #8
Hi Amal,
the issue is known for us and it is mostly related to changes which we have implemented recently in relation to moving contacts between organizations, renaming organization name etc. We are working now on fix and will let you know when it will be completed.
joshfreeman at December 7th, 2021 03:48 — #9
This thread is quite helpful.
victor at June 21st, 2022 15:27 — #11
Hi @ervinjason!
You can get this error by calling API endpoint
PUT /api/v3/companies/62b218667c557166aa0a6aec.json
Request body:
{
"name": "another_existing_name_here"
}
name
value should be the name of an another already existing company.
Response:
{
"status": 400,
"message": "Invalid request data",
"error_name": "invalid_request_data",
"error_message": "A validation error has occurred",
"errors": {
"name": "Name must be unique"
}
}
@ervinjason you will not get any error is the name you set is unique
allandest at January 10th, 2023 02:43 — #13
Thank you, you have been very helpful!
Powered by Discourse, best viewed with JavaScript enabled