What steps can be taken to troubleshoot the 'unimplemented or irrational conversion requested' error?

I am facing an issue with passing a substantial amount of records as a stringify object from the client to the server. On the server side, there is a function named 'Get_Records' that is supposed to receive and process this string object by parsing it into individual records for necessary modifications. The following is an example of how the stringify function is called from the client side:

stringify(rec, "IS_TRANSACTION=${IsTransaction}^COMPANY_ID=${CompanyId}^PR_TRANSACTION_SEQ=${PrTransactionSeq}^SPRICE=${SPrice}^SQUANTITY=${SQuantity}^", JSON) into SelectionVar;

call Get_Records(SelectionVar) into invoiceExist;

Below is the function on the server side responsible for capturing the string object:

FUNCTION Get_Records(
   selection_string_  IN VARCHAR2 )  RETURN VARCHAR2
IS 
   records_               json_array := 
   json_array.parse(selection_string_);
   current_selection_     VARCHAR2(32000);
BEGIN
   //Code
END;

However, I am encountering an error when attempting to pass a large number of records from the stringify() function. The server side function 'Get_Records' fails to capture the data and returns an error message stating, 'unimplemented or unreasonable conversion requested, details: undefined undefined'. I have tried using the 'CLOB' datatype for the server side function, but it does not work for handling a significant volume of records. Is there a more effective way to transmit the string object received from the stringify function to the server side?

Answer №1

To reduce the length of the string to under 1000 characters, intercept it or save it in a file before uploading.

Answer №2

Before Oracle 19c, the JSON capabilities are somewhat restricted. May I ask which specific version you are currently using?

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Utilize Redux-forms to trigger an alternative submission method when ComponentWillRecieveProps is called

redux-forms version: 6.6.3 react version: 15.5.0 Seeking help with calling different submit functions from the componentWillReceiveProps method in a React component. componentWillReceiveProps(nextProps) { if (nextProps.updateTierConfigState == "Valida ...

Transforming JSON data into string format

Looking for a way to convert the JSON below into a fully string-quoted JSON format using Python. Is there a method in the python "json" module that can help with this, or is there a simpler parsing code available? Original data: data = '[{"id":334," ...

Clear Vuex state upon page refresh

In my mutation, I am updating the state as follows: try { const response = await axios.put('http://localhost:3000/api/mobile/v3/expense/vouchers/form_refresh', sendForm, { headers: { Accept: 'application/json', 'C ...

The button must be programmed to remove a specific item from the server

I am currently developing an application to monitor my expenses using javascript, nodejs, express, and handlebars as the templating engine. Within the app, I have a "list" div that displays all of my expenses. (There is an add button next to the list, not ...

What are some ways to stop the form from refreshing while still successfully submitting the form data on the current

As my form continued to submit and refresh, I consulted a helpful resource on Stack Overflow titled How to prevent page from reloading after form submit - JQuery in search of a solution. Interestingly, the difference between the provided answer and my situ ...

How can one resolve the error message that says "WebDriverError: Connection refused"?

I am facing an issue with running Protractor tests on my local machine. A few days ago, everything was working fine but now I am unable to run the tests even after rebooting Ubuntu. Here are the versions of different components: $cat /etc/issue Ubuntu 14. ...

The Discord.js .cleanContent attribute does not show up when using Object.keys() and cannot be logged

My Discord.js Message object should contain a property called .cleanContent, according to the documentation, and it should be a string. console.log(message.cleanContent) works correctly, but console.log(message) does not display the cleanContent propert ...

Replicate the array multiple times and combine them into a single flat array

I have a four-element array that I need to copy to another array four times. I achieved this by concatenating the array four times. Here is what I tried: let demoProperties = [] .concat(fourDemoProperties) .concat(fourDemoProperties) .concat(fourDe ...

What causes one CSS file's properties to be inherited by another CSS file in a React application?

I'm puzzled as to why my hero section file seems to be adopting the styling from the navbar CSS file. I do understand that the index.css file sets properties for the entire app, but in my case, I have separate CSS files for different components instea ...

Updating Button Color Based on Input Field Value in EJS

How can I change the color of a button in EJS when the input value changes? <div> <textarea name="mytextarea" id="inputcontent" cols="30" rows="3" style="margin-top: 10px; margin-bottom: 10px; f ...

Tips for sending Decimal objects to JSON in Django

My question involves a query set that contains Decimal objects. I am trying to pass this data to a JSON dump using the following code: ql = Product.objects.values_list('length', 'width').get(id=product_id) data = simplejson.dumps(ql) ...

List of dropdown options retrieved from SQLite database

I am attempting to retrieve data from an SQLite database table in order to populate a dropdown menu list. My thought process is outlined below. The main issue I am facing is how to integrate the JS function with the HTML section. HTML.html <label ...

Unpacking a JSON object with multiple nested arrays and efficiently transferring the data to SQL using Bulk Copy

Looking for advice on how to deserialize JSON data with multiple subarrays and display it on a web page? Here's what I have: NEXT STEP : Next, I plan to insert this data into an SQL database using bulk copy features. Sample C# Code var myData = new ...

Enhancing jQuery functionality by inserting two elements after instead of just one

I'm currently facing an issue with the insertion of a span element using the insertAfter method when selecting another ID to hide other elements. The problem arises when I select an ID for the first time, as it inserts a span element. However, when I ...

Restricting the Zoom Functionality in a Web-Based Project on a Touch-Enabled Display

I am currently working on a project that is web-based and runs on localhost. I need to prevent users from zooming in on the user interface. Is there a way to accomplish this using JavaScript? And can I achieve this restriction specifically on Google Chrome ...

Trigger the function upon displaying the modal

Within my Bootstrap project, I have set up a click event to trigger a modal as follows: $('#make_selects_modal').appendTo("body").modal('show'); My requirement is to run a function called pickClient when this modal is displayed. I att ...

Utilizing TypeDoc to Directly Reference External Library Documentation

I am working on a TypeScript project and using TypeDoc to create documentation. There is an external library in my project that already has its documentation. I want to automatically link the reader to the documentation of this external library without man ...

The closing brackets in PHP substr() function are causing style issues

Here's the scenario: I entered a large amount of content in a text editor (WordPress). Now, I want to display this content on my homepage using PHP queries. In order to limit the content size to 100-200 characters, I used the substr() function i ...

Using Rails 5 and Ajax: Comments will only be appended if a comment already exists

I have been working on a new feature that allows users to add comments to articles using Ajax. However, I have encountered an issue where the comment only gets rendered successfully through Ajax if there is already one existing comment. The database commit ...

Trouble with Three.js: Issue with loading textures by name

I have a file with a .obj extension that I am currently loading using a loader. This file contains multiple meshes which I want to use separately as individual objects. The challenge I am facing is that each of these objects has a distinct texture. However ...