Javascript querydef error, not able to select attributes calling xxlmig-snowflake | Community
Skip to main content
August 23, 2024
Solved

Javascript querydef error, not able to select attributes calling xxlmig-snowflake

  • August 23, 2024
  • 2 replies
  • 872 views

var kEvents = xtk.queryDef.create(
<queryDef schema="xxlmig:newValidation" operation="select">
<select>
<node expr="@student"/>
</select>
</queryDef>).ExecuteQuery();

for each (var row in kEvents)
{
logInfo("@student: "+row.@student);
logInfo("----End----");

}

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ShashankNigam02

Hi @bpagadal , Please check for any syntax errors in the srcSchema and regenerate it.

2 replies

ShashankNigam02
Adobe Employee
ShashankNigam02Adobe EmployeeAccepted solution
Adobe Employee
August 23, 2024

Hi @bpagadal , Please check for any syntax errors in the srcSchema and regenerate it.

MeitMedia
August 25, 2024

Hi @bpagadal,

 

The error message indicates that the schema you've defined in your queryDef function, i.e., "xxlmig:newValidation", does not exist in your Adobe Campaign (AC) database.

Here’s what you can do:

  1. Validate that the schema name is correct, including the proper character case as defined in the schema definition.
  2. If this is a newly created schema, ensure you publish it to your AC database by navigating to Tools > Advanced > Update database structure, and then re-execute the JavaScript activity.

 

Best regards,

MEIT MEDIA (https://www.meitmedia.com)

Find us on LinkedIn

Contact Us: infomeitmedia@gmail.com

September 1, 2024

Thanks @meitmedia ,

It was very helpful