question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Requested value 'archived' was not found.

See original GitHub issue

Using v4.1.0

This throws an exception:

var memberships = await mcManager.Members.SearchAsync(new MemberSearchRequest() { Query = email });

My code was working fine until i archived a subscriber on some audience/list. Im guessing you’re missing some code to map this status.

I saw a similar issue (#91) where you didnt have an enum for a transactional subscriber. Im guessing this is something similar where you dont have an enum translation for an archived subscriber

Thanks for the wonderful library!

Stacktrace:

bij System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument) bij System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult) bij System.Enum.Parse(Type enumType, String value, Boolean ignoreCase) bij MailChimp.Net.Core.StringEnumDescriptionConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) bij Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) bij Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) bij Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) bij Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) bij Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value) bij MailChimp.Net.HttpContentExtensions.<ReadAsAsync>d__01.MoveNext() --- Einde van stacktracering vanaf vorige locatie waar uitzondering is opgetreden --- bij System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) bij System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bij MailChimp.Net.Logic.MemberLogic.<SearchAsync>d__3.MoveNext() --- Einde van stacktracering vanaf vorige locatie waar uitzondering is opgetreden --- bij System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) bij System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bij System.Runtime.CompilerServices.TaskAwaiter1.GetResult() bij BPM.Services.NewsLetter.MailChimpNewsLetterService.<GetNewsLettersForMember>d__6.MoveNext() in C:\Users\timde\source\repos\SD Schrijnwerkerij\BPM.Services\NewsLetter\MailChimpNewsLetterService.cs:regel 183

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
brandonseydelcommented, Aug 6, 2019

image

1reaction
brandonseydelcommented, Aug 6, 2019

They allow users to be archived and you can archive inside mail chimp but their API doesn’t recognize as valid status. It however will return archive as a status. Need to open a ticket with mailchimp.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Requested value 'transactional' was not found · Issue #91
Message = "Requested value 'transactional' was not found." Happens sometimes with this code (seeing in Production logs): obj = mailChimpManager.
Read more >
Requested value 'enabled' was not found.
When trying to load a Sitefinity project the following error appears: 'Requested value 'enabled' was not found.' Steps to Reproduce.
Read more >
MailChimp.Net
Message = "Requested value 'archived' was not found." Happens with this code: obj = mailChimpManager.Members.GetAsync(gListId, email).Result;.
Read more >
System.ArgumentException Requested value was not found
I have a C# Aplication they use a C++ .dll. When I call a method from the dll, I get an: System.ArgumentException. Requested...
Read more >
Retrieving S3 Glacier Archives Using AWS Console
Retrieving an archive from Amazon S3 Glacier is an asynchronous operation in which you first initiate a job, and then download the output...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found