You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Error in accessing JSON file from Inbox/Outbox Explorer using groovy

Received Response
21
Views
7
Comments

Summary:

Unable to access a text file uploaded at "Inbox/Outbox Explorer" in an EPBCS application using groovy.

Content (required):

Hi,

I have a text file (.txt) which contains JSON array. It has been loaded to "Inbox/Outbox Explorer" as shown below.

In the groovy script, I am using "File()" to access this.

But getting the error

" Compile Error:

Expression [ConstructorCallExpression] is not allowed: new java.io.File(Inbox/json_file1.txt) "

So, is there any alternative way to access JSON text file loaded at Inbox/Outbox explorer in EPBCS application?

This would be a great help if you guys can guide me!

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!