Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
Error in accessing JSON file from Inbox/Outbox Explorer using groovy — Cloud Customer Connect
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!