"Subscriptions limit reached for same user" validation error when trying to create a subscription to a product - wha can cause this?

I've created a third product level called "partner" other than the two that come as standard.
I'm running through the process of taking an existing user from the starter product to the partner product, and am subscribing the user to partner before removing the starter subscription. There seems no problem with a user having both a starter and unlimited
subscription, but am getting the following error when subscribing to partner.
"Subscriptions limit reached for same user"
This is using a subscriptions put. The same code works fine when upgrading to unlimited.
What can cause this?

Hi Miao,
The function to promote someone to partner is:
public async Task<ActionResult> ToPartner(string id)
//add partner subscription
var prodId = await APIMHandler.GetProductIdFromName("Partner");
var subscriptionId = Guid.NewGuid().ToString();
//set apim role to partner
var partnerId = (await APIMHandler.GetGroups()).First(a => a.name == "Partners").id;
await APIMHandler.AddUserToGroup(id, partnerId);
if (await APIMHandler.SubscribeToProduct(subscriptionId, id, prodId))
//disable starter subscription
await ApimDelegationController.HandleFreeSubscriptionRemoval(id);
//set local role to partner
await UserManager.AddToRoleAsync(id, "Partners");
return RedirectToAction("Index");
Where subscribetoproduct is:
public static async Task<bool> SubscribeToProduct(string subscriptionId, string UserId, string productId)
//The REST API and the delegation are inconsistent in how they represent ids.
if (!UserId.StartsWith("/users/"))
UserId = "/users/" + UserId;
if (!productId.StartsWith("/products/"))
productId = "/products/" + productId;
var client = new HttpClient();
client.DefaultRequestHeaders.TryAddWithoutValidation("Authorization", "SharedAccessSignature " + CalculateAcessToken(ApimIdentifier, ApimPrimaryKey));
var uri = ApimBaseUrl + "subscriptions/" + subscriptionId.ToString() + "?api-version=" + ApiVersion;
var response = await client.PutAsJsonAsync(uri, new { userId = UserId, productId = productId, state = "active" });
if (response.StatusCode == System.Net.HttpStatusCode.Created)
return true;
if (response.StatusCode == System.Net.HttpStatusCode.Conflict)
var error = await response.Content.ReadAsStringAsync();
return false;
if (response.StatusCode == System.Net.HttpStatusCode.BadRequest)
var error = await response.Content.ReadAsStringAsync();
return false;
var errorf = await response.Content.ReadAsStringAsync();
throw new Exception(string.Format("Error in SubscribeToProduct: return status {0}. Content: {1}", response.StatusCode.ToString(), errorf));
The status code is "BadRequest" and the error provided earler is returned.
So at this time the user is added to the "partners" group, but I can't subscribe them to the Partner subscription, which is accessible to members of the partner group.

