Jump to content
We've recently updated our Privacy Statement, available here ×

net.sf.jasperreports.engine.JRException: com.mongodb.util.JSONParseException:


bittutqk

Recommended Posts

Hello,

I am getting when executing following mongo query 

{

    collectionName : 'transformed_col',

    findQuery : {

        'app_code' : '$P!{p_application_name}',

        'run_date' : (new SimpleDateFormat("yyyy-MM-dd").format(org.apache.commons.lang.time.DateUtils.addDays($P{p_report_date},-0))) + "T00:00:00"

    }

}

Here

app_code is string

run_date format is "2018-05-01T00:00:00"

When adding single quote (') for rundate it excutes but does not return data.

e.g.

{

    collectionName : 'transformed_col',

    findQuery : {

        'app_code' : '$P!{p_application_name}',

        'run_date' : '(new SimpleDateFormat("yyyy-MM-dd").format(org.apache.commons.lang.time.DateUtils.addDays($P{p_report_date},-0))) + "T00:00:00"'

    }

}

 

Thanks for the help in advance.

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...