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

[.Net][AdaptiveCards.AdaptiveSerializationException] [AdaptiveCard.FromJson failed when i set isVisible attribute using a bool varaible from an object] #4322

Closed
DreamBlack opened this issue Jul 8, 2020 · 4 comments · Fixed by #4345

Comments

@DreamBlack
Copy link

Here is a copy of my template:
{
"type": "FactSet",
"facts": [
{
"title": "Resolved By:",
"value": "${ResolvedBy}"
},
{
"title": "Resolved At:",
"value": "{{DATE(${ResolvedAt}SHORT)}}"
}
],
"isVisible": "${ResolvedByVisible}",
"spacing": "Small",
"separator": true
}
There is a bool variable in my class named ResolvedByVisible.

string cardJson = template.Expand(incident);
var response = context.Activity.CreateReply();
AdaptiveCardParseResult result = AdaptiveCard.FromJson(cardJson);//failed

I got an exception:
image

How can i control visibility of the factset by a variable

@DreamBlack DreamBlack added the Bug label Jul 8, 2020
@ghost ghost added the Triage-Needed label Jul 8, 2020
@ghost ghost added this to Needs triage in Bug Triage Jul 8, 2020
@shalinijoshi19 shalinijoshi19 self-assigned this Jul 9, 2020
@shalinijoshi19 shalinijoshi19 moved this from Needs triage to Investigate in Bug Triage Jul 9, 2020
@ghost ghost removed the Triage-Needed label Jul 9, 2020
@ghost
Copy link

ghost commented Jul 9, 2020

Hi @DreamBlack. We have acknowledged this issue report. Please continue to follow this issue for updates/progress/questions.

@shalinijoshi19
Copy link
Member

@jwoo-msft could you take a look at this one?

@jwoo-msft
Copy link
Member

@DreamBlack Thanks for reporting the issue and payload.

@ghost ghost moved this from Investigate to In Code Review in Bug Triage Jul 10, 2020
Bug Triage automation moved this from In Code Review to Closed Jul 11, 2020
@microsoft microsoft deleted a comment Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Bug Triage
  
Closed
Development

Successfully merging a pull request may close this issue.

3 participants