Skip to main content
Answer

SalesOrder API request, A data corruption state has been detected. You cannot save the changes

  • May 31, 2024
  • 3 replies
  • 290 views

Hello,

I’m trying to create SalesOrder through API request, but it keep raising this error: 

"exceptionMessage": "A data corruption state has been detected. You cannot save the changes. Copy the data you have entered and reload the page. Date and Time: 2024-05-31T20:20:12; IncidentID: 8eee461c-214a-4bd2-803c-894bba76aa0e; Name: Aggregate Validation: PX.Objects.SO.SOOrder+openLineCntr. You can view detailed information about the issue on the System Events tab of the System Monitor (SM201530) form.",

here is my endpoint endpoint structure

and this is the data that i’m trying to submit

url {{baseUrl}}/entity/GTPDefault3/20.200.001.001/SalesOrder/Approve

{

    "entity":{

        "OrderNbr": {

            "value": "CODE-000396318"

        },

        "OrderType": {

            "value": "SO"

        },

        "CustomerID": {

            "value": "C00004735"

        },

        "Deatils": [        

            {

                "InventoryID": {

                    "value": "N76386S-3P"

                },

                "OrderQty": {

                    "value": 4.00

                },

                "UnitPrice": {

                    "value": 50.99

                },

                "ManualDIscount": {

                    "value": true

                },

                "DiscountAmount": {

                    "value": 91.93

                },

                "TaxCategory": {

                    "value": "DEFAULT"

                },

                "UOM": {

                    "value": "EA"

                }

            }

        ],

        "Date": {

            "value": "05/31/2024"

        },

        "RequestedOn": {

            "value": "04/23/2024"

        }

    }  

}

i tried different API versions, all of them had the same issues

 

Thank you for your help

Best answer by Django

Did you copy your request to your question above or copy/paste it.  If you copy/pasted it, you have Deatils instead of Details.

3 replies

Forum|alt.badge.img+7
  • Captain II
  • Answer
  • June 3, 2024

Did you copy your request to your question above or copy/paste it.  If you copy/pasted it, you have Deatils instead of Details.


Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+15

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • June 6, 2024

Hi @art ,

Normally, we get this error if there is a mistake in the JSON. As @Django indicated, please correct the spelling of "Details." It should work after that.