URM Service Instance: Exception has been thrown by the target of an invocation Data at the root level is invalid. Line 1, Position 1.

  • 16 February 2021
  • 0 replies
  • 121 views

Userlevel 5
Badge +20
 

URM Service Instance: "Exception has been thrown by the target of an invocation Data at the root level is invalid."

kbt135423

PRODUCT
K2 blackpearl
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.

Issue

This occurs when using the SmartObject URM Service Instance on Method > Get Users By Names.

 

When executing the SmartObject using the SmartObject service tester, the following error is displayed:
"Exception has been thrown by the target of an invocation Data at the root level is invalid. Line 1, Position 1. "

 

Image

Symptoms

The URM  Service Instance > Get Users By Names method will fail due to the incorrect XML format used.

Resolution

Should the "Get Users By Names" method be required to return multiple Users, the input property needs to be as follows:

 

 

XML format e.g.

<names><name>K2:domainusername</name><name>K2:domainusername</name></names>

 


0 replies

Be the first to reply!

Reply