Similar Messages

  • "Operation is not valid due to the current state of the object" error when trying to create a link for a shared folder in OneDrive

    I'm trying to share a folder in OneDrive with another user in my organization, and create a link so that people outside of the company can see the folder. Whenever I try to create a link I get an error that says: "Couldn't create the link sorry something
    went wrong operation is not valid due to the current state of the object" How do I resolve this?

    Sorry for replying late and I noticed that you posted another thread in this forum:
    I've replied and kindly refer to it to see if it is helpful.
    Melon Chen
    TechNet Community Support

  • Error when trying to create XUSER information for SAPServiceSID

    Hi all,
    I am getting the following error when trying to create the XUSER information for the SAPServiceSID user on a WINDOWS/MAXDB 7.9 install..  Does anyone know a FIX for this?
    >xuser -c .\SAPServiceSID -U c -u CONTROL,[email protected] -d SID -n HOSTNAME -S INTERNAL -t 0 -I 0 set
    FATAL: Close xuser entry failed: could not write USER data [1307]
    I am running the command as the SIDADM user. 
    I have tried the solutions in the following notes without success:

    Hi Jayson,
    Try this.
    Add the "Administrators" group under:
    Control Panel
    -> All Control Panel Items
       -> Administrative Tools
          -> Local Security Policy
             -> Local Policies
                -> User Rights Assignment
                  -> Take ownership of files or other objects
    You check you command and modify.
    xuser.exe -c Hostname\SAPServiceSID -U DEFAULT -u Username, Password -d SID -n Hostname -S Schema_Name -t 0 -I 0 set'
    V Srinivasan

  • 500 internal server error when trying to create users

    I am getting a 500 internal server error when trying to create users. What is the cause? We tried reinstalling the latest java jdk release and that didn't help.

    Check whether your DBControl or ASControl service is still running or crashed. EM is not able to connect to the Management Server.
    For instance in Windows, you may see that the Servise is not started. Then check for error logs in $ORACLE_HOME/sysman/logs for any related error messages in the log files

  • 'Blank user name' error when trying to change email password

    My password on our mail server changed, when I tried to change the password on my Storm 9500 I get 'Blank user name' error when trying to change, but I have typed in a user name!!!!
    BLOODY frustrating because now I am not receiving any mails at all, so my business out of the office has come to a standstill!!!!
    Go to Solution.

    Try changing the email password on your PC, if you are having problems doing so from your device.
    From your desktop PC:  http://www.blackberry.com/btsc/KB02830
    North American Carriers - scroll down to select your carrier
    WorldWide Carriers - Find your carrier on the list
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Sharepoint designer 2010 32 bit error when trying to create a workflow

    Windows 7 64 bit enterprise pc's with sharepoint designer 32 bit see these errors when trying to create a workflow on any Sharepoint 2010 farm - dev and production
    "The list of workflow actions on the server references an assembly that does not exist. Some actions will not be available. The assembly is Microsoft.Office.Workflow.Actions, Version= ..."
    "The list of workflow actions on the server references an assembly that does not exist. Some actions will not be available. The assembly is Microsoft.SharePoint.WorkflowActions, Version= ..."
    "The list of workflow actions on the server references an assembly that does not exist. Some actions will not be available. The assembly is Microsoft.SharePoint, Version= ..."
    Using an XP pc and 32bit designer user able to create workflow. We have to use 32 bit designer as we have Office 2010 32 bit for compatiblility reasons
    Any ideas on how to resolve?

    Hi Nick, check out this link for possible solutions:
    cameron rautmann

  • Error when trying to create a JCO Destination

    I receives the following error when trying to creat a JCO Destination, clicking on the button in the host:port/webdynpro/dispatcher/sap.com/tcwdtools/Explorer
    I get the following error:
    Error stacktrace:
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:880)
         at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:469)
         at com.sap.tc.webdynpro.tools.sld.NameDefinition.updateJCODestinations(NameDefinition.java:272)
         at com.sap.tc.webdynpro.tools.sld.NameDefinition.updateNavigation(NameDefinition.java:237)
         at com.sap.tc.webdynpro.tools.sld.NameDefinition.wdDoInit(NameDefinition.java:144)
         at com.sap.tc.webdynpro.tools.sld.wdp.InternalNameDefinition.wdDoInit(InternalNameDefinition.java:223)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:274)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:398)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:43)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:398)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.makeVisible(ViewManager.java:620)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.performNavigation(ViewManager.java:263)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:740)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:350)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:640)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Any ideas?

    Have you configured your SLD? Check JCO Destination error out or search for "com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus" in the SDN forums.
    Best regards,

  • Error when trying to create a site collection

    I receive the following error when trying to create a site collection in sharepoint 2013. Any ideas of what I can do to resolve?
    Sorry, something went wrong
    Failed to call GetTypes on assembly Microsoft.AnalysisServices.SharePoint.Integration, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91. Method 'ParseLogFileEntry' in type 'Microsoft.AnalysisServices.SharePoint.Integration.ConnectionUsageDefinition'
    from assembly 'Microsoft.AnalysisServices.SharePoint.Integration, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91' does not have an implementation. Method 'ParseLogFileEntry' in type 'Microsoft.AnalysisServices.SharePoint.Integration.RequestUsageDefinition'
    from assembly 'Microsoft.AnalysisServices.SharePoint.Integration, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91' does not have an implementation. Method 'ParseLogFileEntry' in type 'Microsoft.AnalysisServices.SharePoint.Integration.LoadUsageDefinition'
    from assembly 'Microsoft.AnalysisServices.SharePoint.Integration, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91' does not have an implementation. Method 'ParseLogFileEntry' in type 'Microsoft.AnalysisServices.SharePoint.Integration.UnloadUsageDefinition'
    from assembly 'Microsoft.AnalysisServices.SharePoint.Integration, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91' does not have an implementation.

    Hi  ,
    Based on the error message, please check whether you have installed the spPowerPivot.msi add-in on each of your SharePoint server, and ran the configuration wizard, make sure that the powerpivotwebapplicationsolution.wsp
    is deployed correctly.
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • Portal runtime error when trying to create new Iviews in EP

    Require an Urgent help
    getting portal runtime error when trying to create a new iView in portal. I am unable to create a single iView  in portal.
    It was working before please see this error message
      Portal Runtime Error
    An exception occurred while processing a request for :
    iView : com.sap.portal.appintegrator.sap.WebDynproPageBuilder
    Component Name : com.sap.portal.appintegrator.sap.WebDynproPageBuilder
    Error occurs during the rendering of jsp component.
    Exception id: 05:20_12/01/08_0004_17115850
    See the details for the exception ID in the log file
    AM Iworking on NW2004s sp11. I was able to create iViews on this system before
    let me know where to check the log file also. Points will be awarded
    Thank you
    Krishna Kanth
    Edited by: siddi siddi on Jan 13, 2008 12:05 AM

    Krishna Kanth,
    logs can be read from nwa, if you hv the relevant access or get portal admin to pass the defaulttrace file to you. Login to nwa, navigate to Monitoring-Logs and traces and select (either default trace or last 24hrs) to view the logs. hope this helps

  • Getting error when trying to create Exchange Connector in System Center Service Manager 2012

    Getting error when trying to create Exchange Connector in System Center Service Manager 2012
    The connection to the server was unsuccessful. Please check the server name and/or credentials entered.
    Additional Information: The server URL is not accessible or the user does not have permission to access it (message: The request failed. The remote server returned an error: (401) Unauthorized.
    Warm Regards, Pramod Kumar Singh Manager-IT

    Someone sorted out this issue by installing API 1.2 and copying the dll files to the service manager server ,service folder and replacing it with API 2.0 dll files.
    Also, your question is related to SCSM, please post at SCSM forum if you have further question.
    Juke Chou
    TechNet Community Support

  • I get this error when trying to create a ringtone - iTunes could not connec

    I get this error when trying to create a ringtone:
    "iTunes could not connect to the iTunes Store - an unknown error occurred (11556)"
    But I CAN connect - if I click on the iTunes Store, it connects right away.
    I want to make a ringtone from a song that I purchased, but all I get is the same error message.
    iTunes 9.2.2, Ireland iTunes Store.

    have you seen this KB article: http://support.apple.com/kb/HT1398 ?

  • Solution to stop error when trying to create a portfolio

    Hi all,
    I finally found a way to make a portfolio in acrobat pro 9. The problems I was having were explained in the thread titled "Acrobat pro 9 has a stop error when trying to create a portfoloi"
    It seems ther is another way to do this, by selecting 'combine' and then 'merge files into a single pdf' rather than 'assemble pdf portfolio'.
    The merge option also gives the choice of making a pdf package and does not result in a stop error with authplay.dll.
    So much for Adobe support who conuld not tell me this or respond to support requests.
    All I have to do now is to remember to not click on 'assemble pdf portfolio' when I want to assemble a pdf portfolio but "merge files into a single pdf" when I want to assemble a pdf portfolio.
    I would still like to hear from Adobe why acrobat pro 9 has a stop error with authplay.dll.
    I feel a lot happier now.

    I read through the pdf wth your emails to/from customer support. I'll have to defer to someone else because it seems you have tried what I would suggest.
    If someone else does not respond with a better plan and you are willing to spend a bit more time before writing off Acrobat 9, I would try the process below one last time. (If you are using a CS suite, while authplay.dll is found in each of the directories, it does not appear that the issue extends to the other programs.)
    1. Using Add/Remove Programs, uninstall all Adobe Acrobat and Reader software and uninstall the Adobe Flash Player Active X and Adobe Flash Player Plugin. If you have it, uninstall Adobe Air.
    2. In C:\Documents and Settings\(your profile name)\Application Data\Adobe, delete the Acrobat and Adobe PDF folders if they still exist.
    3. Reinstall only Acrobat 9.
    4. From Acrobat, run the updater Help > Check for Updates and install all updates.
    5. Verify Adobe Acrobat is now version 9.2: Help > About Adobe Acrobat Pro  (If for any reason it is not 9.2, use the update on http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows
    6. Test
    Message was edited by: Anna Nmty
    While searching for a solution, I just saw your post over at acrobatusers.com (http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=15765). Looks like my advice was largely a duplicate, although your event log indicates Acrobat did not update properly.

  • I am getting a 404 error when trying to access any search link using google, I can get to a website if I enter the url directly.  I have cleared my history, emptied the cache and reset safari.

    I keep getting a 404 error when trying to access any search link using google, I can get to a website by directly using the URL.  I have cleared history, empited the cache and reset safari.  Any suggestions.

    Right. If you are using delegated privs and sudo, make sure that sudo is configured to pass on the PERL5LIB and ORACLE_HOME environment variables at least.

  • Work Group Manager ERROR when trying to create a group

    i have the following hardware:
    Model Name: Xserve G5
    Model Identifier: RackMac3,1
    Processor Name: PowerPC G5 (3.1)
    Processor Speed: 2.3 GHz
    Number Of CPUs: 2
    L2 Cache (per CPU): 512 KB
    Memory: 6 GB
    Bus Speed: 1.15 GHz
    Boot ROM Version: 5.1.7f2
    i have server admin setup on this machine, this machine is bound to AD
    When i open up WGM and go to groups and try to create a group i receive the following error...
    Got Unexpected error
    Error of type eDSNoStdMappingAvailable (-14140) on line 1189 of /SourceCache/WorkgroupManager/WorkgroupManager-319.2.2/PMMUGMainView.mm
    I have no idea where to start with this..

    Just to be clear - what domain are you trying to create the group in?
    Are you trying to create an AD via WGM because you can't feed changes upwards to AD.
    If you're trying to create a group either locally or in OD then that should work as long as you are authenticated. One gotcha in OD is that you can't create a group with the same name as the AD you are bound to but I'm pretty sure trying to do that gives you an intelligible error.
    PS There are also OD specific groups in the OS X Server forums where you might get more eyes on your question as this forum is for Xserve specific issues.

  • Error when trying to create Delivery

    Hi SAP Gurus
    When trying to create delivery from Sales order(Va02>Sales document>Delivery),it is taking to Delivery(Vl01n).But there at the initial screen itself it is displaying the error message"Order doesnot exist"
    Kindly let me know where could be the issue.

    Hi Laxmipathy
    Tx for your reply.
    I have checked the doc flow and could see no blocks.
    No reason for rejections.
    Also seen VOV7 and checked for the item cat details.I could see "H-delivery Related Billing-No Zero Quantities" maintained for Billing Relevance field.
    Tx in advance.

Maybe you are looking for