Having Trouble reading xlsx with Data Services App

I have an rjob that works if it is reading from a local file, but as soon as I try changing it so that the user can upload that same spreadsheet I end up failing. I’ve tried a bunch of different things that were suggested by claude and ChatGPT but with no luck.

This is the Endpoint Configuration:

This is the Spreadsheet reader:

I have gotten this to work in the past with a csv file and a universal data reader, but what the users will be uploading is an xlsx where the data is on the 2nd sheet. (Right now for this test I just have one sheet on the upload since it was not reading the 2nd sheet. I thought maybe if the upload just had one sheet I could get that to work and go from there.)

I feel like this is something simple I am missing, so any pointers would be appreciated.

Thank you,

Hi Michael,

You’re very close! Based on your screenshots, two things stand out, though.

1. “Form parameter can be used only with method (POST, PUT, PATCH)”

This warning is visible in your screenshot. To resolve it, simply uncheck GET and leave POST enabled.

2. “Data Services are not available from Local Projects”

To resolve this, your RESTjob needs to be converted to a CloverDX Server project and published:

  1. In CloverDX Designer, convert your local project to a Server project.
  2. Navigate to the Endpoint Configuration tab and click Publish.
  3. In the CloverDX Server console, go to Data Services, select your data service, open the Data App, and try uploading your spreadsheet through the form.

Please keep in mind that once the job is published, every execution through the Data App runs the actual job, including any write operations. We recommend publishing to a development environment.

For a better understanding, I’ve also attached an example data service that you can use as a reference.

If the issue persists, please create a ticket and share your .rjob file and any error messages you get so we can take a closer look.

Best regards,
Martin

HighmarkSubTypeUpdate_Reconstruction.zip (1.5 KB)

That worked. Thank you.