• Cmos
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

The following error occurrs but I don't know how to solve this.

 

A problem with the OnClick JavaScript for this button or link was encountered:

{faultcode:'sf:MALFORMED_QUERY', faultstring:'MALFORMED_QUERY:
from Enrollment__c where Id IN (a0Fe000001LIGIEA4)
                               ^
ERROR at Row:1:Column:78
unexpected token: 'a0Fe000001LIGIEA4'', detail:{MalformedQueryFault:{exceptionCode:'MALFORMED_QUERY', exceptionMessage:'
from Enrollment__c where Id IN (a0Fe000001LIGIEA4)
                               ^
ERROR at Row:1:Column:78
unexpected token: 'a0Fe000001LIGIEA4'', row:'1', column:'78', }, }, }

 

The following is part of my code,

 

var PActivityQuery = "Select (Select Id From Program_Activities__r) From Enrollment__c WHERE Id = " + enrollObj.Id;
var PAqueryResult = sforce.connection.query(PActivityQuery);
var EnrollIt  = new sforce.QueryResultIterator(PAqueryResult);
while(EnrollIt.hasNext())
{
var tempPAEnroll = EnrollIt.next();
var newPActivity = [];
if(tempPAEnroll.Program_Activities__r)
{
var PAit = new sforce.QueryResultIterator(tempPAEnroll.Program_Activities__r);
while(PAit.hasNext())
{
var PActivityObj = PAit.next();

 Thanks

 

  • September 05, 2013
  • Like
  • 0

The following error occurrs but I don't know how to solve this.

 

A problem with the OnClick JavaScript for this button or link was encountered:

{faultcode:'sf:MALFORMED_QUERY', faultstring:'MALFORMED_QUERY:
from Enrollment__c where Id IN (a0Fe000001LIGIEA4)
                               ^
ERROR at Row:1:Column:78
unexpected token: 'a0Fe000001LIGIEA4'', detail:{MalformedQueryFault:{exceptionCode:'MALFORMED_QUERY', exceptionMessage:'
from Enrollment__c where Id IN (a0Fe000001LIGIEA4)
                               ^
ERROR at Row:1:Column:78
unexpected token: 'a0Fe000001LIGIEA4'', row:'1', column:'78', }, }, }

 

The following is part of my code,

 

var PActivityQuery = "Select (Select Id From Program_Activities__r) From Enrollment__c WHERE Id = " + enrollObj.Id;
var PAqueryResult = sforce.connection.query(PActivityQuery);
var EnrollIt  = new sforce.QueryResultIterator(PAqueryResult);
while(EnrollIt.hasNext())
{
var tempPAEnroll = EnrollIt.next();
var newPActivity = [];
if(tempPAEnroll.Program_Activities__r)
{
var PAit = new sforce.QueryResultIterator(tempPAEnroll.Program_Activities__r);
while(PAit.hasNext())
{
var PActivityObj = PAit.next();

 Thanks

 

  • September 05, 2013
  • Like
  • 0