Skip to main content
Solved

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

  • May 31, 2024 10:36 PM UTC
  • 3 replies
  • 372 views
  • Translate All

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.

View original

3 replies

Forum|alt.badge.img+8
  • Captain II
  • Answer
  • Jun 3, 2024 7:33 PM UTC

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

Translate

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

jinin
Pro I
Forum|alt.badge.img+12
  • Pro I
  • Jun 6, 2024 1:51 PM UTC

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.

Translate