SaaS Connector Error - invalid output format: Schema validation error in path

Hello,

I made the connector validation working checked the individual actions also and all seems fine with validate command from terminal. but as I deploy my connector in IDN tenant and execute aggregation it is throwing below error.My console log shows that accounts are getting read by the connector and attribute values also coming. I am not sure why this is treating attributes as schema OR what output it is expecting. Here is the error details and my Schema details:

java.lang.RuntimeException - java.lang.IllegalStateException: [ConnectorError] invalid output format: Schema validation error in path: [/: {“attributes”:{"Acti… did not match any of the specified OneOf schemas] (requestId: 5d069881bb684be58e054fa60ea4a1ab) - java.lang.RuntimeException: java.lang.IllegalStateException: [ConnectorError] invalid output format: Schema validation error in path: [/: {“attributes”:{"Acti… did not match any of the specified OneOf schemas] (requestId: 5d069881bb684be58e054fa60ea4a1ab) at com.sailpoint.mantis.qpoc.message.AccountAggregation.iterateResourceObjects(AccountAggregation.java:627) at com.sailpoint.mantis.qpoc.message.AccountAggregation.handleMessage_aroundBody0(AccountAggregation.java:333) at com.sailpoint.mantis.qpoc.message.AccountAggregation$AjcClosure1.run(AccountAggregation.java:1) at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:167) at com.sailpoint.atlas.metrics.MessageMetricsAspect.meterMessageTimeAndExceptions(MessageMetricsAspect.java:68) at com.sailpoint.mantis.qpoc.message.AccountAggregation.handleMessage(AccountAggregation.java:320) at com.sailpoint.atlas.messaging.server.TypeMessageHandler.handleMessage(TypeMessageHandler.java:87) at com.sailpoint.mantis.qpoc.utility.QpocMessageHandler.handleMessage_aroundBody0(QpocMessageHandler.java:60) at com.sailpoint.mantis.qpoc.utility.QpocMessageHandler$AjcClosure1.run(QpocMessageHandler.java:1) at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:167) at com.sailpoint.atlas.metrics.MessageMetricsAspect.meterMessageTimeAndExceptions(MessageMetricsAspect.java:68) at com.sailpoint.mantis.qpoc.utility.QpocMessageHandler.handleMessage(QpocMessageHandler.java:52) at com.sailpoint.mantis.platform.message…

Any suggestions would be really helpful. Thanks so much.

Pooja

It looks like a mismatch of your attributes that you are sending vs what you have defined in the connector spec file. Specifically take a look at the group attributes as that should always be an array of strings, but it looks like you are sending a string. It looks like the screenshot of the connector-spec was cut off so if you can send the entire thing it would be helpful for determining the issue. Take a look at an example connector spec for the airtable connector here. I believe you will need to change your code to do something like this: TeamID: user.TeamID ? [user.TeamID.toString()] : []

1 Like