Studo Fill Form AI Fill from JSON

In UiPath Studio Web how would I go about selecting 1…N checkboxes in this form:

https://docs.google.com/forms/d/e/1FAIpQLSehOG_k7Xl_sRtqE8jmtqT7lreMXkjh_nndhyNZVSS03QKOlw/formResponse

I’m getting JSON from a REST API that is structured like so:

{
    "Select parts *": [
        "Part 1",
        "Part 3"
    ]
}

After getting the JSON I’m using the Deserialize JSON Web API activity to store the JSON in a variable and then using the data to power the Fill Form UI Automation activity.

However, I am getting the following error when trying to use the Fill Form UI Automation activity:

UiPath.Semantic.Activities.Exceptions.NoMatchingException: The system could not match the data source and the destination. Confirm that the data source and destination fields align, and check for any mismatches or inconsistencies.
at UiPath.Semantic.Activities.Services.SemanticActivityActionService.FillFormAsync(IFillFormData data, TimeoutToken token)
at UiPath.Semantic.Activities.NFillForm.ExecuteAsync(IActivityContextWrapper context, CancellationToken cancellationToken)
at UiPath.UIAutomationNext.Activities.RecoverableNativeActivity.ExecuteActivityAsync(IActivityContextWrapper contextWrapper, CancellationToken cancellationToken)
at UiPath.UIAutomationNext.Activities.RecoverableNativeActivity.ExecuteActivityAsync(IActivityContextWrapper contextWrapper, CancellationToken cancellationToken)
at UiPath.UIAutomationNext.Activities.RecoverableNativeActivity.ExecuteAsync(NativeActivityContext context, CancellationToken cancellationToken)
at UiPath.Shared.Activities.AsyncTaskNativeImplementation.BookmarkResumptionCallback(NativeActivityContext context, Object value)
at UiPath.Shared.Activities.AsyncTaskNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at UiPath.Shared.Activities.ContinuableAsyncNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Is there a better way to structure the JSON?

Any help would be appreciated.

Thanks,

Ben

Hi,

Probably, it’s necessary to set section name (question etc.) as JSON key.
In the above URL, the following input JSON will work

{
 "Which Options is the best": "Option 2"
}

Regards,

Hi @ben.payne

The error happens because UiPath can’t match your JSON to the form fields. Make sure:

  • The JSON key exactly matches the checkbox field name ("Select parts *")
  • The values exactly match the checkbox labels on the form ("Part 1", "Part 3")
  • For multi-select, try passing a semicolon-separated string instead of an array, e.g.:
{ "Select parts *": "Part 1;Part 3" }

This should fix the mapping issue.