Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] - Set-PartnerCustomerQualification : Error converting value #258

Closed
ghost opened this issue Jan 14, 2020 · 1 comment
Closed

[Bug] - Set-PartnerCustomerQualification : Error converting value #258

ghost opened this issue Jan 14, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Jan 14, 2020

Steps to reproduce

Run the following command in an environment that is not qualified for education

Set-PartnerCustomerQualification -CustomerId $customerId -Qualification Education

Expected behavior

An error message to be returned stating the following

Customer tagging denied.

Actual behavior

Set-PartnerCustomerQualification : Error converting value "Customer tagging denied." to type 'Microsoft.Store.PartnerCenter.Models.ApiFault'. Path '', line 1, position 26.
At line:1 char:1
+ Set-PartnerCustomerQualification -CustomerId $customerId ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Set-PartnerCustomerQualification], JsonSerializationException
    + FullyQualifiedErrorId : Microsoft.Store.PartnerCenter.PowerShell.Commands.SetPartnerCustomerQualification

Diagnostic logs

DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
PUT

Absolute Uri:
https://api.partnercenter.microsoft.com/v1/customers/REMOVED/qualification

Headers:
Accept                        : application/json
MS-PartnerCenter-Client       : Partner Center PowerShell
MS-CorrelationId              : d0739453-c547-4db2-bda3-9024dc4b8de0
X-Locale                      : en-US
MS-RequestId                  : 537b3e56-cb2f-4f71-b5b2-e40bfd697fd4
MS-SdkVersion                 : 1.15.5.0

Body:
"Education"
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
Conflict

Headers:
MS-CorrelationId              : d0739453-c547-4db2-bda3-9024dc4b8de0
MS-RequestId                  : 537b3e56-cb2f-4f71-b5b2-e40bfd697fd4

Body:
"Customer tagging denied."

Environment

PS 5.1
Module 3.0.5

@ghost ghost self-assigned this Jan 14, 2020
@ghost ghost added the bug Something isn't working label Jan 14, 2020
@ghost
Copy link
Author

ghost commented Jan 29, 2020

The required code changes have been made and this will be officially address with the release of 3.0.6

@ghost ghost closed this as completed Jan 29, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

0 participants