Workflow suspended:

Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.InvalidOperationException: Looking up a value using a key is not supported on an instance of 'Microsoft.Activities.Dynamic.DynamicJsonArray'. at Microsoft.Activities.Dynamic.DynamicItem.TryGetValue(String key, DynamicItem& value) at Microsoft.Activities.Dynamic.DynamicValueBuilder.PathSegmentFactory.ObjectPathSegment.Get(DynamicItem obj) at Microsoft.Activities.GetDynamicValueProperty1.Execute(CodeActivityContext context) at System.Activities.CodeActivity1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager

I am not able to get the http call results to d/results I guess. Please help me in solving this issue.

enter image description here

1 Answer 1


It looks as though we were doing the same demo! I had the same steps and error. I managed to find this great article on sharepoint dictionaries which helped explain it. You need to add brackets around the dictionary index when using the "Get an item from a dictionary" step.

([%Variable: index%])/Title
  • Your answer helped me, but I would edit it to clarify specifically what was wrong. We also followed the same tutorial, and the simple answer is that the tutorial already creates another dictionary based off of 'd/result'. The calls to that other dictionary when it comes to getting key values then in turn don't need 'd/result' to prefix the index number which is why the error was happening. Simply ([%Variable: index%])/Key is all that's needed then.
    – Unfallener
    Feb 21, 2019 at 21:51
  • 1
    Perentheses are what is needed. Brackets are added by SPD by default
    – phil
    Sep 9, 2019 at 15:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.