microsoft / Partner-Center-DotNet-Samples

Contains sample code on how to use the Partner Center .NET SDK
MIT License
97 stars 120 forks source link

Create Customer scenario #73

Open tnlthanzeel opened 3 years ago

tnlthanzeel commented 3 years ago

tried creating a customer and i get this error

Create a new customer

New customer Information

CompanyProfile:
    Domain: SampleApplication130339732.onmicrosoft.com
    Attributes:
        ObjectType: CustomerCompanyProfile
BillingProfile:
    Email: gena@relecloud2.com
    Culture: en-US
    Language: en
    CompanyName: Relecloud130339732
    DefaultAddress:
        Country: US
        City: Redmond
        State: WA
        AddressLine1: 4567 Main Street
        PostalCode: 98052
        FirstName: Gena
        MiddleName: MiddleName
        LastName: Soto
        PhoneNumber: 4255550101
    Attributes:
        ObjectType: CustomerBillingProfile
RelationshipToPartner: Unknown
Attributes:
    ObjectType: Customer

Creating customer.

**Partner Exception: Error Category: Forbidden Service Error Payload: Error code: 600006 Error message: The requested action is not allowed

Context: Request Id: cc3d6e10-a6d9-475d-92cb-39412f643fc3, Correlation Id: e7fa0a90-f5fe-40ff-a1cf-afc0eb903b6f, Locale: en-US Base Description: Microsoft.Store.PartnerCenter.Exceptions.PartnerException: The requested action is not allowed at Microsoft.Store.PartnerCenter.PartnerService.SynchronousExecute[T](Func`1 operation) at Microsoft.Store.PartnerCenter.Samples.Customers.CreateCustomer.RunScenario() in C:\Projects\new\Partner-Center-DotNet-Samples\sdk\SdkSamples\Customers\CreateCustomer.cs:line 65 at Microsoft.Store.PartnerCenter.Samples.BasePartnerScenario.Run() in C:\Projects\new\Partner-Center-DotNet-Samples\sdk\SdkSamples\BasePartnerScenario.cs:line 78**

please help

RommelWZ commented 2 years ago

tried creating a customer and i get this error

Create a new customer

New customer Information

CompanyProfile:
    Domain: SampleApplication130339732.onmicrosoft.com
    Attributes:
        ObjectType: CustomerCompanyProfile
BillingProfile:
    Email: gena@relecloud2.com
    Culture: en-US
    Language: en
    CompanyName: Relecloud130339732
    DefaultAddress:
        Country: US
        City: Redmond
        State: WA
        AddressLine1: 4567 Main Street
        PostalCode: 98052
        FirstName: Gena
        MiddleName: MiddleName
        LastName: Soto
        PhoneNumber: 4255550101
    Attributes:
        ObjectType: CustomerBillingProfile
RelationshipToPartner: Unknown
Attributes:
    ObjectType: Customer

Creating customer.

**Partner Exception: Error Category: Forbidden Service Error Payload: Error code: 600006 Error message: The requested action is not allowed

Context: Request Id: cc3d6e10-a6d9-475d-92cb-39412f643fc3, Correlation Id: e7fa0a90-f5fe-40ff-a1cf-afc0eb903b6f, Locale: en-US Base Description: Microsoft.Store.PartnerCenter.Exceptions.PartnerException: The requested action is not allowed at Microsoft.Store.PartnerCenter.PartnerService.SynchronousExecute[T](Func`1 operation) at Microsoft.Store.PartnerCenter.Samples.Customers.CreateCustomer.RunScenario() in C:\Projects\new\Partner-Center-DotNet-Samples\sdk\SdkSamples\Customers\CreateCustomer.cs:line 65 at Microsoft.Store.PartnerCenter.Samples.BasePartnerScenario.Run() in C:\Projects\new\Partner-Center-DotNet-Samples\sdk\SdkSamples\BasePartnerScenario.cs:line 78**

please help

@tnlthanzeel Have you fixed the Forbidden error?

rohitpandit18 commented 1 year ago

tried creating a customer and i get this error

Create a new customer

New customer Information

CompanyProfile:
    Domain: SampleApplication130339732.onmicrosoft.com
    Attributes:
        ObjectType: CustomerCompanyProfile
BillingProfile:
    Email: gena@relecloud2.com
    Culture: en-US
    Language: en
    CompanyName: Relecloud130339732
    DefaultAddress:
        Country: US
        City: Redmond
        State: WA
        AddressLine1: 4567 Main Street
        PostalCode: 98052
        FirstName: Gena
        MiddleName: MiddleName
        LastName: Soto
        PhoneNumber: 4255550101
    Attributes:
        ObjectType: CustomerBillingProfile
RelationshipToPartner: Unknown
Attributes:
    ObjectType: Customer

Creating customer. Partner Exception: Error Category: Forbidden Service Error Payload: Error code: 600006 Error message: The requested action is not allowed Context: Request Id: cc3d6e10-a6d9-475d-92cb-39412f643fc3, Correlation Id: e7fa0a90-f5fe-40ff-a1cf-afc0eb903b6f, Locale: en-US Base Description: Microsoft.Store.PartnerCenter.Exceptions.PartnerException: The requested action is not allowed at Microsoft.Store.PartnerCenter.PartnerService.SynchronousExecute[T](Func`1 operation) at Microsoft.Store.PartnerCenter.Samples.Customers.CreateCustomer.RunScenario() in C:\Projects\new\Partner-Center-DotNet-Samples\sdk\SdkSamples\Customers\CreateCustomer.cs:line 65 at Microsoft.Store.PartnerCenter.Samples.BasePartnerScenario.Run() in C:\Projects\new\Partner-Center-DotNet-Samples\sdk\SdkSamples\BasePartnerScenario.cs:line 78 please help

@tnlthanzeel Have you fixed the Forbidden error?

Please give the solution of this Problem

mikaelz commented 6 months ago

have the same issue and don't know why. Don't understand why The requested action is not allowed ? Created multiple other customers without issue previously

rohitpandit18 commented 6 months ago

I was facing the same issue but now it is resolved. Please check name and data properly and there is limitation of everything you have to check and then fill every detail. if still you got unsuccessful then i will send you the correct code for this

On Mon, 22 Apr 2024 at 16:36, Michal Zuber @.***> wrote:

have the same issue and don't know why. Don't understand why The requested action is not allowed ? Created multiple other customers without issue previously

— Reply to this email directly, view it on GitHub https://github.com/microsoft/Partner-Center-DotNet-Samples/issues/73#issuecomment-2069111094, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDRKMLCVDUEEWI7SWWGJLRDY6TVKTAVCNFSM44G4G7UKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBWHEYTCMJQHE2A . You are receiving this because you commented.Message ID: @.***>