Okay, I have been banging my head on my desk and sacrificing a kitten daily to try and sort this issue out and finally it paid off. I'm running Sugar Enterprise 5.2.0f
In my case, eggsurplus's solution was irrelevant.
The message "Error: The Portal Name is already assigned to another contact." is coming from the javscript file: modules/Contacts/Contact.js.
If you open this up, you'll see its been obscuficated. I'm not sure what the rules are on attaching code from Pro/Enterpriuse are here, so I won't attach it, but you can quickly run it though a web unobscuficator. If you look at line 97 of the unobscuficated version, you'll see the following code:
Code:
var callbackFunction = function success(data) {
count = data.responseText;
if(count != 0) {
add_error_style('EditView', 'portal_name', SUGAR.language.get('app_strings', 'ERR_EXISTING_PORTAL_USERNAME')); So, the error is thrown when the variable count is not 0. Out of desperation, I added in the line right before the if statement.
Much to my surprise, the resulting dialog box was not just a number like -1 or something, but a full HTTP request error - that was generated by the local proxy on my network, saying that the URL contained an invalid request (file is attached - error.txt).
I'm not sure if this is a problem with Sugar or our proxy at the moment.
The lesson: Don't develop behind a proxy.
- Frederik Grunta
Lemon Computing Ltd
Bookmarks